Compare commits

...
4 Commits
11 changed files with 22 additions and 54 deletions
+1
View File
@@ -31,6 +31,7 @@
browser.enable = true; browser.enable = true;
browser.primary = "librewolf"; browser.primary = "librewolf";
cloud.hetzner.enable = true; cloud.hetzner.enable = true;
gaming.enable = true;
comms.signal.enable = true; comms.signal.enable = true;
git.enable = true; git.enable = true;
git.github.enable = true; git.github.enable = true;
+3
View File
@@ -53,6 +53,9 @@ in
keyFile = "${sops.secrets."anki/sync-key".path}"; keyFile = "${sops.secrets."anki/sync-key".path}";
}; };
}; };
# allow Anki to write prefs
home.file."${config.xdg.dataHome}/Anki2/prefs21.db".enable = lib.mkForce false;
} }
); );
} }
+2 -1
View File
@@ -2,13 +2,14 @@
config, config,
lib, lib,
pkgs, pkgs,
myUtils,
... ...
}: }:
{ {
imports = imports =
let let
dirs = lib.attrNames (lib.filterAttrs (_: v: v == "directory") (builtins.readDir ./.)); dirs = myUtils.dirNames ./.;
hasDef = name: builtins.pathExists ./${name}/default.nix; hasDef = name: builtins.pathExists ./${name}/default.nix;
in in
map (name: ./${name}) (builtins.filter hasDef dirs); map (name: ./${name}) (builtins.filter hasDef dirs);
-9
View File
@@ -6,15 +6,6 @@
}: }:
{ {
imports = [
../../clipboard
../../fuzzel
../../mako
../../shikane
../../swayidle
../../waybar
];
options.desktop.niri.enable = lib.mkEnableOption "niri desktop"; options.desktop.niri.enable = lib.mkEnableOption "niri desktop";
config = lib.mkIf config.desktop.niri.enable { config = lib.mkIf config.desktop.niri.enable {
+15
View File
@@ -0,0 +1,15 @@
{
config,
lib,
...
}:
{
options.gaming.enable = lib.mkEnableOption "gaming";
config = lib.mkIf config.gaming.enable {
xdg.configFile."lutris/system.yml".text = lib.generators.toJSON { } {
system.game_path = "${config.home.homeDirectory}/games";
};
};
}
-1
View File
@@ -9,7 +9,6 @@
./bash.nix ./bash.nix
./utils.nix ./utils.nix
./prompt.nix ./prompt.nix
../tmux
]; ];
options.shell.enable = lib.mkEnableOption "shell"; options.shell.enable = lib.mkEnableOption "shell";
-4
View File
@@ -33,10 +33,6 @@ in
bluetooth.enable = true; bluetooth.enable = true;
bootloader.enable = true; bootloader.enable = true;
desktop.niri.enable = true; desktop.niri.enable = true;
firewall = {
enable = true;
allowedTCPPorts = [ 22 ];
};
gaming.enable = true; gaming.enable = true;
git.enable = true; git.enable = true;
keyboard.enable = true; keyboard.enable = true;
-5
View File
@@ -67,11 +67,6 @@ in
docker.enable = true; docker.enable = true;
nfc.enable = true; nfc.enable = true;
firewall = {
enable = true;
allowedTCPPorts = [ 22 ];
};
hardware = { hardware = {
cpu.intel.updateMicrocode = true; cpu.intel.updateMicrocode = true;
# https://wiki.nixos.org/wiki/Intel_Graphics # https://wiki.nixos.org/wiki/Intel_Graphics
-27
View File
@@ -1,27 +0,0 @@
{ lib, config, ... }:
let
inherit (lib) mkEnableOption mkOption types;
in
{
options.firewall = {
enable = mkEnableOption "firewall";
allowedTCPPorts = mkOption {
type = types.listOf types.port;
default = [ ];
};
allowedUDPPorts = mkOption {
type = types.listOf types.port;
default = [ ];
};
};
config = lib.mkIf config.firewall.enable {
networking.firewall = {
enable = true;
inherit (config.firewall) allowedTCPPorts allowedUDPPorts;
};
};
}
-6
View File
@@ -38,12 +38,6 @@ in
mangohud mangohud
]; ];
home-manager.users.${config.host.username} = {
xdg.configFile."lutris/system.yml".text = lib.generators.toJSON { } {
system.game_path = "/home/${config.host.username}/games";
};
};
security.pam.loginLimits = [ security.pam.loginLimits = [
{ {
domain = config.host.username; domain = config.host.username;
+1 -1
View File
@@ -28,6 +28,6 @@ in
inherit (iface) macAddress; inherit (iface) macAddress;
}) config.wol.interfaces; }) config.wol.interfaces;
# firewall.allowedUDPPorts = [ 9 ]; # networking.firewall.allowedUDPPorts = [ 9 ];
}; };
} }