add server
This commit is contained in:
49
home/server.nix
Normal file
49
home/server.nix
Normal 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;
|
||||
|
||||
}
|
||||
16
home/system/sops/server.nix
Normal file
16
home/system/sops/server.nix
Normal 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" ];
|
||||
}
|
||||
Reference in New Issue
Block a user