oops
This commit is contained in:
18
configs/borg-exclude.nix
Normal file
18
configs/borg-exclude.nix
Normal 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"
|
||||||
|
];
|
||||||
|
}
|
@ -51,12 +51,8 @@ in
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
ack
|
ack
|
||||||
borgbackup
|
borgbackup
|
||||||
broot
|
|
||||||
btrfs-progs
|
btrfs-progs
|
||||||
bwm_ng
|
|
||||||
cargo
|
cargo
|
||||||
exa
|
|
||||||
ffmpeg
|
|
||||||
gnupg
|
gnupg
|
||||||
gocryptfs
|
gocryptfs
|
||||||
graphviz
|
graphviz
|
||||||
@ -75,11 +71,11 @@ in
|
|||||||
parallel
|
parallel
|
||||||
pciutils
|
pciutils
|
||||||
ruby
|
ruby
|
||||||
tealdeer
|
|
||||||
unixtools.xxd
|
unixtools.xxd
|
||||||
unzip
|
unzip
|
||||||
usbutils
|
usbutils
|
||||||
wget
|
wget
|
||||||
|
nethogs
|
||||||
];
|
];
|
||||||
|
|
||||||
documentation.enable = false;
|
documentation.enable = false;
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
unstable = import <nixos-unstable> { config.allowUnfree = true; };
|
unstable = import <nixos-unstable> {
|
||||||
in
|
config = {
|
||||||
{
|
|
||||||
nixpkgs.config = {
|
|
||||||
allowUnfree = true;
|
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";
|
chromium.commandLineArgs = "--enable-features=WebUIDarkMode,NativeNotifications,VaapiVideoDecoder --ignore-gpu-blocklist --use-gl=desktop --force-dark-mode --disk-cache-dir=/tmp/cache";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
networking = {
|
networking = {
|
||||||
firewall.enable = false;
|
firewall.enable = false;
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
@ -31,20 +30,16 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
steam.enable = true;
|
|
||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
adb.enable = true;
|
adb.enable = true;
|
||||||
# seahorse.enable = true;
|
|
||||||
ssh = {
|
ssh = {
|
||||||
startAgent = true;
|
startAgent = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
gnupg.agent = {
|
gnupg.agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
pinentryFlavor = "curses";
|
pinentryFlavor = "curses";
|
||||||
# enableSSHSupport = true;
|
# enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
chromium = {
|
chromium = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions = [
|
extensions = [
|
||||||
@ -88,7 +83,7 @@ in
|
|||||||
fontDir.enable = true;
|
fontDir.enable = true;
|
||||||
|
|
||||||
fonts = with pkgs; [
|
fonts = with pkgs; [
|
||||||
corefonts
|
# corefonts
|
||||||
font-awesome
|
font-awesome
|
||||||
google-fonts
|
google-fonts
|
||||||
liberation_ttf
|
liberation_ttf
|
||||||
|
@ -16,6 +16,7 @@ in
|
|||||||
etcher
|
etcher
|
||||||
firefox
|
firefox
|
||||||
font-manager
|
font-manager
|
||||||
|
freecad
|
||||||
fslint
|
fslint
|
||||||
gnome.cheese
|
gnome.cheese
|
||||||
homebank
|
homebank
|
||||||
@ -29,6 +30,7 @@ in
|
|||||||
lxrandr
|
lxrandr
|
||||||
mangohud
|
mangohud
|
||||||
meld
|
meld
|
||||||
|
obs-studio
|
||||||
pinta
|
pinta
|
||||||
prusa-slicer
|
prusa-slicer
|
||||||
rpi-imager
|
rpi-imager
|
||||||
@ -41,8 +43,6 @@ in
|
|||||||
vulkan-tools
|
vulkan-tools
|
||||||
wine
|
wine
|
||||||
winetricks
|
winetricks
|
||||||
obs-studio
|
|
||||||
freecad
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let unstable = import <nixos-unstable> { config.allowUnfree = true; };
|
||||||
unstable = import <nixos-unstable> { config.allowUnfree = true; };
|
in {
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [ <home-manager/nixos> ];
|
imports = [ <home-manager/nixos> ];
|
||||||
|
|
||||||
home-manager.users.alex = { pkgs, ... }: {
|
home-manager.users.alex = { pkgs, ... }: {
|
||||||
@ -51,36 +49,13 @@ in
|
|||||||
# "file:///home/alex/3D%20Print"
|
# "file:///home/alex/3D%20Print"
|
||||||
# "file:///home/alex/Sync"
|
# "file:///home/alex/Sync"
|
||||||
# ];
|
# ];
|
||||||
extraConfig = {
|
extraConfig = { gtk-application-prefer-dark-theme = 1; };
|
||||||
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;
|
|
||||||
# }
|
|
||||||
# '';
|
|
||||||
};
|
};
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
package = pkgs.pantheon.elementary-icon-theme;
|
package = pkgs.pantheon.elementary-icon-theme;
|
||||||
name = "elementary";
|
name = "elementary";
|
||||||
};
|
};
|
||||||
theme = {
|
theme = { name = "Adwaita-dark"; };
|
||||||
name = "Adwaita-dark";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
@ -156,7 +131,6 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
kitty = {
|
kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
@ -28,6 +28,10 @@ in
|
|||||||
home = {
|
home = {
|
||||||
enableNixpkgsReleaseCheck = false;
|
enableNixpkgsReleaseCheck = false;
|
||||||
packages = with unstable.pkgs; [
|
packages = with unstable.pkgs; [
|
||||||
|
exa
|
||||||
|
broot
|
||||||
|
ffmpeg
|
||||||
|
tealdeer
|
||||||
atop
|
atop
|
||||||
bpytop
|
bpytop
|
||||||
dfc
|
dfc
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
let
|
let
|
||||||
secrets = import ../configs/secrets.nix;
|
secrets = import ../configs/secrets.nix;
|
||||||
secrets-desktop = import ../configs/secrets-desktop.nix;
|
secrets-desktop = import ../configs/secrets-desktop.nix;
|
||||||
|
be = import ../configs/borg-exclude.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
@ -141,22 +142,7 @@ in
|
|||||||
monthly = 6;
|
monthly = 6;
|
||||||
};
|
};
|
||||||
extraPruneArgs = "--save-space --list --stats";
|
extraPruneArgs = "--save-space --list --stats";
|
||||||
exclude = map (x: paths + "/" + x) [
|
exclude = map (x: paths + "/" + x) be.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"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" ''
|
nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" ''
|
||||||
@ -12,6 +8,7 @@ let
|
|||||||
exec -a "$0" "$@"
|
exec -a "$0" "$@"
|
||||||
'';
|
'';
|
||||||
secrets-thinkpad = import ../configs/secrets-thinkpad.nix;
|
secrets-thinkpad = import ../configs/secrets-thinkpad.nix;
|
||||||
|
be = import ../configs/borg-exclude.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
@ -176,21 +173,7 @@ in
|
|||||||
monthly = 6;
|
monthly = 6;
|
||||||
};
|
};
|
||||||
extraPruneArgs = "--save-space --list --stats";
|
extraPruneArgs = "--save-space --list --stats";
|
||||||
exclude = map (x: paths + "/" + x) [
|
exclude = map (x: paths + "/" + x) be.borg-exclude;
|
||||||
".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"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ in
|
|||||||
internalInterfaces = [ "wg0" ];
|
internalInterfaces = [ "wg0" ];
|
||||||
};
|
};
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedTCPPorts = [ 80 443 ];
|
allowedTCPPorts = [ 80 443 22000 ];
|
||||||
allowedUDPPorts = [ 80 443 51820 ];
|
allowedUDPPorts = [ 80 443 51820 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user