Compare commits

..

No commits in common. "e4671a839e552023c6f24d1f83afaef3922fe40b" and "65dc027769f6707f7831adc61588a87e76fcbf58" have entirely different histories.

3 changed files with 12 additions and 31 deletions

7
flake.lock generated
View File

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

View File

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

View File

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