Compare commits

...

4 commits

8 changed files with 34 additions and 21 deletions

View file

@ -11,7 +11,10 @@
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master";
catppuccin.url = "github:catppuccin/nix"; catppuccin = {
url = "github:catppuccin/nix/f518f96a60aceda4cd487437b25eaa48d0f1b97d";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix.url = "github:ryantm/agenix"; agenix.url = "github:ryantm/agenix";

View file

@ -1,9 +1,9 @@
{ {
config,
pkgs, pkgs,
inputs, inputs,
spicetify-nix, spicetify-nix,
agenix, agenix,
agenix-rekey,
... ...
}: }:
{ {
@ -26,7 +26,6 @@
extraSpecialArgs = { extraSpecialArgs = {
inherit spicetify-nix; inherit spicetify-nix;
inherit agenix; inherit agenix;
inherit agenix-rekey;
}; };
users.etwas = { users.etwas = {

View file

@ -2,6 +2,7 @@
imports = [ imports = [
./git.nix ./git.nix
./keyring.nix ./keyring.nix
./restic.nix
./ssh.nix ./ssh.nix
./zsh.nix ./zsh.nix
]; ];

View file

@ -1,4 +1,4 @@
{ config, ... }: { ... }:
{ {
services.restic = { services.restic = {
enable = true; enable = true;
@ -7,18 +7,22 @@
localbackup = { localbackup = {
exclude = [ exclude = [
"/home/*/.cache/*" "/home/*/.cache/*"
"*venv*" "/home/*/.local/share/libvirt/*"
"/home/*/.local/share/Steam/*"
"/home/*/.local/share/Trash/*"
"*/venv/*"
"*/.direnv/*"
"*/Android/*"
]; ];
initialize = true; initialize = true;
passwordFile = config.age.secrets.restic-password.path;
paths = [ paths = [
"/home" "/home"
]; ];
repository = "s3:https://s3.filmsli.de/restic-framework"; repository = "s3:https://s3.filmsli.de/restic-framework";
environmentFile = '' pruneOpts = [
AWS_ACCESS_KEY_ID=XFRV1PZVN3W4OJMTTQRS "--keep-daily 7"
AWS_SECRET_ACCESS_KEY=${builtins.readFile config.age.secrets.restic-s3-key.path} "--keep-weekly 4"
''; ];
}; };
}; };
}; };

View file

@ -7,8 +7,8 @@
autocd = true; autocd = true;
shellAliases = { shellAliases = {
os-update = "nh clean all -K 7d --keep 14 && export NIXPKGS_ALLOW_UNFREE=1 && nh os switch /home/rhea/nix-config/"; os-update = "nh clean all -K 7d --keep 14 && export NIXPKGS_ALLOW_UNFREE=1 && nh os switch /home/etwas/nix-config/";
os-upgrade = "cd ~/nix-config && nh clean all -K 7d --keep 14 && export NIXPKGS_ALLOW_UNFREE=1 && nix flake update && nh os switch /home/rhea/nix-config/"; os-upgrade = "cd ~/nix-config && nh clean all -K 7d --keep 14 && export NIXPKGS_ALLOW_UNFREE=1 && nix flake update && nh os switch /home/etwas/nix-config/";
light-off = "echo -n \"{\\\"id\\\":1,\\\"method\\\":\\\"setState\\\",\\\"params\\\":{\\\"state\\\":false}}\" | nc -u -w 1 192.168.178.28 38899"; light-off = "echo -n \"{\\\"id\\\":1,\\\"method\\\":\\\"setState\\\",\\\"params\\\":{\\\"state\\\":false}}\" | nc -u -w 1 192.168.178.28 38899";
clr = "clear"; clr = "clear";
power-saver = "powerprofilesctl set power-saver"; power-saver = "powerprofilesctl set power-saver";

View file

@ -1,5 +1,6 @@
{ {
pkgs, pkgs,
agenix,
... ...
}: }:
{ {

View file

@ -1,10 +1,10 @@
{ {
catppuccin = { catppuccin = {
#gtk = { gtk = {
# enable = true; enable = true;
# size = "compact"; size = "compact";
# tweaks = [ "rimless" ]; tweaks = [ "rimless" ];
#}; };
btop.enable = true; btop.enable = true;

View file

@ -22,7 +22,12 @@
"usb_storage" "usb_storage"
"sd_mod" "sd_mod"
]; ];
kernelModules = [ ]; kernelModules = [
"dm-snapshot"
"cryptd"
];
luks.devices."cryptroot".device = "/dev/disk/by-label/nixos";
}; };
kernelModules = [ "kvm-amd" ]; kernelModules = [ "kvm-amd" ];
@ -31,12 +36,12 @@
}; };
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-label/nix-root"; device = "/dev/disk/by-label/nixos-root";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-label/EFI"; device = "/dev/disk/by-label/nixos-boot";
fsType = "vfat"; fsType = "vfat";
options = [ options = [
"fmask=0077" "fmask=0077"
@ -44,7 +49,7 @@
]; ];
}; };
swapDevices = [ { device = "/dev/disk/by-label/swap"; } ]; swapDevices = [ { device = "/dev/disk/by-label/nixos-swap"; } ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;