mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +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
|
gpgconf --launch gpg-agent
|
||||||
";
|
";
|
||||||
|
|
||||||
home-manager.users.swarsel.swarselsystems = {
|
swarselsystems = {
|
||||||
isLaptop = true;
|
isLaptop = true;
|
||||||
isNixos = false;
|
isNixos = false;
|
||||||
wallpaper = ../../wallpaper/surfacewp.png;
|
wallpaper = ../../wallpaper/surfacewp.png;
|
||||||
|
|
@ -5611,15 +5611,13 @@ This section sets up all the imports that are used in the home-manager section.
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs.home-manager.enable = lib.mkIf (!config.swarselsystems.isNixos) true;
|
||||||
git.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
username = lib.mkDefault "swarsel";
|
username = lib.mkDefault "swarsel";
|
||||||
homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
||||||
stateVersion = lib.mkDefault "23.05";
|
stateVersion = lib.mkDefault "23.05";
|
||||||
keyboard.layout = "us"; # TEMPLATE
|
keyboard.layout = "us";
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
FLAKE = "$HOME/.dotfiles";
|
FLAKE = "$HOME/.dotfiles";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -41,15 +41,13 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs.home-manager.enable = lib.mkIf (!config.swarselsystems.isNixos) true;
|
||||||
git.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
username = lib.mkDefault "swarsel";
|
username = lib.mkDefault "swarsel";
|
||||||
homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
||||||
stateVersion = lib.mkDefault "23.05";
|
stateVersion = lib.mkDefault "23.05";
|
||||||
keyboard.layout = "us"; # TEMPLATE
|
keyboard.layout = "us";
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
FLAKE = "$HOME/.dotfiles";
|
FLAKE = "$HOME/.dotfiles";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
gpgconf --launch gpg-agent
|
gpgconf --launch gpg-agent
|
||||||
";
|
";
|
||||||
|
|
||||||
home-manager.users.swarsel.swarselsystems = {
|
swarselsystems = {
|
||||||
isLaptop = true;
|
isLaptop = true;
|
||||||
isNixos = false;
|
isNixos = false;
|
||||||
wallpaper = ../../wallpaper/surfacewp.png;
|
wallpaper = ../../wallpaper/surfacewp.png;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue