This commit is contained in:
Hadi
2024-06-26 10:32:58 +02:00
committed by GitHub
parent bb4617160c
commit 3cfb9e733a
6 changed files with 38 additions and 40 deletions

102
hosts/laptop/home.nix Normal file
View File

@@ -0,0 +1,102 @@
{ pkgs, config, ... }: {
imports = [
./variables.nix
# Programs
../../home/programs/btop
../../home/programs/cava
../../home/programs/kitty
../../home/programs/nextcloud
../../home/programs/nvim
../../home/programs/qutebrowser
../../home/programs/spicetify
../../home/programs/zathura
../../home/programs/shell
../../home/programs/git
# Scripts
../../home/scripts # All scripts
# System (Desktop environment like stuff)
../../home/system/dunst
../../home/system/gtk
../../home/system/hyprland
../../home/system/waybar
../../home/system/wlogout
../../home/system/wofi
../../home/system/mime
../../home/system/udiskie
./sops.nix # You should probably remove this line
];
home = {
inherit (config.var) username;
inherit (config.var) homeDirectory;
packages = with pkgs; [
swappy
imv
discord
obsidian
xfce.thunar
bitwarden
vlc
nextcloud-client
tailscale
# Dev
go
cargo
nodejs
python3
jq
git-ignore
nurl
prefetch-npm-deps
figlet
# Utils
fd
bc
gcc
blueman
zip
unzip
xdg_utils
wget
curl
wf-recorder
glow
nwg-displays
wireguard-tools
bitwarden-cli
optipng
pfetch
usbutils
# Just cool
peaclock
cbonsai
pipes
cmatrix
# Backup
vscode
tor-browser
firefox
neovide
];
# Import wallpapers into $HOME/wallpapers
file."wallpapers" = {
recursive = true;
source = ../../home/wallpapers;
};
stateVersion = "24.05";
};
programs.home-manager.enable = true;
}

18
hosts/laptop/sops.nix Normal file
View File

@@ -0,0 +1,18 @@
{ 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"; };
gitlab-key = { path = "/home/hadi/.ssh/gitlab"; };
jack-key = { path = "/home/hadi/.ssh/jack"; };
};
};
systemd.user.services.mbsync.Unit.After = [ "sops-nix.service" ];
}