mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 13:51:54 -05:00
Merge branch 'master' into add-river
Some checks are pending
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
This commit is contained in:
commit
7aa16a4005
|
@ -42,6 +42,7 @@ in {
|
||||||
"InmanPerkCustomer" = mkWPA2WiFi "InmanPerkCustomer" "$InmanPerkCustomerPSK";
|
"InmanPerkCustomer" = mkWPA2WiFi "InmanPerkCustomer" "$InmanPerkCustomerPSK";
|
||||||
"Muchacho Guest" = mkOpenWiFi "Muchacho Guest";
|
"Muchacho Guest" = mkOpenWiFi "Muchacho Guest";
|
||||||
"PERCguest" = mkWPA2WiFi "PERCguest" "$PERCguestPSK";
|
"PERCguest" = mkWPA2WiFi "PERCguest" "$PERCguestPSK";
|
||||||
|
"PERC COFFEE 5 Guest" = mkWPA2WiFi "PERC COFFEE 5 Guest" "$PERCguestPSK";
|
||||||
"Parkgrounds1" = mkWPA2WiFi "Parkgrounds1" "$Parkgrounds1PSK";
|
"Parkgrounds1" = mkWPA2WiFi "Parkgrounds1" "$Parkgrounds1PSK";
|
||||||
"Stargate-Discovery" = mkWPA2WiFi "Stargate-Discovery" "$StargateDiscoveryPSK";
|
"Stargate-Discovery" = mkWPA2WiFi "Stargate-Discovery" "$StargateDiscoveryPSK";
|
||||||
"Taproom Public WiFi" = mkOpenWiFi "Taproom Public WiFi";
|
"Taproom Public WiFi" = mkOpenWiFi "Taproom Public WiFi";
|
||||||
|
|
63
flake.lock
63
flake.lock
|
@ -124,15 +124,15 @@
|
||||||
"base16-vim": {
|
"base16-vim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1716150083,
|
"lastModified": 1663659192,
|
||||||
"narHash": "sha256-ZMhnNmw34ogE5rJZrjRv5MtG3WaqKd60ds2VXvT6hEc=",
|
"narHash": "sha256-uJvaYYDMXvoo0fhBZUhN8WBXeJ87SRgof6GEK2efFT0=",
|
||||||
"owner": "tinted-theming",
|
"owner": "chriskempson",
|
||||||
"repo": "base16-vim",
|
"repo": "base16-vim",
|
||||||
"rev": "6e955d704d046b0dc3e5c2d68a2a6eeffd2b5d3d",
|
"rev": "3be3cd82cd31acfcab9a41bad853d9c68d30478d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "tinted-theming",
|
"owner": "chriskempson",
|
||||||
"repo": "base16-vim",
|
"repo": "base16-vim",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -271,27 +271,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_2": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": [
|
|
||||||
"stylix",
|
|
||||||
"systems"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1710146030,
|
|
||||||
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fromYaml": {
|
"fromYaml": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -465,11 +444,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726585211,
|
"lastModified": 1726660103,
|
||||||
"narHash": "sha256-6Ra4qRRWYurpdn0vsIysNxpGXz+m/9IGbXdHr0P+gac=",
|
"narHash": "sha256-6dTw76l3zyBxW2a5Xn6UfY+uFzcJgyN4IiM8tI9Vu5I=",
|
||||||
"owner": "alyraffauf",
|
"owner": "alyraffauf",
|
||||||
"repo": "nixhw",
|
"repo": "nixhw",
|
||||||
"rev": "f7aad63bc3f59826fd16ff748dfa3607ce2f490e",
|
"rev": "19c6cdbfe1b757aa71b9ef9e9285fb1581704be9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -618,24 +597,23 @@
|
||||||
"base16-tmux": "base16-tmux",
|
"base16-tmux": "base16-tmux",
|
||||||
"base16-vim": "base16-vim",
|
"base16-vim": "base16-vim",
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat_2",
|
||||||
"flake-utils": "flake-utils_2",
|
|
||||||
"gnome-shell": "gnome-shell",
|
"gnome-shell": "gnome-shell",
|
||||||
"home-manager": "home-manager_3",
|
"home-manager": "home-manager_3",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
]
|
||||||
"systems": "systems_4"
|
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726170940,
|
"lastModified": 1718122552,
|
||||||
"narHash": "sha256-sobkRkGBaMX9pD0bwU1iVPWi0WtQvZqlHyl1YtvNDio=",
|
"narHash": "sha256-A+dBkSwp8ssHKV/WyXb9uqIYrHBqHvtSedU24Lq9lqw=",
|
||||||
"owner": "danth",
|
"owner": "danth",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"rev": "35233f929629c8eb64e939e35260fc8347f94df9",
|
"rev": "e59d2c1725b237c362e4a62f5722f5b268d566c7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "danth",
|
"owner": "danth",
|
||||||
|
"ref": "release-24.05",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -685,21 +663,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_4": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"wallpapers": {
|
"wallpapers": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
stylix = {
|
stylix = {
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
url = "github:danth/stylix";
|
url = "github:danth/stylix/release-24.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
wallpapers = {
|
wallpapers = {
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.ar.home.apps.backblaze;
|
|
||||||
in {
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
home = {
|
|
||||||
activation.backblazeAuthentication = lib.hm.dag.entryAfter ["reloadSystemd"] ''
|
|
||||||
${
|
|
||||||
if ((cfg.keyIdFile != null) && (cfg.keyFile != null))
|
|
||||||
then
|
|
||||||
(
|
|
||||||
if !(builtins.pathExists "${config.xdg.configHome}/b2/account_info")
|
|
||||||
then ''
|
|
||||||
XDG_RUNTIME_DIR=''${XDG_RUNTIME_DIR:-/run/user/$(id -u)}
|
|
||||||
run --quiet ${lib.getExe pkgs.backblaze-b2} authorize_account `${lib.getExe' pkgs.coreutils "cat"} ${cfg.keyIdFile}` `${lib.getExe' pkgs.coreutils "cat"} ${cfg.keyFile}`''
|
|
||||||
else ''run echo "backblaze: Already authenticated."''
|
|
||||||
)
|
|
||||||
else ''run echo "backblaze: Missing keyIDfile and keyFile."''
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
|
|
||||||
packages = with pkgs; [backblaze-b2];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./alacritty
|
./alacritty
|
||||||
./backblaze
|
|
||||||
./chromium
|
./chromium
|
||||||
./emacs
|
./emacs
|
||||||
./fastfetch
|
./fastfetch
|
||||||
|
|
|
@ -11,22 +11,6 @@ in {
|
||||||
apps = {
|
apps = {
|
||||||
alacritty.enable = lib.mkEnableOption "Alacritty terminal.";
|
alacritty.enable = lib.mkEnableOption "Alacritty terminal.";
|
||||||
|
|
||||||
backblaze = {
|
|
||||||
enable = lib.mkEnableOption "Backblaze-b2 client with declarative authentication.";
|
|
||||||
|
|
||||||
keyIdFile = lib.mkOption {
|
|
||||||
description = "Backblaze key ID.";
|
|
||||||
default = null;
|
|
||||||
type = lib.types.nullOr lib.types.str;
|
|
||||||
};
|
|
||||||
|
|
||||||
keyFile = lib.mkOption {
|
|
||||||
description = "Backblaze application key.";
|
|
||||||
default = null;
|
|
||||||
type = lib.types.nullOr lib.types.str;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
chromium = {
|
chromium = {
|
||||||
enable = lib.mkEnableOption "Chromium-based browser with default extensions.";
|
enable = lib.mkEnableOption "Chromium-based browser with default extensions.";
|
||||||
package = lib.mkPackageOption pkgs "brave" {};
|
package = lib.mkPackageOption pkgs "brave" {};
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
in {
|
in {
|
||||||
config = lib.mkIf config.ar.home.services.randomWallpaper.enable {
|
config = lib.mkIf config.ar.home.services.randomWallpaper.enable {
|
||||||
services.hyprpaper.enable = lib.mkForce false;
|
services.hyprpaper.enable = lib.mkForce false;
|
||||||
stylix.targets.hyprpaper.enable = lib.mkForce false;
|
# stylix.targets.hyprpaper.enable = lib.mkForce false;
|
||||||
wayland.windowManager.sway.config.output."*" = lib.mkForce {}; # Dirty. TODO: make more elegant.
|
wayland.windowManager.sway.config.output."*" = lib.mkForce {}; # Dirty. TODO: make more elegant.
|
||||||
|
|
||||||
systemd.user.services.randomWallpaper = {
|
systemd.user.services.randomWallpaper = {
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.ar.home.theme;
|
cfg = config.ar.home;
|
||||||
in {
|
in {
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.theme.enable {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.gnome.adwaita-icon-theme
|
pkgs.gnome.adwaita-icon-theme
|
||||||
pkgs.liberation_ttf
|
pkgs.liberation_ttf
|
||||||
|
@ -35,60 +35,56 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
stylix.targets.gtk.extraCss = ''
|
stylix.targets.gtk.extraCss = builtins.concatStringsSep "\n" [
|
||||||
window.background { border-radius: ${toString cfg.borders.radius}; }
|
(lib.optionalString (cfg.desktop.hyprland.enable || cfg.desktop.sway.enable) ''
|
||||||
|
window.background { border-radius: ${toString cfg.theme.borders.radius}; }
|
||||||
|
|
||||||
tooltip {
|
tooltip {
|
||||||
&.background {
|
|
||||||
background-color: alpha(${config.lib.stylix.colors.withHashtag.base00}, ${builtins.toString config.stylix.opacity.popups});
|
background-color: alpha(${config.lib.stylix.colors.withHashtag.base00}, ${builtins.toString config.stylix.opacity.popups});
|
||||||
|
border-radius: ${toString cfg.theme.borders.radius};
|
||||||
border: 1px solid ${config.lib.stylix.colors.withHashtag.base0D};
|
border: 1px solid ${config.lib.stylix.colors.withHashtag.base0D};
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
background-color: alpha(${config.lib.stylix.colors.withHashtag.base00}, ${builtins.toString config.stylix.opacity.popups});
|
tooltip.background {
|
||||||
border-radius: ${toString cfg.borders.radius};
|
background-color: alpha(${config.lib.stylix.colors.withHashtag.base00}, ${builtins.toString config.stylix.opacity.popups});
|
||||||
border: 1px solid ${config.lib.stylix.colors.withHashtag.base0D};
|
border: 1px solid ${config.lib.stylix.colors.withHashtag.base0D};
|
||||||
color: white;
|
}'')
|
||||||
}
|
|
||||||
|
|
||||||
${
|
(lib.optionalString (
|
||||||
lib.optionalString (config.stylix.polarity == "light") "
|
(cfg.desktop.hyprland.enable || cfg.desktop.sway.enable) && (config.stylix.polarity == "light")
|
||||||
tooltip {
|
) ''
|
||||||
&.background { background-color: alpha(${config.lib.stylix.colors.withHashtag.base05}, ${builtins.toString config.stylix.opacity.popups}); }
|
tooltip {
|
||||||
background-color: alpha(${config.lib.stylix.colors.withHashtag.base05}, ${builtins.toString config.stylix.opacity.popups});
|
&.background { background-color: alpha(${config.lib.stylix.colors.withHashtag.base05}, ${builtins.toString config.stylix.opacity.popups}); }
|
||||||
}"
|
background-color: alpha(${config.lib.stylix.colors.withHashtag.base05}, ${builtins.toString config.stylix.opacity.popups});
|
||||||
}
|
}'')
|
||||||
|
|
||||||
${
|
(lib.optionalString cfg.theme.gtk.hideTitleBar ''
|
||||||
lib.strings.optionalString
|
/* No (default) title bar on wayland */
|
||||||
cfg.gtk.hideTitleBar
|
headerbar.default-decoration {
|
||||||
''
|
/* You may need to tweak these values depending on your GTK theme */
|
||||||
/* No (default) title bar on wayland */
|
border-radius: 0;
|
||||||
headerbar.default-decoration {
|
border: 0;
|
||||||
/* You may need to tweak these values depending on your GTK theme */
|
box-shadow: none;
|
||||||
border-radius: 0;
|
font-size: 0;
|
||||||
border: 0;
|
margin-bottom: 50px;
|
||||||
box-shadow: none;
|
margin-top: -100px;
|
||||||
font-size: 0;
|
min-height: 0;
|
||||||
margin-bottom: 50px;
|
padding: 0;
|
||||||
margin-top: -100px;
|
}
|
||||||
min-height: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.titlebar,
|
.titlebar,
|
||||||
.titlebar .background
|
.titlebar .background
|
||||||
{
|
{
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* rm -rf window shadows */
|
/* rm -rf window shadows */
|
||||||
window.csd, /* gtk4? */
|
window.csd, /* gtk4? */
|
||||||
window.csd decoration { /* gtk3 */
|
window.csd decoration { /* gtk3 */
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}'')
|
||||||
''
|
];
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,8 @@
|
||||||
{
|
{pkgs, ...}: {
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home = {
|
home = {
|
||||||
homeDirectory = "/home/aly";
|
homeDirectory = "/home/aly";
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
browsh
|
|
||||||
curl
|
curl
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -47,16 +42,9 @@
|
||||||
|
|
||||||
ar.home = {
|
ar.home = {
|
||||||
apps = {
|
apps = {
|
||||||
backblaze = {
|
|
||||||
enable = true;
|
|
||||||
keyIdFile = config.age.secrets.backblazeKeyId.path;
|
|
||||||
keyFile = config.age.secrets.backblazeKey.path;
|
|
||||||
};
|
|
||||||
|
|
||||||
fastfetch.enable = true;
|
fastfetch.enable = true;
|
||||||
helix.enable = true;
|
helix.enable = true;
|
||||||
shell.enable = true;
|
shell.enable = true;
|
||||||
tmux.enable = true;
|
|
||||||
yazi.enable = true;
|
yazi.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
default = {
|
default = {
|
||||||
extensions = with config.nur.repos.rycee.firefox-addons; [
|
extensions = with config.nur.repos.rycee.firefox-addons; [
|
||||||
augmented-steam
|
augmented-steam
|
||||||
|
bitwarden
|
||||||
omnivore
|
omnivore
|
||||||
raindropio
|
raindropio
|
||||||
sidebery
|
sidebery
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
self: {
|
self: {pkgs, ...}: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
imports = [
|
||||||
./common.nix
|
./common.nix
|
||||||
./firefox
|
./firefox
|
||||||
|
@ -34,11 +29,7 @@ self: {
|
||||||
username = "aly";
|
username = "aly";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs.rbw.settings.pinentry = pkgs.pinentry-gnome3;
|
||||||
git.extraConfig.core.editor = "${lib.getExe config.ar.home.apps.zed.package} --wait";
|
|
||||||
rbw.settings.pinentry = pkgs.pinentry-gnome3;
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.user.startServices = "legacy"; # Needed for auto-mounting agenix secrets.
|
systemd.user.startServices = "legacy"; # Needed for auto-mounting agenix secrets.
|
||||||
|
|
||||||
ar.home = {
|
ar.home = {
|
||||||
|
@ -46,14 +37,11 @@ self: {
|
||||||
chromium.enable = true;
|
chromium.enable = true;
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
kitty.enable = true;
|
kitty.enable = true;
|
||||||
tmux.enable = true;
|
|
||||||
vsCodium.enable = true;
|
vsCodium.enable = true;
|
||||||
zed.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultApps = {
|
defaultApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
editor = config.ar.home.apps.zed.package;
|
|
||||||
fileManager = pkgs.xfce.thunar;
|
fileManager = pkgs.xfce.thunar;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ in {
|
||||||
text = ''
|
text = ''
|
||||||
Thank you,
|
Thank you,
|
||||||
Aly Raffauf
|
Aly Raffauf
|
||||||
https://alyraffauf.com
|
https://aly.raffauflabs.com
|
||||||
'';
|
'';
|
||||||
|
|
||||||
showSignature = "append";
|
showSignature = "append";
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
achacegaGmail.file = ../../secrets/aly/mail/achacega_gmail.age;
|
achacegaGmail.file = ../../secrets/aly/mail/achacega_gmail.age;
|
||||||
alyraffaufFastmail.file = ../../secrets/aly/mail/alyraffauf_fastmail.age;
|
alyraffaufFastmail.file = ../../secrets/aly/mail/alyraffauf_fastmail.age;
|
||||||
backblazeKeyId.file = ../../secrets/aly/backblaze/keyId.age;
|
|
||||||
backblazeKey.file = ../../secrets/aly/backblaze/key.age;
|
|
||||||
|
|
||||||
transmissionRemote = {
|
transmissionRemote = {
|
||||||
file = ../../secrets/aly/transmissionRemote.age;
|
file = ../../secrets/aly/transmissionRemote.age;
|
||||||
|
|
|
@ -39,6 +39,9 @@
|
||||||
environment.variables.GDK_SCALE = "2";
|
environment.variables.GDK_SCALE = "2";
|
||||||
networking.hostName = "lavaridge";
|
networking.hostName = "lavaridge";
|
||||||
programs.firefox.policies.Preferences."media.ffmpeg.vaapi.enabled" = lib.mkForce false;
|
programs.firefox.policies.Preferences."media.ffmpeg.vaapi.enabled" = lib.mkForce false;
|
||||||
|
# services.xserver.enable = true;
|
||||||
|
# services.xserver.displayManager.gdm.enable = true;
|
||||||
|
# services.xserver.desktopManager.gnome.enable = true;
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
|
|
||||||
ar = {
|
ar = {
|
||||||
|
|
|
@ -33,9 +33,14 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
users.aly = lib.mkForce {
|
users.aly = lib.mkForce ({config, ...}: {
|
||||||
imports = [self.homeManagerModules.aly];
|
imports = [self.homeManagerModules.aly];
|
||||||
|
|
||||||
|
age.secrets = {
|
||||||
|
backblazeKeyId.file = ../../secrets/aly/backblaze/keyId.age;
|
||||||
|
backblazeKey.file = ../../secrets/aly/backblaze/key.age;
|
||||||
|
};
|
||||||
|
|
||||||
systemd.user = {
|
systemd.user = {
|
||||||
services.backblaze-sync = {
|
services.backblaze-sync = {
|
||||||
Unit.Description = "Backup to Backblaze.";
|
Unit.Description = "Backup to Backblaze.";
|
||||||
|
@ -61,6 +66,8 @@
|
||||||
['/mnt/Archive/Shows']="b2://aly-shows"
|
['/mnt/Archive/Shows']="b2://aly-shows"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
backblaze-b2 authorize_account `cat ${config.age.secrets.backblazeKeyId.path}` `cat ${config.age.secrets.backblazeKey.path}`
|
||||||
|
|
||||||
# Recursively backup folders to B2 with sanity checks.
|
# Recursively backup folders to B2 with sanity checks.
|
||||||
for folder in "''${!backups[@]}"; do
|
for folder in "''${!backups[@]}"; do
|
||||||
if [ -d "$folder" ] && [ "$(ls -A "$folder")" ]; then
|
if [ -d "$folder" ] && [ "$(ls -A "$folder")" ]; then
|
||||||
|
@ -80,6 +87,6 @@
|
||||||
Unit.Description = "Daily backups to Backblaze.";
|
Unit.Description = "Daily backups to Backblaze.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,11 @@
|
||||||
syncthing.guiAddress = "0.0.0.0:8384";
|
syncthing.guiAddress = "0.0.0.0:8384";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
stylix = {
|
||||||
|
enable = false;
|
||||||
|
image = "${self.inputs.wallpapers}/wallhaven-mp886k.jpg";
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
zramSwap.memoryPercent = 100;
|
zramSwap.memoryPercent = 100;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ in {
|
||||||
|
|
||||||
fail2ban = {
|
fail2ban = {
|
||||||
enable = true;
|
enable = true;
|
||||||
bantime = "1h";
|
bantime = "24h";
|
||||||
bantime-increment.enable = true;
|
bantime-increment.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue