aboutsummaryrefslogtreecommitdiff
path: root/lib/default.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/default.nix14
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 7f0f8ed..532a33b 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -1,24 +1,21 @@
-{ inputs, overlays }:
+{ inputs }:
+
{
mkSystem =
{ hostname
, system
- , desktop ? false
}:
inputs.nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
- inherit inputs system hostname desktop;
+ inherit inputs system hostname;
};
modules = [
- ../modules/deskop
../modules/system
../hosts/${hostname}
{
networking.hostName = hostname;
- # Apply overlay and allow unfree packages
nixpkgs = {
- inherit overlays;
config.allowUnfree = true;
};
# Add each input as a registry
@@ -27,7 +24,7 @@
inputs.nixpkgs.lib.nameValuePair (n) ({ flake = v; }))
inputs;
}
- ]
+ ];
};
mkHome =
@@ -39,7 +36,7 @@
inputs.home-manager.lib.homeManagerConfiguration {
inherit username system;
extraSpecialArgs = {
- inherit system hostname graphical;
+ inherit system hostname desktop;
};
homeDirectory = "/home/${username}";
configuration = ../users/${username};
@@ -48,7 +45,6 @@
# Base configuration
{
nixpkgs = {
- inherit overlays;
config.allowUnfree = true;
};
programs = {