summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-02-08 19:36:31 +0100
committerRory& <root@rory.gay>2025-02-08 19:44:18 +0100
commit91f8d570e2121c78fb6b83fd4e7c8b601057d57f (patch)
treef1663762ebb6d1cd72b6a18d0d1550c3b1b3cf4d
parentAdd ignore revs file (diff)
downloadRory-Open-Architecture-91f8d570e2121c78fb6b83fd4e7c8b601057d57f.tar.xz
Add laptop
-rw-r--r--flake.lock6
-rwxr-xr-xflake.nix5
-rw-r--r--host/Rory-laptop/configuration.nix34
-rw-r--r--host/Rory-laptop/edu/nodejs-dev.nix14
-rw-r--r--host/Rory-laptop/edu/vmware.nix18
-rw-r--r--host/Rory-laptop/nginx.nix2
-rw-r--r--host/Rory-laptop/optional/gui/wayland.nix1
-rw-r--r--host/Rory-laptop/optional/hardware-specific/intel.nix25
-rw-r--r--modules/software-templates/dotnet.client.nix2
-rwxr-xr-xmodules/users/Rory.nix1
10 files changed, 93 insertions, 15 deletions
diff --git a/flake.lock b/flake.lock

index 59450e0..d3bb65b 100644 --- a/flake.lock +++ b/flake.lock
@@ -77,11 +77,11 @@ "nixpkgs": "nixpkgs_3" }, "locked": { - "lastModified": 1730678249, - "narHash": "sha256-Xn1BnCbwbRFhqcFJ4GvSmB+H509fiHFhTJcpi4G+2oo=", + "lastModified": 1738687046, + "narHash": "sha256-6X7CYwykwyVU1kXMdl/CmARETQ77wXPHwqG+aAc5oak=", "owner": "famedly", "repo": "conduit", - "rev": "e952522a39883e4431e74c42cef3d9bc562752f8", + "rev": "e20dd1469a0f84a428097242d280f5b8344b7e96", "type": "gitlab" }, "original": { diff --git a/flake.nix b/flake.nix
index 19d4459..f01d3d8 100755 --- a/flake.nix +++ b/flake.nix
@@ -40,6 +40,11 @@ conduit.url = "gitlab:famedly/conduit/next"; #conduwuit.url = "github:girlbossceo/conduwuit"; nixos-wsl.url = "github:nix-community/NixOS-WSL"; + # - AUR imports +## aur-visual-paradigm = { +# url = "git+https://aur.archlinux.org/visual-paradigm.git"; +# flake = false; +# }; lix-module = { url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-2.tar.gz"; diff --git a/host/Rory-laptop/configuration.nix b/host/Rory-laptop/configuration.nix
index 26e0620..3eae202 100644 --- a/host/Rory-laptop/configuration.nix +++ b/host/Rory-laptop/configuration.nix
@@ -19,9 +19,13 @@ args@{ ./postgres.nix ./nginx.nix - + + ./edu/vmware.nix + ./edu/nodejs-dev.nix + # hardware-specific imports ./optional/hardware-specific/nvidia.nix + ./optional/hardware-specific/intel.nix ./optional/gui/wayland.nix ]; @@ -34,8 +38,9 @@ args@{ device = "nodev"; # nodev for EFI only # EFI efiSupport = true; - efiInstallAsRemovable = true; + #efiInstallAsRemovable = true; }; + efi.canTouchEfiVariables = true; }; }; programs.noisetorch.enable = true; @@ -56,14 +61,14 @@ args@{ # allowedUDPPorts = [ ... ]; }; - interfaces.enp34s0.ipv4.addresses = [ - { - address = "192.168.0.3"; - prefixLength = 24; - } - ]; + #interfaces.enp2s0.ipv4.addresses = [ + # { + # address = "192.168.0.4"; + # prefixLength = 24; + # } + #]; - defaultGateway = "192.168.0.1"; + #defaultGateway = "192.168.0.1"; #useDHCP = true; # Doesn't work with NetworkManager, investigate }; @@ -71,6 +76,11 @@ args@{ i18n.defaultLocale = "en_US.UTF-8"; services = { + resolved.enable = true; + mullvad-vpn = { + enable = true; + package = pkgs.mullvad-vpn; + }; xserver = { displayManager.gdm.enable = true; displayManager.lightdm.enable = false; @@ -111,7 +121,9 @@ args@{ youtube-music # - IDEs + (jetbrains.plugins.addPlugins jetbrains.webstorm [ "github-copilot" ]) + (jetbrains.plugins.addPlugins jetbrains.idea-ultimate [ "github-copilot" ]) dbeaver-bin vscode @@ -168,11 +180,13 @@ args@{ eid-mw jitsi-meet-electron nixd + mullvad-vpn ]; environment.etc."pkcs11/modules/opensc-pkcs11".text = '' module: ${pkgs.opensc}/lib/opensc-pkcs11.so ''; + services.power-profiles-daemon.enable = true; programs.steam = { enable = true; gamescopeSession.enable = true; @@ -276,7 +290,7 @@ args@{ }; services.rabbitmq = { - enable = true; + #enable = true; }; system.stateVersion = "22.11"; # DO NOT EDIT! diff --git a/host/Rory-laptop/edu/nodejs-dev.nix b/host/Rory-laptop/edu/nodejs-dev.nix new file mode 100644
index 0000000..ce02770 --- /dev/null +++ b/host/Rory-laptop/edu/nodejs-dev.nix
@@ -0,0 +1,14 @@ +{ + config, + pkgs, + lib, + ... +}: + +{ + environment.systemPackages = with pkgs;[ + nodejs_latest + + ]; + +} diff --git a/host/Rory-laptop/edu/vmware.nix b/host/Rory-laptop/edu/vmware.nix new file mode 100644
index 0000000..de9e988 --- /dev/null +++ b/host/Rory-laptop/edu/vmware.nix
@@ -0,0 +1,18 @@ +{ + config, + pkgs, + lib, + ... +}: + +{ + virtualisation.vmware.host = { + enable = true; + extraConfig = '' + # Allow unsupported device's OpenGL and Vulkan acceleration for guest vGPU + mks.gl.allowUnsupportedDrivers = "TRUE" + mks.vk.allowUnsupportedDevices = "TRUE" + ''; + }; + +} diff --git a/host/Rory-laptop/nginx.nix b/host/Rory-laptop/nginx.nix
index d28dd33..98ef48b 100644 --- a/host/Rory-laptop/nginx.nix +++ b/host/Rory-laptop/nginx.nix
@@ -13,7 +13,7 @@ recommendedProxySettings = true; #recommendedTlsSettings = true; recommendedZstdSettings = true; - # recommendedGzipSettings = true; +# recommendedGzipSettings = true; recommendedBrotliSettings = true; recommendedOptimisation = true; #defaultMimeTypes = ../../../../packages/nginx/mime.types; diff --git a/host/Rory-laptop/optional/gui/wayland.nix b/host/Rory-laptop/optional/gui/wayland.nix
index eac6391..b850a0f 100644 --- a/host/Rory-laptop/optional/gui/wayland.nix +++ b/host/Rory-laptop/optional/gui/wayland.nix
@@ -30,6 +30,7 @@ slurp easyeffects keepassxc + networkmanagerapplet ]; }; diff --git a/host/Rory-laptop/optional/hardware-specific/intel.nix b/host/Rory-laptop/optional/hardware-specific/intel.nix new file mode 100644
index 0000000..d74c9e3 --- /dev/null +++ b/host/Rory-laptop/optional/hardware-specific/intel.nix
@@ -0,0 +1,25 @@ +{ + pkgs, + ... +}: + +{ + nixpkgs.config.packageOverrides = pkgs: { + intel-vaapi-driver = pkgs.intel-vaapi-driver.override { enableHybridCodec = true; }; + }; + + hardware = { + opengl = { + enable = true; + extraPackages = with pkgs; [ + intel-media-driver # LIBVA_DRIVER_NAME=iHD + intel-vaapi-driver # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium) + libvdpau-va-gl + ]; + }; + }; + environment.sessionVariables = { + LIBVA_DRIVER_NAME = "iHD"; + }; + system.stateVersion = "22.11"; # DO NOT EDIT! +} diff --git a/modules/software-templates/dotnet.client.nix b/modules/software-templates/dotnet.client.nix
index 6f1fdd8..2c043db 100644 --- a/modules/software-templates/dotnet.client.nix +++ b/modules/software-templates/dotnet.client.nix
@@ -17,6 +17,6 @@ in #imports = [ ./dotnet.nix ]; environment.systemPackages = with pkgs; [ #`jetbrains.rider - (jetbrains.plugins.addPlugins jetbrains.rider [ "github-copilot" ]) + (jetbrains.plugins.addPlugins jetbrains.rider [ "github-copilot" "nixidea" ]) ]; } diff --git a/modules/users/Rory.nix b/modules/users/Rory.nix
index 98696fe..b7814ad 100755 --- a/modules/users/Rory.nix +++ b/modules/users/Rory.nix
@@ -7,6 +7,7 @@ "wheel" "libvirtd" "ocp" + "networkmanager" ]; packages = with pkgs; [ lnav