This commit is contained in:
Alexander Szczepanski
2021-10-28 09:02:58 +02:00
parent 5950e8d335
commit fab941ef91
9 changed files with 65 additions and 109 deletions

18
configs/borg-exclude.nix Normal file
View File

@ -0,0 +1,18 @@
{
borg-exclude = [
".cache"
".config/chromium/Default/Service Worker/CacheStorage"
".config/discord/Cache"
".local/share/libvirt/images"
".local/share/Steam/config/htmlcache/Cache"
".local/share/Steam/steamapps"
".local/share/Trash"
"Games/guild-wars-second/drive_c/Program Files/Guild Wars/Gw.dat"
"Games/guild-wars/drive_c/Program Files/Guild Wars/Gw.dat"
"Kamera"
"Nextcloud"
"shared"
"Sync"
"Workspace"
];
}

View File

@ -51,12 +51,8 @@ in
environment.systemPackages = with pkgs; [
ack
borgbackup
broot
btrfs-progs
bwm_ng
cargo
exa
ffmpeg
gnupg
gocryptfs
graphviz
@ -75,11 +71,11 @@ in
parallel
pciutils
ruby
tealdeer
unixtools.xxd
unzip
usbutils
wget
nethogs
];
documentation.enable = false;

View File

@ -1,14 +1,13 @@
{ config, pkgs, ... }:
let
unstable = import <nixos-unstable> { config.allowUnfree = true; };
unstable = import <nixos-unstable> {
config = {
allowUnfree = true;
chromium.commandLineArgs = "--enable-features=WebUIDarkMode,NativeNotifications,VaapiVideoDecoder --ignore-gpu-blocklist --use-gl=desktop --force-dark-mode --disk-cache-dir=/tmp/cache";
};
};
in
{
nixpkgs.config = {
allowUnfree = true;
allowBroken = true;
chromium.commandLineArgs = "--enable-features=WebUIDarkMode,NativeNotifications,VaapiVideoDecoder --ignore-gpu-blocklist --use-gl=desktop --force-dark-mode --disk-cache-dir=/tmp/cache";
};
networking = {
firewall.enable = false;
networkmanager = {
@ -31,20 +30,16 @@ in
];
programs = {
steam.enable = true;
dconf.enable = true;
adb.enable = true;
# seahorse.enable = true;
ssh = {
startAgent = true;
};
gnupg.agent = {
enable = true;
pinentryFlavor = "curses";
# enableSSHSupport = true;
};
chromium = {
enable = true;
extensions = [
@ -88,7 +83,7 @@ in
fontDir.enable = true;
fonts = with pkgs; [
corefonts
# corefonts
font-awesome
google-fonts
liberation_ttf

View File

@ -16,6 +16,7 @@ in
etcher
firefox
font-manager
freecad
fslint
gnome.cheese
homebank
@ -29,6 +30,7 @@ in
lxrandr
mangohud
meld
obs-studio
pinta
prusa-slicer
rpi-imager
@ -41,8 +43,6 @@ in
vulkan-tools
wine
winetricks
obs-studio
freecad
];
};
};

View File

@ -1,9 +1,7 @@
{ config, pkgs, lib, ... }:
let
unstable = import <nixos-unstable> { config.allowUnfree = true; };
in
{
let unstable = import <nixos-unstable> { config.allowUnfree = true; };
in {
imports = [ <home-manager/nixos> ];
home-manager.users.alex = { pkgs, ... }: {
@ -51,36 +49,13 @@ in
# "file:///home/alex/3D%20Print"
# "file:///home/alex/Sync"
# ];
extraConfig = {
gtk-application-prefer-dark-theme = 1;
};
# extraCss = ''
# decoration
# {
# border-radius: 0px 0px 0 0;
# border-width: 0px;
# /*box-shadow: 1px 12px 12px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.18);*/
# box-shadow: none;
# margin: 0px;
# }
# decoration:backdrop
# {
# border-radius: 0px 0px 0 0;
# border-width: 0px;
# /*box-shadow: 1px 12px 12px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.18);*/
# box-shadow: none;
# margin: 0px;
# }
# '';
extraConfig = { gtk-application-prefer-dark-theme = 1; };
};
iconTheme = {
package = pkgs.pantheon.elementary-icon-theme;
name = "elementary";
};
theme = {
name = "Adwaita-dark";
};
theme = { name = "Adwaita-dark"; };
};
programs = {
@ -151,38 +126,37 @@ in
git = {
extraConfig = {
credential.helper = "${
pkgs.git.override { withLibsecret = true; }
}/bin/git-credential-libsecret";
pkgs.git.override { withLibsecret = true; }
}/bin/git-credential-libsecret";
};
};
kitty = {
enable = true;
extraConfig = ''
enable_audio_bell false
enable_audio_bell false
background #000000
foreground #e9e9e9
cursor #e9e9e9
selection_background #424242
color0 #000000
color8 #000000
color1 #d44d53
color9 #d44d53
color2 #b9c949
color10 #b9c949
color3 #e6c446
color11 #e6c446
color4 #79a6da
color12 #79a6da
color5 #c396d7
color13 #c396d7
color6 #70c0b1
color14 #70c0b1
color7 #fffefe
color15 #fffefe
selection_foreground #000000
background #000000
foreground #e9e9e9
cursor #e9e9e9
selection_background #424242
color0 #000000
color8 #000000
color1 #d44d53
color9 #d44d53
color2 #b9c949
color10 #b9c949
color3 #e6c446
color11 #e6c446
color4 #79a6da
color12 #79a6da
color5 #c396d7
color13 #c396d7
color6 #70c0b1
color14 #70c0b1
color7 #fffefe
color15 #fffefe
selection_foreground #000000
'';
};
};

View File

@ -28,6 +28,10 @@ in
home = {
enableNixpkgsReleaseCheck = false;
packages = with unstable.pkgs; [
exa
broot
ffmpeg
tealdeer
atop
bpytop
dfc

View File

@ -3,6 +3,7 @@
let
secrets = import ../configs/secrets.nix;
secrets-desktop = import ../configs/secrets-desktop.nix;
be = import ../configs/borg-exclude.nix;
in
{
imports =
@ -141,22 +142,7 @@ in
monthly = 6;
};
extraPruneArgs = "--save-space --list --stats";
exclude = map (x: paths + "/" + x) [
".cache"
".config/chromium/Default/Service Worker/CacheStorage"
".config/discord/Cache"
".local/share/libvirt/images"
".local/share/Steam/config/htmlcache/Cache"
".local/share/Steam/steamapps"
".local/share/Trash"
"Games/guild-wars-second/drive_c/Program Files/Guild Wars/Gw.dat"
"Games/guild-wars/drive_c/Program Files/Guild Wars/Gw.dat"
"Kamera"
"Nextcloud"
"shared"
"Sync"
"Workspace"
];
exclude = map (x: paths + "/" + x) be.borg-exclude;
};
};

View File

@ -1,7 +1,3 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, lib, ... }:
let
nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" ''
@ -12,6 +8,7 @@ let
exec -a "$0" "$@"
'';
secrets-thinkpad = import ../configs/secrets-thinkpad.nix;
be = import ../configs/borg-exclude.nix;
in
{
imports =
@ -176,21 +173,7 @@ in
monthly = 6;
};
extraPruneArgs = "--save-space --list --stats";
exclude = map (x: paths + "/" + x) [
".cache"
".config/chromium/Default/Service Worker/CacheStorage"
".config/discord/Cache"
".local/share/libvirt/images"
".local/share/Steam/steamapps"
".local/share/Trash"
"Games/guild-wars-second/drive_c/Program Files/Guild Wars/Gw.dat"
"Games/guild-wars/drive_c/Program Files/Guild Wars/Gw.dat"
"Kamera"
"Nextcloud"
"shared"
"Sync"
"Workspace"
];
exclude = map (x: paths + "/" + x) be.borg-exclude;
};
};

View File

@ -52,7 +52,7 @@ in
internalInterfaces = [ "wg0" ];
};
firewall = {
allowedTCPPorts = [ 80 443 ];
allowedTCPPorts = [ 80 443 22000 ];
allowedUDPPorts = [ 80 443 51820 ];
};
};