feat(home-manager): move apps and packages from nixos config inside home-manager config

This commit is contained in:
spy4x 2024-03-15 15:52:31 +08:00
parent 46773dfbe0
commit 12ad5041da

View File

@ -104,25 +104,6 @@ in
home.homeDirectory = "/home/${username}"; home.homeDirectory = "/home/${username}";
home.packages = with pkgs; [ home.packages = with pkgs; [
wget
];
programs.ssh.enable = true;
programs.ssh.extraConfig = ''
${sshConfig}
'';
};
# Define a user account. Don't forget to set a password with passwd.
users.users.spy4x = {
isNormalUser = true;
description = userFullName;
extraGroups = [
"networkmanager"
"wheel"
"bluetooth"
"docker"
];
packages = with pkgs; [
# Shell tools # Shell tools
git git
gnumake # Source for "make" command gnumake # Source for "make" command
@ -153,6 +134,11 @@ in
localsend # Share files/text/data with other devices in local network without internet. OSS alternative to AirDrop. localsend # Share files/text/data with other devices in local network without internet. OSS alternative to AirDrop.
rclone # Sync Google Drive with a local folder rclone # Sync Google Drive with a local folder
]; ];
programs.ssh.enable = true;
programs.ssh.extraConfig = ''
${sshConfig}
'';
}; };
programs.steam.enable = true; # Install Steam for games management programs.steam.enable = true; # Install Steam for games management
@ -163,6 +149,18 @@ in
alias rsh='rsync -avhzru -P -e ssh' alias rsh='rsync -avhzru -P -e ssh'
''; '';
# Define a user account. Don't forget to set a password with passwd.
users.users.spy4x = {
isNormalUser = true;
description = userFullName;
extraGroups = [
"networkmanager"
"wheel"
"bluetooth"
"docker"
];
};
# Enable automatic login for the user. # Enable automatic login for the user.
services.xserver.displayManager.autoLogin.enable = true; services.xserver.displayManager.autoLogin.enable = true;
services.xserver.displayManager.autoLogin.user = username; services.xserver.displayManager.autoLogin.user = username;