Pārlūkot izejas kodu

trying to modularize

master
Martin Klimeš pirms 4 gadiem
vecāks
revīzija
8954db51c1
3 mainītis faili ar 10 papildinājumiem un 2 dzēšanām
  1. +3
    -2
      nix/configuration.nix
  2. +5
    -0
      nix/machines/G560.nix
  3. +2
    -0
      nix/user.nix

+ 3
- 2
nix/configuration.nix Parādīt failu

@ -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 Parādīt failu

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

+ 2
- 0
nix/user.nix Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt