diff --git a/machines/AMD-Workstation/boot.nix b/machines/AMD-Workstation/boot.nix index 9204e40..bd8e22d 100644 --- a/machines/AMD-Workstation/boot.nix +++ b/machines/AMD-Workstation/boot.nix @@ -31,8 +31,7 @@ in { enableCryptodisk = true; useOSProber = false; zfsSupport = true; - gfxmodeEfi = "2560x1440"; - # efiInstallAsRemovable = true; + gfxmodeEfi = "2560x1440"; # efiInstallAsRemovable = true; # theme = pkgs.; }; systemd-boot.enable = lib.mkForce false; diff --git a/machines/Flakes-ISO/default.nix b/machines/Flakes-ISO/default.nix index bdeedfa..e605deb 100644 --- a/machines/Flakes-ISO/default.nix +++ b/machines/Flakes-ISO/default.nix @@ -80,10 +80,5 @@ ]; users.users.root.openssh.authorizedKeys.keys = config.users.users.nixos.openssh.authorizedKeys.keys; - - # isoImage.contents = [{ - # source = ../..; - # target = "/home/nixos/nixos-config"; - # }]; }; } \ No newline at end of file diff --git a/machines/Home-Hypervisor/boot.nix b/machines/Home-Hypervisor/boot.nix index e7a4e92..6429d30 100644 --- a/machines/Home-Hypervisor/boot.nix +++ b/machines/Home-Hypervisor/boot.nix @@ -3,9 +3,6 @@ let zfs_arc_max = toString (3 * 1024 * 1024 * 1024); in { boot = { - # extraModprobeConfig = '' - # options zfs metaslab_lba_weighting_enabled=0 - # ''; zfs.forceImportAll = lib.mkForce false; loader.efi.canTouchEfiVariables = false; loader.efi.efiSysMountPoint = "/efi"; @@ -18,8 +15,6 @@ in { zfsSupport = true; efiInstallAsRemovable = true; copyKernels = true; - # # extraPrepareConfig = '' - # # ''; }; initrd = { luks.devices = { @@ -45,7 +40,6 @@ in { kernelPackages = pkgs.linuxPackages_hardened; kernelModules = [ "tcp_bbr" "veth" ]; kernelParams = [ - # "zfs.metaslab_lba_weighting_enabled=0" "zfs.zfs_arc_max=${zfs_arc_max}" "zswap.enabled=0" "quiet" diff --git a/machines/NixOS-VPS/default.nix b/machines/NixOS-VPS/default.nix index 38c3da1..066a2e2 100644 --- a/machines/NixOS-VPS/default.nix +++ b/machines/NixOS-VPS/default.nix @@ -89,7 +89,6 @@ "net.ipv4.tcp_congestion_control" = "bbr"; "net.ipv4.tcp_slow_start_after_idle" = 0; "net.core.default_qdisc" = "cake"; - # "net.core.default_qdisc" = "fq"; "net.core.rmem_max" = 67108864; "net.core.wmem_max" = 67108864; "net.core.netdev_max_backlog" = 10000; @@ -249,7 +248,7 @@ }; programs.virt-manager.enable = true; networking.firewall.trustedInterfaces = [ "podman*" "vnet*" "virbr*" ]; - networking.firewall.interfaces."podman+".allowedUDPPorts = [ 53 ]; + networking.firewall.interfaces."podman+".allowedUDPPorts = [ 53 5353 ]; security.unprivilegedUsernsClone = true; system.stateVersion = "23.11"; diff --git a/modules/autoinstall/default.nix b/modules/autoinstall/default.nix index 863aef7..c2eed87 100644 --- a/modules/autoinstall/default.nix +++ b/modules/autoinstall/default.nix @@ -5,7 +5,7 @@ let cfg = config.autoinstall; autoinstallOptions = { name, ... }: { - options = rec { + options = { autoReboot = mkOption { type = types.bool; default = false; @@ -37,11 +37,6 @@ let default = true; description = ""; }; - # partitions = mkOption { - # type = types.nullOr attrsOf partitionsAttrs; - # default = null; - # description = "If not wipe entire disk"; - # }; }; debug = mkOption { type = types.bool; @@ -166,8 +161,6 @@ let mkService = name: opt: { description = "Autoinstall NixOS on ${name}"; - # wantedBy = [ "multi-user.target" ]; - # after = [ "network.target" "polkit.service" ]; path = with pkgs; [ "/run/current-system/sw/" "/usr/bin/" @@ -183,14 +176,6 @@ let }; serviceConfig = { Type = "oneshot"; }; }; - - # asserts = opt: [{ - # assertion = opt.flakesPath != ""; - # message = "flakesPath can't be empty"; - # } { - # assertion = !(opt.encryption.enable && opt.encryption.passwordFile == ""); - # message = "If you use encryption, you need to set path to password file"; - # }]; in { options.autoinstall = mkOption { default = {}; diff --git a/modules/persist.nix b/modules/persist.nix index b379018..9e4d3c2 100644 --- a/modules/persist.nix +++ b/modules/persist.nix @@ -4,7 +4,7 @@ let takeAll = what: concatMap (x: x.${what}); - persists = with cfg; [ state derivative cache ]; + persists = with cfg; [ state cache ]; absoluteHomePath = map (x: "${cfg.homeDir}/${x}"); @@ -64,9 +64,6 @@ in { # backup = {...}; } // common; - # Stuff that can be computed from declarative+state, but is never invalidated (so shouldn't be cleaned up) - derivative = common; - # Stuff that's just there to speed up the system # It's cleaned up regularly, to solve the cache invalidation problem once and for all cache = { @@ -110,15 +107,5 @@ in { ''; startAt = cfg.cache.clean.dates; }; - - # system.activationScripts = { - # homedir.text = builtins.concatStringsSep "\n" (map (dir: '' - # mkdir -p ${cfg.persistRoot}${dir} - # chown ${config.mainuser}:users ${cfg.persistRoot}${dir} - # '') ( - # (builtins.filter (lib.hasPrefix cfg.homeDir) allDirectories) - # ++ absoluteHomePath allHomeDirectories - # )); - # }; }; } diff --git a/profiles/applications/packages.nix b/profiles/applications/packages.nix index 01d3da5..7469308 100644 --- a/profiles/applications/packages.nix +++ b/profiles/applications/packages.nix @@ -5,7 +5,6 @@ with config.deviceSpecific; { home-manager.users.${config.mainuser} = { home.packages = with pkgs; [ # --- cli --- - # bat comma curl curlie @@ -32,8 +31,6 @@ with config.deviceSpecific; { usbutils zip # --- tui --- - # bottom - # micro ncdu procs # --- gui --- @@ -51,7 +48,6 @@ with config.deviceSpecific; { # ---- gui ---- bitwarden jellyfin-mpv-shim - # libreoffice obs-studio obs-studio-plugins.obs-vkcapture obsidian diff --git a/profiles/applications/vscode/default.nix b/profiles/applications/vscode/default.nix index f4bf34c..1363187 100644 --- a/profiles/applications/vscode/default.nix +++ b/profiles/applications/vscode/default.nix @@ -32,27 +32,26 @@ in enableExtensionUpdateCheck = false; enableUpdateCheck = false; extensions = [ - # (pkgs.callPackage ./theme.nix { mainuser = config.mainuser; } config.lib.base16.theme) ext-vscode.aaron-bond.better-comments - ext-vscode.alefragnani.bookmarks - ext-vscode.alefragnani.project-manager - ext-vscode.alexisvt.flutter-snippets + # ext-vscode.alefragnani.bookmarks + # ext-vscode.alefragnani.project-manager + # ext-vscode.alexisvt.flutter-snippets ext-vscode.christian-kohler.path-intellisense ext-vscode.codezombiech.gitignore ext-vscode.continue.continue - ext-vscode.dart-code.dart-code - ext-vscode.dart-code.flutter - # ext-vscode.dlasagno.wal-theme + # ext-vscode.dart-code.dart-code + # ext-vscode.dart-code.flutter ext-vscode.eamodio.gitlens ext-vscode.enkia.tokyo-night - ext-vscode.felixangelov.bloc + # ext-vscode.felixangelov.bloc ext-vscode.github.vscode-github-actions ext-vscode.github.vscode-pull-request-github + ext-vscode.gruntfuggly.todo-tree ext-vscode.irongeek.vscode-env ext-vscode.jebbs.plantuml ext-vscode.jnoortheen.nix-ide - ext-vscode.lucax88x.codeacejumper - ext-vscode.marcelovelasquez.flutter-tree + # ext-vscode.lucax88x.codeacejumper + # ext-vscode.marcelovelasquez.flutter-tree ext-vscode.mhutchie.git-graph ext-vscode.mkhl.direnv ext-vscode.ms-azuretools.vscode-docker @@ -64,18 +63,15 @@ in ext-vscode.pkief.material-icon-theme ext-vscode.streetsidesoftware.code-spell-checker ext-vscode.streetsidesoftware.code-spell-checker-russian - ext-vscode.usernamehw.errorlens ext-vscode.ultram4rine.vscode-choosealicense ext-vscode.usernamehw.errorlens ext-vscode.yzhang.markdown-all-in-one # Rust - ext-vscode.gruntfuggly.todo-tree ext-vscode.jscearcy.rust-doc-viewer ext-vscode.polypus74.trusty-rusty-snippets ext-nixpkgs.rust-lang.rust-analyzer ext-vscode.serayuzgur.crates ext-vscode.tamasfe.even-better-toml - ext-vscode.usernamehw.errorlens ext-vscode.vadimcn.vscode-lldb # Golang ext-vscode.golang.go @@ -148,11 +144,8 @@ in "terminal.integrated.profiles.linux".zsh.path = "/run/current-system/sw/bin/zsh"; "todo-tree.regex.regex" = "(//|#|