From 8954db51c13443b150183bcad9ff665482373d67 Mon Sep 17 00:00:00 2001 From: Klimi Date: Sat, 7 Dec 2019 21:45:48 +0100 Subject: [PATCH] trying to modularize --- nix/configuration.nix | 5 +++-- nix/machines/G560.nix | 5 +++++ nix/user.nix | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 nix/machines/G560.nix diff --git a/nix/configuration.nix b/nix/configuration.nix index 558f13a..77f130e 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -21,11 +21,13 @@ let in { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + #"${home-manager}/nixos" # ./user.nix + ./machines/G560.nix ]; - # Linux kernel Latest + # Linux kernel Latest boot.kernelPackages = pkgs.linuxPackages_latest; # Use the GRUB 2 boot loader. boot.loader.grub.enable = true; @@ -34,7 +36,6 @@ in { # boot.loader.grub.efiInstallAsRemovable = true; # boot.loader.efi.efiSysMountPoint = "/boot/efi"; # Define on which hard drive you want to install Grub. - boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only networking = { hostName = hostName; networkmanager.enable = true; diff --git a/nix/machines/G560.nix b/nix/machines/G560.nix new file mode 100644 index 0000000..6a0a876 --- /dev/null +++ b/nix/machines/G560.nix @@ -0,0 +1,5 @@ +{ config, pkgs, ... }: +{ + + boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only +} diff --git a/nix/user.nix b/nix/user.nix index 5629541..804abaf 100644 --- a/nix/user.nix +++ b/nix/user.nix @@ -4,6 +4,8 @@ let email = "klimi@sitischu.com"; in { + + imports = []; home-manager.useUserPackages = true; #