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";
catppuccin.url = "github:catppuccin/nix";
catppuccin = {
url = "github:catppuccin/nix/f518f96a60aceda4cd487437b25eaa48d0f1b97d";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix.url = "github:ryantm/agenix";

View file

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

View file

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

View file

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

View file

@ -7,8 +7,8 @@
autocd = true;
shellAliases = {
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/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/etwas/nix-config/";
light-off = "echo -n \"{\\\"id\\\":1,\\\"method\\\":\\\"setState\\\",\\\"params\\\":{\\\"state\\\":false}}\" | nc -u -w 1 192.168.178.28 38899";
clr = "clear";
power-saver = "powerprofilesctl set power-saver";

View file

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

View file

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

View file

@ -22,7 +22,12 @@
"usb_storage"
"sd_mod"
];
kernelModules = [ ];
kernelModules = [
"dm-snapshot"
"cryptd"
];
luks.devices."cryptroot".device = "/dev/disk/by-label/nixos";
};
kernelModules = [ "kvm-amd" ];
@ -31,12 +36,12 @@
};
fileSystems."/" = {
device = "/dev/disk/by-label/nix-root";
device = "/dev/disk/by-label/nixos-root";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/EFI";
device = "/dev/disk/by-label/nixos-boot";
fsType = "vfat";
options = [
"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";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;