Browse Source

trying to modularize

master
Martin Klimeš 4 years ago
parent
commit
8954db51c1
3 changed files with 10 additions and 2 deletions
  1. +3
    -2
      nix/configuration.nix
  2. +5
    -0
      nix/machines/G560.nix
  3. +2
    -0
      nix/user.nix

+ 3
- 2
nix/configuration.nix View File

@ -21,11 +21,13 @@ let
in { in {
imports = [ # Include the results of the hardware scan. imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
#"${home-manager}/nixos" #"${home-manager}/nixos"
#<home-manager/nixos> #<home-manager/nixos>
./user.nix ./user.nix
./machines/G560.nix
]; ];
# Linux kernel Latest
# Linux kernel Latest
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
# Use the GRUB 2 boot loader. # Use the GRUB 2 boot loader.
boot.loader.grub.enable = true; boot.loader.grub.enable = true;
@ -34,7 +36,6 @@ in {
# boot.loader.grub.efiInstallAsRemovable = true; # boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.efi.efiSysMountPoint = "/boot/efi"; # boot.loader.efi.efiSysMountPoint = "/boot/efi";
# Define on which hard drive you want to install Grub. # Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
networking = { networking = {
hostName = hostName; hostName = hostName;
networkmanager.enable = true; networkmanager.enable = true;

+ 5
- 0
nix/machines/G560.nix View File

@ -0,0 +1,5 @@
{ config, pkgs, ... }:
{
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
}

+ 2
- 0
nix/user.nix View File

@ -4,6 +4,8 @@ let
email = "klimi@sitischu.com"; email = "klimi@sitischu.com";
in in
{ {
imports = [<home-manager/nixos>]; imports = [<home-manager/nixos>];
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
# #

Loading…
Cancel
Save