mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
feat: enable home-manager command on non-NixOS
This commit is contained in:
parent
57426b9bf3
commit
e66390bd1f
3 changed files with 6 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
@ -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";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue