Compare commits
4 commits
913e75cc33
...
65a53fe6f4
| Author | SHA1 | Date | |
|---|---|---|---|
| 65a53fe6f4 | |||
| ed556fb042 | |||
| 1d8cd372bd | |||
| 121da064eb |
8 changed files with 34 additions and 21 deletions
|
|
@ -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";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./git.nix
|
./git.nix
|
||||||
./keyring.nix
|
./keyring.nix
|
||||||
|
./restic.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
'';
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
agenix,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue