simplified home-mamager config in flake

This commit is contained in:
Aly Raffauf 2024-03-12 23:11:10 -04:00
parent 1562a8f24c
commit 1889916398
3 changed files with 22 additions and 23 deletions

View file

@ -39,6 +39,20 @@
outputs = inputs@{ nixpkgs, home-manager, nixpkgs-unstable, home-manager-unstable, nixos-hardware, ... }: { outputs = inputs@{ nixpkgs, home-manager, nixpkgs-unstable, home-manager-unstable, nixos-hardware, ... }: {
nixosConfigurations = { nixosConfigurations = {
# # Framework 13 with AMD Ryzen 7640U and 32GB RAM.
# lavaridge = nixpkgs-unstable.lib.nixosSystem {
# system = "x86_64-linux";
# modules = [
# ./hosts/lavaridge
# ./desktop/gnome
# # Add home-manager nixos module so home-manager config deploys on nixos-rebuild.
# home-manager-unstable.nixosModules.home-manager
# # nixos-hardware configuration for fw13-amd.
# nixos-hardware.nixosModules.framework-13-7040-amd
# ];
# };
# T440p with i5-4210M and 16GB RAM. # T440p with i5-4210M and 16GB RAM.
rustboro = nixpkgs-unstable.lib.nixosSystem { rustboro = nixpkgs-unstable.lib.nixosSystem {
@ -46,15 +60,7 @@
modules = [ modules = [
./hosts/rustboro ./hosts/rustboro
./desktop/kde ./desktop/kde
home-manager-unstable.nixosModules.home-manager
# Add home-manager nixos module so home-manager config deploys on nixos-rebuild.
home-manager-unstable.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.aly = import ./home/aly;
}
# nixos-hardware configuration for t440p
nixos-hardware.nixosModules.lenovo-thinkpad-t440p nixos-hardware.nixosModules.lenovo-thinkpad-t440p
]; ];
}; };
@ -65,13 +71,7 @@
modules = [ modules = [
./hosts/petalburg ./hosts/petalburg
./desktop/gnome ./desktop/gnome
home-manager-unstable.nixosModules.home-manager
# Add home-manager nixos module so home-manager config deploys on nixos-rebuild.
home-manager-unstable.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.aly = import ./home/aly;
}
nixos-hardware.nixosModules.common-pc-laptop-ssd nixos-hardware.nixosModules.common-pc-laptop-ssd
nixos-hardware.nixosModules.common-cpu-intel nixos-hardware.nixosModules.common-cpu-intel
]; ];
@ -85,13 +85,7 @@
./desktop/gnome ./desktop/gnome
./modules/homelab ./modules/homelab
./modules/steam ./modules/steam
home-manager-unstable.nixosModules.home-manager
# Add home-manager nixos module so home-manager config deploys on nixos-rebuild.
home-manager-unstable.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.aly = import ./home/aly;
}
]; ];
}; };
}; };

View file

@ -63,4 +63,7 @@
''; '';
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
} }

View file

@ -7,4 +7,6 @@
description = "Aly Raffauf"; description = "Aly Raffauf";
extraGroups = [ "networkmanager" "wheel" "docker" "libvirtd" ]; extraGroups = [ "networkmanager" "wheel" "docker" "libvirtd" ];
}; };
home-manager.users.aly = import ../../home/aly;
} }