sept rice v2
This commit is contained in:
parent
66ba28aaf3
commit
33fe28a76b
9 changed files with 245 additions and 162 deletions
|
|
@ -2,12 +2,10 @@
|
|||
pkgs,
|
||||
attrs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
# Horrid workaround for https://github.com/nix-community/home-manager/issues/1011
|
||||
homeManagerSessionVars = "/etc/profiles/per-user/${attrs.username}/etc/profile.d/hm-session-vars.sh";
|
||||
in
|
||||
{
|
||||
in {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./backups.nix
|
||||
|
|
@ -26,7 +24,7 @@ in
|
|||
loader.systemd-boot.enable = true;
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
blacklistedKernelModules = [ "bluetooth" ];
|
||||
blacklistedKernelModules = ["bluetooth"];
|
||||
};
|
||||
# Networking
|
||||
networking = {
|
||||
|
|
@ -41,9 +39,9 @@ in
|
|||
};
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 11111 ];
|
||||
allowedUDPPorts = [ ];
|
||||
trustedInterfaces = [ "tailscale0" ];
|
||||
allowedTCPPorts = [11111];
|
||||
allowedUDPPorts = [];
|
||||
trustedInterfaces = ["tailscale0"];
|
||||
logRefusedConnections = true;
|
||||
};
|
||||
};
|
||||
|
|
@ -55,11 +53,11 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
security.pam.services.swaylock = { };
|
||||
security.pam.services.swaylock = {};
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = false;
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
||||
};
|
||||
programs = {
|
||||
light.enable = true;
|
||||
|
|
@ -70,6 +68,7 @@ in
|
|||
steam.enable = true;
|
||||
adb.enable = true;
|
||||
fish.enable = true; # enable vendor completions
|
||||
nh.enable = true;
|
||||
};
|
||||
|
||||
# workaround for wait-online killing nixos build
|
||||
|
|
@ -136,7 +135,7 @@ in
|
|||
enable = true;
|
||||
keyboards = {
|
||||
default = {
|
||||
ids = [ "*" ];
|
||||
ids = ["*"];
|
||||
settings = {
|
||||
main = {
|
||||
pause = "timeout(esc, 150, space)";
|
||||
|
|
@ -161,7 +160,7 @@ in
|
|||
nerd-fonts.ubuntu-mono
|
||||
spleen
|
||||
];
|
||||
fontconfig.defaultFonts.monospace = [ "UbuntuMono" ];
|
||||
fontconfig.defaultFonts.monospace = ["UbuntuMono"];
|
||||
};
|
||||
system.stateVersion = "22.11";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue