Skip to content

Commit

Permalink
feat: enable home-manager command on non-NixOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Swarsel committed Jul 26, 2024
1 parent 57426b9 commit e66390b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions SwarselSystems.org
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,7 @@ My old laptop, replaced by a new one, since most basic functions have stopped to
gpgconf --launch gpg-agent
";

home-manager.users.swarsel.swarselsystems = {
swarselsystems = {
isLaptop = true;
isNixos = false;
wallpaper = ../../wallpaper/surfacewp.png;
Expand Down Expand Up @@ -5611,15 +5611,13 @@ This section sets up all the imports that are used in the home-manager section.
};
};

programs = {
git.enable = true;
};
programs.home-manager.enable = lib.mkIf (!config.swarselsystems.isNixos) true;

home = {
username = lib.mkDefault "swarsel";
homeDirectory = lib.mkDefault "/home/${config.home.username}";
stateVersion = lib.mkDefault "23.05";
keyboard.layout = "us"; # TEMPLATE
keyboard.layout = "us";
sessionVariables = {
FLAKE = "$HOME/.dotfiles";
};
Expand Down
6 changes: 2 additions & 4 deletions profiles/common/home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,13 @@
};
};

programs = {
git.enable = true;
};
programs.home-manager.enable = lib.mkIf (!config.swarselsystems.isNixos) true;

home = {
username = lib.mkDefault "swarsel";
homeDirectory = lib.mkDefault "/home/${config.home.username}";
stateVersion = lib.mkDefault "23.05";
keyboard.layout = "us"; # TEMPLATE
keyboard.layout = "us";
sessionVariables = {
FLAKE = "$HOME/.dotfiles";
};
Expand Down
2 changes: 1 addition & 1 deletion profiles/home-manager/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
";

home-manager.users.swarsel.swarselsystems = {
swarselsystems = {
isLaptop = true;
isNixos = false;
wallpaper = ../../wallpaper/surfacewp.png;
Expand Down

0 comments on commit e66390b

Please sign in to comment.