add server

This commit is contained in:
Hadi
2024-06-17 23:29:47 +02:00
parent d1b581fd58
commit 25d4dc93f1
8 changed files with 247 additions and 3 deletions

49
home/server.nix Normal file
View File

@@ -0,0 +1,49 @@
{ pkgs, config, ... }: {
imports = [
../hosts/laptop/variables.nix
# Programs
./programs/btop
./programs/nvim
# Scripts
./scripts # All scripts
# System
./system/git
./system/shell
./system/sops/server.nix
];
home = {
inherit (config.var) username;
inherit (config.var) homeDirectory;
packages = with pkgs; [
# Dev
go
cargo
nodejs
python3
jq
# Utils
fd
bc
gcc
zip
unzip
wget
curl
glow
wireguard-tools
pfetch
];
stateVersion = "24.05";
};
programs.home-manager.enable = true;
}

View File

@@ -0,0 +1,16 @@
{ pkgs, inputs, ... }: {
imports = [ inputs.sops-nix.homeManagerModules.sops ];
home.packages = with pkgs; [ sops age ];
sops = {
age.keyFile = "/home/hadi/.config/sops/age/keys.txt";
defaultSopsFile = ../../../secrets/laptop.yaml;
secrets = {
sshconfig = { path = "/home/hadi/.ssh/config"; };
github-key = { path = "/home/hadi/.ssh/github"; };
};
};
systemd.user.services.mbsync.Unit.After = [ "sops-nix.service" ];
}