Compare commits

..

No commits in common. "65a53fe6f4db0a4cfb4a186545d00c4606835591" and "913e75cc3309b0c1b0412df5967a90cb380f714d" have entirely different histories.

8 changed files with 21 additions and 34 deletions

View file

@ -11,10 +11,7 @@
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master";
catppuccin = { catppuccin.url = "github:catppuccin/nix";
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,6 +26,7 @@
extraSpecialArgs = { extraSpecialArgs = {
inherit spicetify-nix; inherit spicetify-nix;
inherit agenix; inherit agenix;
inherit agenix-rekey;
}; };
users.etwas = { users.etwas = {

View file

@ -2,7 +2,6 @@
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,22 +7,18 @@
localbackup = { localbackup = {
exclude = [ exclude = [
"/home/*/.cache/*" "/home/*/.cache/*"
"/home/*/.local/share/libvirt/*" "*venv*"
"/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";
pruneOpts = [ environmentFile = ''
"--keep-daily 7" AWS_ACCESS_KEY_ID=XFRV1PZVN3W4OJMTTQRS
"--keep-weekly 4" AWS_SECRET_ACCESS_KEY=${builtins.readFile config.age.secrets.restic-s3-key.path}
]; '';
}; };
}; };
}; };

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/etwas/nix-config/"; os-update = "nh clean all -K 7d --keep 14 && export NIXPKGS_ALLOW_UNFREE=1 && 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/"; 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/";
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,6 +1,5 @@
{ {
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,12 +22,7 @@
"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" ];
@ -36,12 +31,12 @@
}; };
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-label/nixos-root"; device = "/dev/disk/by-label/nix-root";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-label/nixos-boot"; device = "/dev/disk/by-label/EFI";
fsType = "vfat"; fsType = "vfat";
options = [ options = [
"fmask=0077" "fmask=0077"
@ -49,7 +44,7 @@
]; ];
}; };
swapDevices = [ { device = "/dev/disk/by-label/nixos-swap"; } ]; swapDevices = [ { device = "/dev/disk/by-label/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;