formatting
This commit is contained in:
parent
3daa817aad
commit
3c6fc1476a
6 changed files with 73 additions and 70 deletions
|
|
@ -1,9 +1,4 @@
|
||||||
{
|
{ ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
{
|
||||||
networking.hostName = "roam";
|
networking.hostName = "roam";
|
||||||
|
|
||||||
|
|
|
||||||
2
lib.nix
2
lib.nix
|
|
@ -9,7 +9,7 @@ rec {
|
||||||
name = lib.removeSuffix ".nix" name;
|
name = lib.removeSuffix ".nix" name;
|
||||||
value =
|
value =
|
||||||
if value == "regular" then
|
if value == "regular" then
|
||||||
builtins.toPath (path + "/${name}")
|
path + "/${name}"
|
||||||
else if value == "directory" then
|
else if value == "directory" then
|
||||||
walk-dir (path + "/${name}")
|
walk-dir (path + "/${name}")
|
||||||
else
|
else
|
||||||
|
|
|
||||||
28
mod/boot.nix
28
mod/boot.nix
|
|
@ -1,18 +1,20 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
boot.loader = {
|
boot = {
|
||||||
efi.canTouchEfiVariables = true;
|
loader = {
|
||||||
grub = {
|
efi.canTouchEfiVariables = true;
|
||||||
enable = true;
|
grub = {
|
||||||
efiSupport = true;
|
enable = true;
|
||||||
device = "nodev";
|
efiSupport = true;
|
||||||
|
device = "nodev";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# otherwise /tmp is on disk. This *may* be problematic as nix
|
||||||
|
# builds in /tmp but I think my swap is large enough...
|
||||||
|
tmp.useTmpfs = true;
|
||||||
|
|
||||||
|
kernelPackages = pkgs.linuxPackages_6_13;
|
||||||
|
kernel.sysctl."kernel.sysrq" = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
# otherwise /tmp is on disk. This *may* be problematic as nix
|
|
||||||
# builds in /tmp but I think my swap is large enough...
|
|
||||||
boot.tmp.useTmpfs = true;
|
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_6_13;
|
|
||||||
boot.kernel.sysctl."kernel.sysrq" = 1;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
fonts.packages = with pkgs; [
|
fonts = {
|
||||||
noto-fonts
|
packages = with pkgs; [
|
||||||
noto-fonts-cjk-sans
|
noto-fonts
|
||||||
noto-fonts-emoji
|
noto-fonts-cjk-sans
|
||||||
nerd-fonts.noto
|
noto-fonts-emoji
|
||||||
];
|
nerd-fonts.noto
|
||||||
fonts.fontDir.enable = true;
|
];
|
||||||
fonts.fontconfig.defaultFonts.monospace = [ "Noto Nerd Font Mono" ];
|
fontDir.enable = true;
|
||||||
|
fontconfig.defaultFonts.monospace = [ "Noto Nerd Font Mono" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,41 +11,43 @@
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
enableIPv6 = true;
|
enableIPv6 = true;
|
||||||
networkmanager.enable = true;
|
networkmanager = {
|
||||||
networkmanager.wifi.macAddress = "random";
|
enable = true;
|
||||||
networkmanager.ensureProfiles.profiles = {
|
wifi.macAddress = "random";
|
||||||
"tuda-vpn" = {
|
ensureProfiles.profiles = {
|
||||||
connection = {
|
"tuda-vpn" = {
|
||||||
autoconnect = "false";
|
connection = {
|
||||||
id = "tuda-vpn";
|
autoconnect = "false";
|
||||||
type = "vpn";
|
id = "tuda-vpn";
|
||||||
};
|
type = "vpn";
|
||||||
ipv4 = {
|
};
|
||||||
method = "auto";
|
ipv4 = {
|
||||||
};
|
method = "auto";
|
||||||
ipv6 = {
|
};
|
||||||
addr-gen-mode = "stable-privacy";
|
ipv6 = {
|
||||||
method = "auto";
|
addr-gen-mode = "stable-privacy";
|
||||||
};
|
method = "auto";
|
||||||
vpn = {
|
};
|
||||||
authtype = "password";
|
vpn = {
|
||||||
autoconnect-flags = "0";
|
authtype = "password";
|
||||||
certsigs-flags = "0";
|
autoconnect-flags = "0";
|
||||||
cookie-flags = "2";
|
certsigs-flags = "0";
|
||||||
disable_udp = "no";
|
cookie-flags = "2";
|
||||||
enable_csd_trojan = "no";
|
disable_udp = "no";
|
||||||
gateway = "vpn.hrz.tu-darmstadt.de";
|
enable_csd_trojan = "no";
|
||||||
gateway-flags = "2";
|
gateway = "vpn.hrz.tu-darmstadt.de";
|
||||||
gwcert-flags = "2";
|
gateway-flags = "2";
|
||||||
lasthost-flags = "0";
|
gwcert-flags = "2";
|
||||||
pem_passphrase_fsid = "no";
|
lasthost-flags = "0";
|
||||||
prevent_invalid_cert = "no";
|
pem_passphrase_fsid = "no";
|
||||||
protocol = "anyconnect";
|
prevent_invalid_cert = "no";
|
||||||
resolve-flags = "2";
|
protocol = "anyconnect";
|
||||||
service-type = "org.freedesktop.NetworkManager.openconnect";
|
resolve-flags = "2";
|
||||||
stoken_source = "disabled";
|
service-type = "org.freedesktop.NetworkManager.openconnect";
|
||||||
xmlconfig-flags = "0";
|
stoken_source = "disabled";
|
||||||
password-flags = 0;
|
xmlconfig-flags = "0";
|
||||||
|
password-flags = 0;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
services.printing.enable = true;
|
services = {
|
||||||
services.avahi = {
|
printing.enable = true;
|
||||||
enable = true;
|
avahi = {
|
||||||
nssmdns4 = true;
|
enable = true;
|
||||||
openFirewall = true;
|
nssmdns4 = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
udisks2.enable = true;
|
||||||
|
emacs.enable = true;
|
||||||
};
|
};
|
||||||
services.udisks2.enable = true;
|
|
||||||
services.emacs.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue