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
|
||||||
|
|
|
||||||
10
mod/boot.nix
10
mod/boot.nix
|
|
@ -1,6 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
boot.loader = {
|
boot = {
|
||||||
|
loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
grub = {
|
grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -11,8 +12,9 @@
|
||||||
|
|
||||||
# otherwise /tmp is on disk. This *may* be problematic as nix
|
# otherwise /tmp is on disk. This *may* be problematic as nix
|
||||||
# builds in /tmp but I think my swap is large enough...
|
# builds in /tmp but I think my swap is large enough...
|
||||||
boot.tmp.useTmpfs = true;
|
tmp.useTmpfs = true;
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_6_13;
|
kernelPackages = pkgs.linuxPackages_6_13;
|
||||||
boot.kernel.sysctl."kernel.sysrq" = 1;
|
kernel.sysctl."kernel.sysrq" = 1;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
fonts.packages = with pkgs; [
|
fonts = {
|
||||||
|
packages = with pkgs; [
|
||||||
noto-fonts
|
noto-fonts
|
||||||
noto-fonts-cjk-sans
|
noto-fonts-cjk-sans
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
nerd-fonts.noto
|
nerd-fonts.noto
|
||||||
];
|
];
|
||||||
fonts.fontDir.enable = true;
|
fontDir.enable = true;
|
||||||
fonts.fontconfig.defaultFonts.monospace = [ "Noto Nerd Font Mono" ];
|
fontconfig.defaultFonts.monospace = [ "Noto Nerd Font Mono" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,10 @@
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
enableIPv6 = true;
|
enableIPv6 = true;
|
||||||
networkmanager.enable = true;
|
networkmanager = {
|
||||||
networkmanager.wifi.macAddress = "random";
|
enable = true;
|
||||||
networkmanager.ensureProfiles.profiles = {
|
wifi.macAddress = "random";
|
||||||
|
ensureProfiles.profiles = {
|
||||||
"tuda-vpn" = {
|
"tuda-vpn" = {
|
||||||
connection = {
|
connection = {
|
||||||
autoconnect = "false";
|
autoconnect = "false";
|
||||||
|
|
@ -50,4 +51,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
services.printing.enable = true;
|
services = {
|
||||||
services.avahi = {
|
printing.enable = true;
|
||||||
|
avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns4 = true;
|
nssmdns4 = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
services.udisks2.enable = true;
|
udisks2.enable = true;
|
||||||
services.emacs.enable = true;
|
emacs.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue