Attempt to switch to the home-manager command rather than manual activation
diff --git a/flake.lock b/flake.lock
index f570edb..2168b8e 100644
--- a/flake.lock
+++ b/flake.lock
@@ -98,11 +98,11 @@
},
"nixpkgs_2": {
"locked": {
- "lastModified": 1652881001,
- "narHash": "sha256-k9JmPCojaJnqGz4aRXXT1HZqJKHCXijoMfBAb24abXk=",
+ "lastModified": 1653087707,
+ "narHash": "sha256-zfno3snrzZTWQ2B7K53QHrGZwrjnJLTRPalymrSsziU=",
"owner": "nixos",
"repo": "nixpkgs",
- "rev": "2d474d6a4a43a0348b78db68dc00c491032cf5cf",
+ "rev": "cbd40c72b2603ab54e7208f99f9b35fc158bc009",
"type": "github"
},
"original": {
diff --git a/flake.nix b/flake.nix
index 94cd4f5..62ebdef 100644
--- a/flake.nix
+++ b/flake.nix
@@ -37,8 +37,8 @@
};
};
- homeManagerConfigurations = {
- minion = home-manager.lib.homeManagerConfiguration rec {
+ homeConfigurations = {
+ "${username}" = home-manager.lib.homeManagerConfiguration rec {
inherit system pkgs;
extraSpecialArgs = extraInputs;
diff --git a/scripts/rebuild-home.sh b/scripts/rebuild-home.sh
index a30706a..abbc4ad 100755
--- a/scripts/rebuild-home.sh
+++ b/scripts/rebuild-home.sh
@@ -9,6 +9,4 @@
/usr/bin/env git commit -am "$changes"
fi
-nix build .#homeManagerConfigurations.minion.activationPackage $1
-./result/activate
-unlink ./result
+home-manager switch --flake .#$USER $1
diff --git a/src/apps/personal/sway.nix b/src/apps/personal/sway.nix
index 18ad1fc..01e90e3 100644
--- a/src/apps/personal/sway.nix
+++ b/src/apps/personal/sway.nix
@@ -192,6 +192,7 @@
avizo
pamixer
brightnessctl
+ light
bc
];
diff --git a/src/system.nix b/src/system.nix
index 0fdc8b3..2058d3b 100644
--- a/src/system.nix
+++ b/src/system.nix
@@ -241,7 +241,7 @@
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.minion = {
isNormalUser = true;
- extraGroups = [ "wheel" "kvm" "docker" "containerd" "dialout" "libvirtd" ]; # Enable ‘sudo’ for the user.
+ extraGroups = [ "wheel" "kvm" "docker" "containerd" "dialout" "libvirtd" "video" ]; # Enable ‘sudo’ for the user.
shell = pkgs.zsh;
};