Przeglądaj źródła

trying to modularize

master
Martin Klimeš 4 lat temu
rodzic
commit
8954db51c1
3 zmienionych plików z 10 dodań i 2 usunięć
  1. +3
    -2
      nix/configuration.nix
  2. +5
    -0
      nix/machines/G560.nix
  3. +2
    -0
      nix/user.nix

+ 3
- 2
nix/configuration.nix Wyświetl plik

@ -21,11 +21,13 @@ let
in {
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
#"${home-manager}/nixos"
#<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;

+ 5
- 0
nix/machines/G560.nix Wyświetl plik

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

+ 2
- 0
nix/user.nix Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz