Compare commits
4
Commits
9183b17731
...
34205bf384
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
34205bf384 | ||
|
|
e2301c7682 | ||
|
|
4b98ff5abe | ||
|
|
39a9dd9427 |
@@ -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;
|
||||||
|
|||||||
@@ -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,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);
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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";
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -28,6 +28,6 @@ in
|
|||||||
inherit (iface) macAddress;
|
inherit (iface) macAddress;
|
||||||
}) config.wol.interfaces;
|
}) config.wol.interfaces;
|
||||||
|
|
||||||
# firewall.allowedUDPPorts = [ 9 ];
|
# networking.firewall.allowedUDPPorts = [ 9 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user