experimenting with system
This commit is contained in:
@@ -14,7 +14,6 @@
|
|||||||
|
|
||||||
# Minimal settings that must be defined here
|
# Minimal settings that must be defined here
|
||||||
networking.hostName = "traveldroid";
|
networking.hostName = "traveldroid";
|
||||||
system = "x86_64-linux"; # Define the system explicitly
|
|
||||||
wm.type = "hyprland"; # Define the window manager type here, mangowc will be made possible in the nerar future.
|
wm.type = "hyprland"; # Define the window manager type here, mangowc will be made possible in the nerar future.
|
||||||
# In generated/top.nix the chpice fopr a window manager will be effectuated
|
# In generated/top.nix the chpice fopr a window manager will be effectuated
|
||||||
}
|
}
|
||||||
|
|||||||
+42
-26
@@ -22,33 +22,49 @@
|
|||||||
hyprland.url = "github:hyprwm/Hyprland";
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, home-manager, emacs-overlay, catppuccin, zen-browser, hyprland, ... }:
|
outputs =
|
||||||
let
|
inputs@{
|
||||||
lib = nixpkgs.lib;
|
nixpkgs,
|
||||||
system = lib.system.system;
|
home-manager,
|
||||||
user = import ./assets/flake/users/henrov.nix;
|
emacs-overlay,
|
||||||
machines = ["traveldroid" "maindroid"];
|
catppuccin,
|
||||||
in
|
zen-browser,
|
||||||
{
|
hyprland,
|
||||||
nixosConfigurations = lib.genAttrs machines (machine: lib.nixosSystem {
|
...
|
||||||
inherit system;
|
}:
|
||||||
modules = [
|
let
|
||||||
# Import machine-specific configurations
|
lib = nixpkgs.lib;
|
||||||
./assets/flake/machines/${machine}/top.nix
|
system = "x86_64-linux"; # Define the system explicitly
|
||||||
|
user = import ./assets/flake/users/henrov.nix;
|
||||||
# Home Manager and theme modules
|
machines = [
|
||||||
home-manager.nixosModules.home-manager {
|
"traveldroid"
|
||||||
home-manager.useGlobalPkgs = true;
|
"maindroid"
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.extraSpecialArgs = { inherit user inputs; };
|
|
||||||
}
|
|
||||||
inputs.catppuccin.nixosModules.catppuccin
|
|
||||||
];
|
];
|
||||||
specialArgs = { inherit user inputs; };
|
in
|
||||||
});
|
{
|
||||||
|
nixosConfigurations = lib.genAttrs machines (
|
||||||
|
machine:
|
||||||
|
lib.nixosSystem {
|
||||||
|
inherit system;
|
||||||
|
modules = [
|
||||||
|
# Import machine-specific configurations
|
||||||
|
./assets/flake/machines/${machine}/top.nix
|
||||||
|
|
||||||
devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix {
|
# Home Manager and theme modules
|
||||||
inherit (nixpkgs) mkShell;
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.extraSpecialArgs = { inherit user inputs; };
|
||||||
|
}
|
||||||
|
inputs.catppuccin.nixosModules.catppuccin
|
||||||
|
];
|
||||||
|
specialArgs = { inherit user inputs; };
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix {
|
||||||
|
inherit (nixpkgs) mkShell;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user