🚚 move hyprland module down the tree

This commit is contained in:
Laureηt 2023-05-29 00:12:48 +02:00
parent 562dff7a7c
commit 888573446c
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
3 changed files with 8 additions and 8 deletions

View file

@ -29,7 +29,7 @@
}; };
outputs = { nixpkgs, flake-utils, lanzaboote, agenix, home-manager outputs = { nixpkgs, flake-utils, lanzaboote, agenix, home-manager
, nixos-hardware, hyprland, ... }: , nixos-hardware, ... }@attrs:
(flake-utils.lib.eachDefaultSystem (system: (flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; let pkgs = nixpkgs.legacyPackages.${system};
@ -48,13 +48,10 @@
# neodymium laptop # neodymium laptop
nixosConfigurations.neodymium = nixpkgs.lib.nixosSystem { nixosConfigurations.neodymium = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = attrs;
modules = [ modules = [
./hosts/neodymium/configuration.nix ./hosts/neodymium/configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{
home-manager.users.laurent.imports =
[ hyprland.homeManagerModules.default ];
}
agenix.nixosModules.default agenix.nixosModules.default
lanzaboote.nixosModules.lanzaboote lanzaboote.nixosModules.lanzaboote
nixos-hardware.nixosModules.common-cpu-amd nixos-hardware.nixosModules.common-cpu-amd

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { { pkgs, hyprland, ... }: {
imports = [ ./hardware-configuration.nix ./system ]; imports = [ ./hardware-configuration.nix ./system ];
# shorter timeout for systemd services # shorter timeout for systemd services
@ -23,7 +23,7 @@
# disable user creation/deletion # disable user creation/deletion
mutableUsers = false; mutableUsers = false;
# damn, who's this handsome guy? # absolute gigachad
users.laurent = { users.laurent = {
isNormalUser = true; isNormalUser = true;
initialPassword = "laurent"; initialPassword = "laurent";
@ -36,6 +36,7 @@
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
extraSpecialArgs = { inherit hyprland; };
users.laurent = ./home; users.laurent = ./home;
}; };

View file

@ -1,6 +1,8 @@
{ ... }: { { hyprland, ... }: {
config.home.stateVersion = "22.11"; config.home.stateVersion = "22.11";
imports = [ imports = [
hyprland.homeManagerModules.default
./packages.nix ./packages.nix
./alacritty ./alacritty