Compare commits

...

3 Commits

Author SHA1 Message Date
e4671a839e
remove stupid thing that didn't work 2023-12-31 12:04:44 -05:00
b979657a95
Add a basic working home-manager config
my idea didn't work
2023-12-31 12:03:46 -05:00
c505d1dea6
Use correct version of Home Manager 2023-12-31 11:54:56 -05:00
3 changed files with 31 additions and 12 deletions

7
flake.lock generated
View File

@ -7,15 +7,16 @@
]
},
"locked": {
"lastModified": 1703838268,
"narHash": "sha256-SRg5nXcdPnrsQR2MTAp7en0NyJnQ2wB1ivmsgEbvN+o=",
"lastModified": 1703367386,
"narHash": "sha256-FMbm48UGrBfOWGt8+opuS+uLBLQlRfhiYXhHNcYMS5k=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "2aff324cf65f5f98f89d878c056b779466b17db8",
"rev": "d5824a76bc6bb93d1dce9ebbbcb09a9b6abcc224",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-23.11",
"repo": "home-manager",
"type": "github"
}

View File

@ -7,27 +7,28 @@
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager";
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }:
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }@inputs:
let
lib = nixpkgs.lib;
lib-unstable = nixpkgs-unstable.lib;
username = "nullbite";
# to use this add `homeModules <username> [ ... ]` to a system's modules.
homeModules = user: modules: home-manager.nixosModules.home-manager {
hmModule = home-manager.nixosModules.home-manager;
hmModuleDefaults = {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users."${user}" = {lib, config, pkgs, osConfig, ...}:
{
imports = modules;
};
};
in {
# for repl debugging via :lf .
inherit inputs;
vars = {
inherit lib lib-unstable username;
};
nixosConfigurations = {
slab = lib.nixosSystem {
system = "x86_64-linux";
@ -48,6 +49,11 @@
./roles/plasma.nix
./fragments/hardware/nvidia-modeset.nix
./roles/gaming.nix
hmModule (hmModuleDefaults // {
home-manager.users."${username}" = import ./home.nix;
})
];
};
};

12
home.nix Normal file
View File

@ -0,0 +1,12 @@
{ lib, pkgs, osConfig, ... }:
{
# home.username = "nullbite";
# home.homeDirectory = "/home/nullbite";
home.packages = with pkgs; [
btop
];
home.stateVersion = "23.11";
}