make configuration.nix host agnostic and add nix-conv
This commit is contained in:
@@ -36,11 +36,6 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostName = "nix-desk"; # Define your hostname.
|
|
||||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
|
||||||
# required for ZFS
|
|
||||||
networking.hostId = "00000001";
|
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
||||||
@@ -105,10 +100,6 @@
|
|||||||
htop
|
htop
|
||||||
];
|
];
|
||||||
|
|
||||||
# allow specific users to affect system configuration
|
|
||||||
users.groups.nixos-admins = {};
|
|
||||||
users.users.root.extraGroups = [ "nixos-admins" ];
|
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
# programs.mtr.enable = true;
|
# programs.mtr.enable = true;
|
||||||
|
|||||||
14
flake.nix
14
flake.nix
@@ -31,6 +31,20 @@
|
|||||||
./users/shatteredmint.nix
|
./users/shatteredmint.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix-conv = lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
specialArgs = inputs;
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
./hardware/conv.nix
|
||||||
|
|
||||||
|
./configuration.nix
|
||||||
|
|
||||||
|
./plasma.nix
|
||||||
|
./users/shatteredmint.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,4 +53,9 @@
|
|||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
|
networking.hostName = "nix-desk"; # Define your hostname.
|
||||||
|
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||||
|
# required for ZFS
|
||||||
|
networking.hostId = "00000001";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user