no home-managing for servers

This commit is contained in:
Adithya 2023-05-27 19:55:24 +05:30
parent a1aa950daf
commit 3cc4888ec1
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
46 changed files with 30 additions and 53 deletions

View file

@ -64,8 +64,7 @@
imports = [ imports = [
impermanence.nixosModules.home-manager.impermanence impermanence.nixosModules.home-manager.impermanence
nixneovim.nixosModules.default nixneovim.nixosModules.default
./home/common ./home
./home/desktop
]; ];
}; };
}; };
@ -80,24 +79,8 @@
nixpkgs.hostPlatform = nixpkgs.lib.mkDefault "aarch64-linux"; nixpkgs.hostPlatform = nixpkgs.lib.mkDefault "aarch64-linux";
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
} }
home-manager.nixosModules.home-manager
./common ./common
./hosts/rico2 ./hosts/rico2
{
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
users.${user.primary.userName} = {pkgs, ...}: {
imports = [
./home/common
./home/server
];
};
};
}
]; ];
}; };
}; };

View file

@ -1,4 +0,0 @@
{...}: {
imports = [./programs ./services];
home.stateVersion = "23.05";
}

View file

@ -1,23 +0,0 @@
{pkgs, ...}: {
imports = [
./bat.nix
./btop.nix
./direnv.nix
./exa.nix
./git.nix
./starship.nix
./zsh.nix
];
home.packages = with pkgs; [
lazydocker
ripgrep
];
programs = {
fzf.enable = true;
lazygit.enable = true;
ssh.enable = true;
zoxide.enable = true;
};
}

View file

@ -1 +0,0 @@
{...}: {}

View file

@ -1,6 +1,11 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [ imports = [
./aria2.nix ./aria2.nix
./bat.nix
./btop.nix
./direnv.nix
./exa.nix
./git.nix
./files.nix ./files.nix
./firefox.nix ./firefox.nix
./github-cli.nix ./github-cli.nix
@ -8,11 +13,15 @@
./kitty.nix ./kitty.nix
./mpv.nix ./mpv.nix
./neovim.nix ./neovim.nix
./starship.nix
./tmux.nix ./tmux.nix
./virt-manager.nix ./virt-manager.nix
./yt-dlp.nix ./yt-dlp.nix
./zsh.nix
]; ];
home.stateVersion = "23.05";
home.packages = with pkgs; [ home.packages = with pkgs; [
_1password-gui _1password-gui
discord discord
@ -21,14 +30,23 @@
gnome.eog gnome.eog
gnome.gnome-system-monitor gnome.gnome-system-monitor
gnome3.gnome-disk-utility gnome3.gnome-disk-utility
lazydocker
pavucontrol pavucontrol
ripgrep
spotify-tui spotify-tui
wl-clipboard wl-clipboard
xdg-utils xdg-utils
# yubioath-flutter yubioath-flutter
yubikey-manager yubikey-manager
yubikey-manager-qt yubikey-manager-qt
yubikey-personalization yubikey-personalization
yubikey-personalization-gui yubikey-personalization-gui
]; ];
programs = {
fzf.enable = true;
lazygit.enable = true;
ssh.enable = true;
zoxide.enable = true;
};
} }

View file

@ -1,5 +1,5 @@
{...}: let {...}: let
user = (import ../../../secrets.nix).users; user = (import ../../secrets.nix).users;
in { in {
programs.git = { programs.git = {
enable = true; enable = true;

View file

@ -1,3 +0,0 @@
{...}: {
imports = [./programs ./services];
}

View file

@ -1 +0,0 @@
{...}: {}

View file

@ -1 +0,0 @@
{...}: {}

View file

@ -1,6 +1,7 @@
{...}: { {...}: {
imports = [ imports = [
./neovim.nix ./neovim.nix
./starship.nix
]; ];
programs = { programs = {

View file

@ -0,0 +1,8 @@
{ ... }: {
programs.starship = {
enable = true;
settings = {
add_newline = false;
};
};
}