Switch to Niri WM
This commit is contained in:
parent
b89a6b83f0
commit
c8f81f4190
15 changed files with 1196 additions and 443 deletions
29
helpers.nix
29
helpers.nix
|
@ -23,8 +23,12 @@ with inputs.nixpkgs.lib; {
|
|||
extraModules =
|
||||
hostModules # Host-specific modules.
|
||||
++ optionals (docker == true) [./suites/server/docker] # Enable docker if required.
|
||||
++ optionals (suite == "desktop") [niri.nixosModules.niri]
|
||||
++ (filesystem.listFilesRecursive ./modules); # Custom modules.
|
||||
|
||||
# specialArgs & extraSpecialArgs.
|
||||
args = {inherit inputs hostname secrets;};
|
||||
|
||||
# nixpkgs config.
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
|
@ -42,6 +46,7 @@ with inputs.nixpkgs.lib; {
|
|||
# Import my overlay.
|
||||
overlays = [
|
||||
(import ./overlay.nix {inherit inputs system;})
|
||||
niri.overlays.niri
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -62,19 +67,11 @@ with inputs.nixpkgs.lib; {
|
|||
{
|
||||
nixosConfigurations.${hostname} = nixosSystem {
|
||||
inherit system pkgs;
|
||||
|
||||
specialArgs = {
|
||||
# Make some variables accesible to modules.
|
||||
inherit
|
||||
inputs
|
||||
hostname
|
||||
secrets
|
||||
;
|
||||
};
|
||||
specialArgs = args;
|
||||
|
||||
modules =
|
||||
[
|
||||
nixvim.nixosModules.nixvim # Neovim.
|
||||
stylix.nixosModules.stylix # Universal styling.
|
||||
lanzaboote.nixosModules.lanzaboote # Secure boot.
|
||||
sops-nix.nixosModules.sops # Secrets management.
|
||||
|
||||
|
@ -88,7 +85,17 @@ with inputs.nixpkgs.lib; {
|
|||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
backupFileExtension = "backup";
|
||||
users.fern = ./home.nix;
|
||||
extraSpecialArgs = args;
|
||||
users.fern = {
|
||||
home.username = "fern"; # My username.
|
||||
home.homeDirectory = "/home/fern"; # My home directory.
|
||||
home.stateVersion = "25.05"; # NixOS/home manager version (must match).
|
||||
programs.home-manager.enable = true; # Enable home manager:
|
||||
imports = [
|
||||
nixvim.homeModules.nixvim # Neovim.
|
||||
./suites/${suite}/home.nix # Suite-specific config.
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue