home manager rlly do go brrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr uhagwiuagichawocwa

This commit is contained in:
Serenity-F 2024-04-05 20:04:35 +10:00 • committed by Serenity
parent 0e42f325e3
commit fe7f8361ef
3 changed files with 32 additions and 43 deletions

22
flake.lock generated
View file

@ -71,7 +71,9 @@
"hyprcursor": "hyprcursor", "hyprcursor": "hyprcursor",
"hyprland-protocols": "hyprland-protocols", "hyprland-protocols": "hyprland-protocols",
"hyprlang": "hyprlang_2", "hyprlang": "hyprlang_2",
"nixpkgs": "nixpkgs", "nixpkgs": [
"nixpkgs"
],
"systems": "systems_2", "systems": "systems_2",
"wlroots": "wlroots", "wlroots": "wlroots",
"xdph": "xdph" "xdph": "xdph"
@ -180,22 +182,6 @@
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": {
"lastModified": 1711523803,
"narHash": "sha256-UKcYiHWHQynzj6CN/vTcix4yd1eCu1uFdsuarupdCQQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2726f127c15a4cc9810843b96cad73c7eb39e443",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1712163089, "lastModified": 1712163089,
"narHash": "sha256-Um+8kTIrC19vD4/lUCN9/cU9kcOsD1O1m+axJqQPyMM=", "narHash": "sha256-Um+8kTIrC19vD4/lUCN9/cU9kcOsD1O1m+axJqQPyMM=",
@ -216,7 +202,7 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprland": "hyprland", "hyprland": "hyprland",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs"
} }
}, },
"systems": { "systems": {

View file

@ -23,10 +23,7 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
hyprland = { hyprland.url = "github:hyprwm/Hyprland";
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
@ -38,10 +35,18 @@
# nixos-hardware.nixosModules.$MODEL # nixos-hardware.nixosModules.$MODEL
./hosts/proserpina/configuration.nix ./hosts/proserpina/configuration.nix
disko.nixosModules.disko disko.nixosModules.disko
home-manager.nixosModules.home-manager
]; ];
}; };
}; };
homeConfigurations."serenity@proserpina" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [
hyprland.homeManagerModules.default
{wayland.windowManager.hyprland.enable = true;}
# ...
];
};
}; };
} }

View file

@ -3,27 +3,27 @@
{ {
imports = [ imports = [
inputs.home-manager.nixosModules.home-manager # inputs.home-manager.nixosModules.home-manager
]; ];
users.defaultUserShell = pkgs.fish;
home-manager = { home-manager = {
useUserPackages = true; useUserPackages = true;
useGlobalPkgs = true; useGlobalPkgs = true;
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
users.serenity = { users.serenity = {
imports = [ (import ../home) ];
home.username = "serenity";
home.homeDirectory = "/home/serenity";
home.stateVersion = "23.11";
programs.home-manager.enable = true; programs.home-manager.enable = true;
# imports = [ (import ../home) ];
home = {
username = "serenity";
homeDirectory = "/home/serenity"
stateVersion = "23.11";
};
}; };
}; };
users = { users.users.serenity = {
defaultUserShell = pkgs.fish;
users.serenity = {
description = "Serenity Amalgam"; description = "Serenity Amalgam";
isNormalUser = true; isNormalUser = true;
shell = pkgs.fish; shell = pkgs.fish;
@ -33,6 +33,4 @@
]; ];
}; };
};
} }