From 9a0b157fc5a6d5d3566c51740a3c751a86291c93 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Wed, 15 Nov 2023 14:05:11 -0600 Subject: [PATCH 01/15] Add insomnia to IVR --- home/hosts/ivr/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home/hosts/ivr/default.nix b/home/hosts/ivr/default.nix index 43c4b0f..e2713dc 100644 --- a/home/hosts/ivr/default.nix +++ b/home/hosts/ivr/default.nix @@ -12,6 +12,7 @@ bruno direnv home-manager + insomnia pipenv ]; file.".pip/pip.conf".text = (lib.strings.concatStringsSep "\n" [ From 5e5100a8fbb38234c09707862a3dbd115a8a366a Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Fri, 17 Nov 2023 08:33:03 -0600 Subject: [PATCH 02/15] Add mumble and fix Gnome --- home/hosts/jude/default.nix | 3 +++ home/modules/gnome.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/home/hosts/jude/default.nix b/home/hosts/jude/default.nix index c0cd0ad..a2a4498 100644 --- a/home/hosts/jude/default.nix +++ b/home/hosts/jude/default.nix @@ -4,4 +4,7 @@ imports = [ ../../vscodium.nix ]; + home.packages = [ + (pkgs.mumble.override { pulseSupport = true; }) + ]; } diff --git a/home/modules/gnome.nix b/home/modules/gnome.nix index edd0749..789a847 100644 --- a/home/modules/gnome.nix +++ b/home/modules/gnome.nix @@ -12,7 +12,7 @@ in { enable = true; showMenubar = true; themeVariant = "dark"; - profile.default = { + profile."95f3c68e-82f3-4f44-ac85-6e075fed80b0" = { default = true; visibleName = "greg"; }; From 7ae7bb0075b7ae3805479608e31265abb7d3de6c Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Mon, 27 Nov 2023 11:34:36 -0600 Subject: [PATCH 03/15] Update flake lock --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 738be04..cd7bfbd 100644 --- a/flake.lock +++ b/flake.lock @@ -49,11 +49,11 @@ ] }, "locked": { - "lastModified": 1692248770, - "narHash": "sha256-tZeFpETKQGbgnaSIO1AGWD27IyTcBm4D+A9d7ulQ4NM=", + "lastModified": 1697723594, + "narHash": "sha256-W7lTC+kHGS1YCOutGpxUHF0cK66iY/GYr3INaTyVa/I=", "owner": "lnl7", "repo": "nix-darwin", - "rev": "511177ffe8226c78c9cf6a92a7b5f2df3684956b", + "rev": "19f75c2b45fbfc307ecfeb9dadc41a4c1e4fb980", "type": "github" }, "original": { From 3935ac1c2f6f9ea245483ec650a55f3e2276a623 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Mon, 27 Nov 2023 16:17:26 -0600 Subject: [PATCH 04/15] Use proper home-manager version --- darwin/default.nix | 3 ++- flake.lock | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/darwin/default.nix b/darwin/default.nix index 30d6d49..8ff0ba7 100644 --- a/darwin/default.nix +++ b/darwin/default.nix @@ -4,6 +4,7 @@ let system ? "aarch64-darwin", name, channel ? inputs.nixunstable, + hm ? inputs.hmunstable, extraMods ? [] }: let @@ -15,7 +16,7 @@ let specialArgs = { inherit nixpkgs; }; modules = [ { nixpkgs.overlays = overlays; } - inputs.hm.darwinModules.home-manager + hm.darwinModules.home-manager { home-manager = { useGlobalPkgs = true; diff --git a/flake.lock b/flake.lock index cd7bfbd..1b5f45d 100644 --- a/flake.lock +++ b/flake.lock @@ -180,11 +180,11 @@ ] }, "locked": { - "lastModified": 1698896213, - "narHash": "sha256-u42NZt52F3o7pM5V7sYlLOp5tSN8z9+fO2wFcOs0EOQ=", + "lastModified": 1701071203, + "narHash": "sha256-lQywA7QU/vzTdZ1apI0PfgCWNyQobXUYghVrR5zuIeM=", "owner": "nix-community", "repo": "home-manager", - "rev": "831b4fa31749208e576050c563e9773aafd04941", + "rev": "db1878f013b52ba5e4034db7c1b63e8d04173a86", "type": "github" }, "original": { @@ -406,11 +406,11 @@ }, "nixunstable": { "locked": { - "lastModified": 1698924604, - "narHash": "sha256-GCFbkl2tj8fEZBZCw3Tc0AkGo0v+YrQlohhEGJ/X4s0=", + "lastModified": 1700794826, + "narHash": "sha256-RyJTnTNKhO0yqRpDISk03I/4A67/dp96YRxc86YOPgU=", "owner": "nixos", "repo": "nixpkgs", - "rev": "fa804edfb7869c9fb230e174182a8a1a7e512c40", + "rev": "5a09cb4b393d58f9ed0d9ca1555016a8543c2ac8", "type": "github" }, "original": { From 5a2ca74d233157fb148cbe44035d9e2eca066f2f Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Mon, 27 Nov 2023 16:28:09 -0600 Subject: [PATCH 05/15] Update paths for xonsh --- home/xonsh.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/xonsh.nix b/home/xonsh.nix index 2471393..90e0fea 100644 --- a/home/xonsh.nix +++ b/home/xonsh.nix @@ -34,12 +34,12 @@ cblack = "compass workspace run src/python3/uc/tools:run_black --"; cbuild = "compass workspace build"; - cci = "./scripts/circleci-checks.py"; + cci = "compass workspace run src/python3/uc/tools:circleci-checks"; cgh = "$GH_CONFIG_DIR=\"${config.home.homeDirectory}/.config/gh/compass\" gh"; crun = "compass workspace run"; ctest = "compass workspace test --extra-cmd-args=\"--test_output=errors\""; ccover = "compass workspace cover --extra-cmd-args=\"--test_output=errors\""; - cylint = "./scripts/run_yaml_lint.py"; + cylint = "compass workspace run src/python3/uc/tools:run_yaml_lint"; cpip = "compass workspace run src/python3/uc/tools:run_pip_compile"; cexec = "compass workspace exec"; cbazel = "compass workspace exec bazel"; From 7c0d73797c41fe1bb7a6f7be3fa425dc7e3c9a57 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 28 Nov 2023 10:00:07 -0600 Subject: [PATCH 06/15] Update to latest nur and bypass-paywalls --- flake.lock | 6 +++--- home/gui/firefox.nix | 2 +- overlays/default.nix | 5 ----- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 1b5f45d..d963d33 100644 --- a/flake.lock +++ b/flake.lock @@ -454,11 +454,11 @@ }, "nurpkgs": { "locked": { - "lastModified": 1699022487, - "narHash": "sha256-YgBYhtv4mH/vY19ez/KK+NE931ziZqFKTp+hB6fAqxo=", + "lastModified": 1701139553, + "narHash": "sha256-h+qOgl3sQIZr+VIK0Yw//+LpPfqXi1bnoNdRYZZUyAY=", "owner": "nix-community", "repo": "NUR", - "rev": "cbfae2db1a6fc777c4bcbf4de7b1c02f404b28a8", + "rev": "95271c0caebedc42e9f3273a524d7a565a77dcb3", "type": "github" }, "original": { diff --git a/home/gui/firefox.nix b/home/gui/firefox.nix index 3917ac5..36859a6 100644 --- a/home/gui/firefox.nix +++ b/home/gui/firefox.nix @@ -28,7 +28,7 @@ in with lib; }; extensions = with pkgs.nur.repos.rycee.firefox-addons; [ bitwarden - pkgs.bypass-paywalls + bypass-paywalls-clean gsconnect foxyproxy-standard multi-account-containers diff --git a/overlays/default.nix b/overlays/default.nix index 80adcf3..8226568 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -28,11 +28,6 @@ let in rec { gregpy = myPython; - bypass-paywalls = final.nur.repos.rycee.firefox-addons.bypass-paywalls-clean.override { - version = "3.2.6.0"; - url = "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.2.6.0-custom.xpi"; - sha256 = "sha256-dEdqg0q4w+evky7oZ4l33GPEBEc/PFG2dCsQkVY9/3g="; - }; ## Testing adding python packages in the correct manner pythonPackagesExtensions = (prev.pythonPackagesExtensions or []) ++ [ From 886791a7e6b350f1c2fc35898c9b3852f4414b27 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Thu, 30 Nov 2023 08:38:44 -0600 Subject: [PATCH 07/15] Add Insomnia to Mac --- darwin/work/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/darwin/work/default.nix b/darwin/work/default.nix index 5036289..620741a 100644 --- a/darwin/work/default.nix +++ b/darwin/work/default.nix @@ -8,6 +8,7 @@ ]; casks = [ "gnucash" + "insomnia" "onlyoffice" "pgadmin4" "postman" From 7f3d93540b72cd4d5a70caae528930f125631dd3 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 5 Dec 2023 13:20:04 -0600 Subject: [PATCH 08/15] Move Jude to the Thelio --- hosts/jude/boot.nix | 18 ++++++++++++++++++ hosts/jude/default.nix | 2 +- hosts/jude/hardware-configuration.nix | 3 ++- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/hosts/jude/boot.nix b/hosts/jude/boot.nix index 44c96b5..ba571c5 100644 --- a/hosts/jude/boot.nix +++ b/hosts/jude/boot.nix @@ -13,6 +13,24 @@ "title Windows" "efi /EFI/Microsoft/EFI/bootmgfw.efi" ]); + "Pop.conf" = (lib.strings.concatStringsSep "\n" [ + "title Pop!_OS" + "linux /EFI/Pop_OS-e4918d10-538d-42ad-b35d-a1ee2ed2a433/vmlinuz.efi" + "initrd /EFI/Pop_OS-e4918d10-538d-42ad-b35d-a1ee2ed2a433/initrd.img" + "options root=UUID=e4918d10-538d-42ad-b35d-a1ee2ed2a433 ro quiet loglevel=0 systemd.show_status=false splash" + ]); + "Pop-oldkern.conf" = (lib.strings.concatStringsSep "\n" [ + "title Pop!_OS" + "linux /EFI/Pop_OS-e4918d10-538d-42ad-b35d-a1ee2ed2a433/vmlinuz-previous.efi" + "initrd /EFI/Pop_OS-e4918d10-538d-42ad-b35d-a1ee2ed2a433/initrd.img-previous" + "options root=UUID=e4918d10-538d-42ad-b35d-a1ee2ed2a433 ro quiet loglevel=0 systemd.show_status=false splash" + ]); + "Pop-recovery.conf" = (lib.strings.concatStringsSep "\n" [ + "title Pop!_OS Recovery" + "linux /EFI/Recovery-1E97-BC0F/vmlinuz.efi" + "initrd /EFI/Recovery-1E97-BC0F/initrd.gz" + "options boot=casper hostname=recovery userfullname=Recovery username=recovery live-media-path=/casper-1E97-BC0F noprompt " + ]); }; }; grub = { diff --git a/hosts/jude/default.nix b/hosts/jude/default.nix index 333c519..fe8922b 100644 --- a/hosts/jude/default.nix +++ b/hosts/jude/default.nix @@ -58,7 +58,7 @@ fsType = "auto"; }; "/windows" = { - device = "/dev/nvme0n1p3"; + device = "/dev/nvme0n1p5"; fsType = "ntfs-3g"; }; }; diff --git a/hosts/jude/hardware-configuration.nix b/hosts/jude/hardware-configuration.nix index 8dbc6be..5b54c4b 100644 --- a/hosts/jude/hardware-configuration.nix +++ b/hosts/jude/hardware-configuration.nix @@ -14,7 +14,8 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/27ae91ed-32e9-411e-8227-0d99e360fbbf"; + { #device = "/dev/disk/by-uuid/27ae91ed-32e9-411e-8227-0d99e360fbbf"; + device = "/dev/nvme0n1p4"; fsType = "btrfs"; }; From 9ce866927b19ab3603ba3ab0410078c551d2f2e2 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 5 Dec 2023 13:39:31 -0600 Subject: [PATCH 09/15] Add Nixified.ai to my environment --- modules-all/default.nix | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/modules-all/default.nix b/modules-all/default.nix index 5bfd994..ce97e9e 100644 --- a/modules-all/default.nix +++ b/modules-all/default.nix @@ -4,18 +4,6 @@ # Enable flakes nix = { package = pkgs.nixFlakes; - buildMachines = [ - { - hostName = "dns.me.ts"; - system = "aarch64-linux"; - } - - { - hostName = "jude.me.ts"; - system = "x86_64-linux"; - } - ]; - gc = { automatic = true; # Scheduling of them is different in nixos vs nix-darwin, so check for @@ -32,9 +20,11 @@ max-free = (toString (5 * 1024 * 1024 * 1024) ); substituters = [ "https://cache.garnix.io" + "https://ai.cachix.org" ]; trusted-public-keys = [ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" + "ai.cachix.org-1:N9dzRK+alWwoKXQlnn0H6aUx0lU/mspIoz8hMvGvbbc=" ]; }; }; From 960dee8d69eeb2f3aaed8dfc4b72723a62a0fd6d Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 5 Dec 2023 22:49:16 -0600 Subject: [PATCH 10/15] Update unstable & nur --- flake.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index d963d33..f4d2acc 100644 --- a/flake.lock +++ b/flake.lock @@ -180,11 +180,11 @@ ] }, "locked": { - "lastModified": 1701071203, - "narHash": "sha256-lQywA7QU/vzTdZ1apI0PfgCWNyQobXUYghVrR5zuIeM=", + "lastModified": 1701728041, + "narHash": "sha256-x0pyrI1vC8evVDxCxyO6olOyr4wlFg9+VS3C3p4xFYQ=", "owner": "nix-community", "repo": "home-manager", - "rev": "db1878f013b52ba5e4034db7c1b63e8d04173a86", + "rev": "ac7216918cd65f3824ba7817dea8f22e61221eaf", "type": "github" }, "original": { @@ -406,11 +406,11 @@ }, "nixunstable": { "locked": { - "lastModified": 1700794826, - "narHash": "sha256-RyJTnTNKhO0yqRpDISk03I/4A67/dp96YRxc86YOPgU=", + "lastModified": 1701436327, + "narHash": "sha256-tRHbnoNI8SIM5O5xuxOmtSLnswEByzmnQcGGyNRjxsE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "5a09cb4b393d58f9ed0d9ca1555016a8543c2ac8", + "rev": "91050ea1e57e50388fa87a3302ba12d188ef723a", "type": "github" }, "original": { @@ -454,11 +454,11 @@ }, "nurpkgs": { "locked": { - "lastModified": 1701139553, - "narHash": "sha256-h+qOgl3sQIZr+VIK0Yw//+LpPfqXi1bnoNdRYZZUyAY=", + "lastModified": 1701837124, + "narHash": "sha256-+qPorEJXhoJcByNM/W1pHTTYvzZA3EhcXYjElR9VZV8=", "owner": "nix-community", "repo": "NUR", - "rev": "95271c0caebedc42e9f3273a524d7a565a77dcb3", + "rev": "adfe50da3f5f7e2eb864d1c07654b5482b4d2327", "type": "github" }, "original": { From 9df49c4f68a968f45fc31232c1090f8c1024fcc7 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 5 Dec 2023 22:52:22 -0600 Subject: [PATCH 11/15] Limit libbluray impact --- overlays/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/overlays/default.nix b/overlays/default.nix index 8226568..e63fb1d 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -53,7 +53,7 @@ in rec { }; inject = prev.callPackage ./inject.nix { inherit (final) pkgs; }; jinja2-cli = prev.python3.pkgs.callPackage ./jinja2-cli.nix {}; - libbluray = prev.libbluray.override { + libbluray-custom = prev.libbluray.override { withAACS = true; withBDplus = true; }; @@ -61,6 +61,9 @@ in rec { pkgs = final.pkgs; }; template = prev.callPackage ./template.nix { }; + handbrake = prev.handbrake.override { + libbluray = libbluray-custom; + }; xonsh = prev.xonsh.overridePythonAttrs (old: rec{ python3 = final.gregpy; From c92cb922c8719dfea6327cb87354fd7824bf65c1 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Wed, 6 Dec 2023 08:06:52 -0600 Subject: [PATCH 12/15] More ISO changes --- build-iso.sh | 5 +++++ hosts/default.nix | 1 + hosts/iso/default.nix | 3 +++ 3 files changed, 9 insertions(+) create mode 100755 build-iso.sh diff --git a/build-iso.sh b/build-iso.sh new file mode 100755 index 0000000..2cd9c7d --- /dev/null +++ b/build-iso.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +beta="${1}" + +nix build ".#nixosConfigurations.iso${beta}.config.system.build.isoImage" diff --git a/hosts/default.nix b/hosts/default.nix index 98de728..18ce96f 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -52,6 +52,7 @@ in { lappy = machine { name = "lappy"; }; mm = unstable { name = "mm"; }; iso = machine { name = "iso"; }; + iso-beta = unstable { name = "iso"; }; # nix build '.#nixosConfigurations.wsl.config.system.build.installer' nixos = wsl { name = "wsl"; system = "aarch64-linux"; }; # nix build '.#nixosConfigurations.wsl-aarch.config.system.build.installer' diff --git a/hosts/iso/default.nix b/hosts/iso/default.nix index d7a266f..3ac6960 100644 --- a/hosts/iso/default.nix +++ b/hosts/iso/default.nix @@ -9,4 +9,7 @@ networking.networkmanager.enable = lib.mkForce false; users.users.greg.initialPassword = ""; #services.getty.autologinUser = lib.mkForce "greg"; + environment.systemPackages = with pkgs; [ + tree + ]; } From 19dd85e89eb20c64f37ac3829a967043e4d6952a Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Wed, 6 Dec 2023 12:53:14 -0600 Subject: [PATCH 13/15] Update and rearrange shell aliases --- home/xonsh.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/home/xonsh.nix b/home/xonsh.nix index 90e0fea..025b984 100644 --- a/home/xonsh.nix +++ b/home/xonsh.nix @@ -32,23 +32,22 @@ aliases = { ac = "vox activate"; + cbazel = "compass workspace exec bazel"; cblack = "compass workspace run src/python3/uc/tools:run_black --"; cbuild = "compass workspace build"; cci = "compass workspace run src/python3/uc/tools:circleci-checks"; + ccover = "compass workspace cover --extra-cmd-args=\"--test_output=errors\""; + cexec = "compass workspace exec"; + cfetch = "compass workspace exec bazel run src/go/compass.com/tools/circleci_results_cache:fetch"; cgh = "$GH_CONFIG_DIR=\"${config.home.homeDirectory}/.config/gh/compass\" gh"; + cpip = "compass workspace run src/python3/uc/tools:run_pip_compile"; crun = "compass workspace run"; ctest = "compass workspace test --extra-cmd-args=\"--test_output=errors\""; - ccover = "compass workspace cover --extra-cmd-args=\"--test_output=errors\""; cylint = "compass workspace run src/python3/uc/tools:run_yaml_lint"; - cpip = "compass workspace run src/python3/uc/tools:run_pip_compile"; - cexec = "compass workspace exec"; - cbazel = "compass workspace exec bazel"; gazelle = "compass workspace exec bazel run :gazelle"; - cfetch = "compass workspace exec bazel run src/go/compass.com/tools/circleci_results_cache:fetch"; cleanup = "nix-collect-garbage --delete-older-than 30d && nix store optimise"; d = "vox deactivate"; - devroles = "cd ~/src/ansible_collections/devroles"; dirflake = "nix flake new -t github:nix-community/nix-direnv"; gh-personal = "$GH_CONFIG_DIR=\"${config.home.homeDirectory}/.config/gh/personal\" gh"; ls = "ls --color"; From 134a2dd2bea4b25ecf90a65f65047f263bc5f712 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Mon, 11 Dec 2023 12:25:35 -0600 Subject: [PATCH 14/15] Move to Thelio boot --- home/xonsh.nix | 2 +- hosts/jude/boot.nix | 33 +++++++++++++++------------------ hosts/jude/default.nix | 4 ++++ 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/home/xonsh.nix b/home/xonsh.nix index 90e0fea..e79cf20 100644 --- a/home/xonsh.nix +++ b/home/xonsh.nix @@ -46,7 +46,7 @@ gazelle = "compass workspace exec bazel run :gazelle"; cfetch = "compass workspace exec bazel run src/go/compass.com/tools/circleci_results_cache:fetch"; - cleanup = "nix-collect-garbage --delete-older-than 30d && nix store optimise"; + cleanup = "sudo nix-collect-garbage --delete-older-than 30d && nix store optimise"; d = "vox deactivate"; devroles = "cd ~/src/ansible_collections/devroles"; dirflake = "nix flake new -t github:nix-community/nix-direnv"; diff --git a/hosts/jude/boot.nix b/hosts/jude/boot.nix index ba571c5..7e3df80 100644 --- a/hosts/jude/boot.nix +++ b/hosts/jude/boot.nix @@ -1,37 +1,34 @@ -{ lib, ... }: +{ lib, pkgs, ... }: { # Use the systemd-boot EFI boot loader. boot = { supportedFilesystems = [ "ntfs" ]; loader = { + timeout = 15; systemd-boot = { enable = true; - configurationLimit = 10; + configurationLimit = 20; extraEntries = { "Windows.conf" = (lib.strings.concatStringsSep "\n" [ "title Windows" "efi /EFI/Microsoft/EFI/bootmgfw.efi" ]); - "Pop.conf" = (lib.strings.concatStringsSep "\n" [ - "title Pop!_OS" - "linux /EFI/Pop_OS-e4918d10-538d-42ad-b35d-a1ee2ed2a433/vmlinuz.efi" - "initrd /EFI/Pop_OS-e4918d10-538d-42ad-b35d-a1ee2ed2a433/initrd.img" - "options root=UUID=e4918d10-538d-42ad-b35d-a1ee2ed2a433 ro quiet loglevel=0 systemd.show_status=false splash" + "Win2.conf" = (lib.strings.concatStringsSep "\n" [ + "title Windows 11" + "efi /shellx64.efi" + "options -nointerrupt -noconsolein -noconsoleout windows11.nsh" ]); - "Pop-oldkern.conf" = (lib.strings.concatStringsSep "\n" [ - "title Pop!_OS" - "linux /EFI/Pop_OS-e4918d10-538d-42ad-b35d-a1ee2ed2a433/vmlinuz-previous.efi" - "initrd /EFI/Pop_OS-e4918d10-538d-42ad-b35d-a1ee2ed2a433/initrd.img-previous" - "options root=UUID=e4918d10-538d-42ad-b35d-a1ee2ed2a433 ro quiet loglevel=0 systemd.show_status=false splash" - ]); - "Pop-recovery.conf" = (lib.strings.concatStringsSep "\n" [ - "title Pop!_OS Recovery" - "linux /EFI/Recovery-1E97-BC0F/vmlinuz.efi" - "initrd /EFI/Recovery-1E97-BC0F/initrd.gz" - "options boot=casper hostname=recovery userfullname=Recovery username=recovery live-media-path=/casper-1E97-BC0F noprompt " + "Shell.conf" = (lib.strings.concatStringsSep "\n" [ + "title EFI Shell" + "efi /shell.efi" ]); }; + extraFiles = { + "windows11.nsh" = (pkgs.writeText "windows11.nsh" (lib.strings.concatStringsSep "\n" [ + ])); + "shell.efi" = "${pkgs.edk2-uefi-shell}/shell.efi"; + }; }; grub = { enable = false; diff --git a/hosts/jude/default.nix b/hosts/jude/default.nix index fe8922b..010351e 100644 --- a/hosts/jude/default.nix +++ b/hosts/jude/default.nix @@ -61,6 +61,10 @@ device = "/dev/nvme0n1p5"; fsType = "ntfs-3g"; }; + "/windows11" = { + device = "/dev/nvme1n1p2"; + fsType = "ntfs-3g"; + }; }; # Let's do a sound thing From 014c3ce7c373efd813c02d87042e9ae6a433b029 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Mon, 11 Dec 2023 15:19:32 -0600 Subject: [PATCH 15/15] Enable NVidia and System76 drivers --- hosts/jude/default.nix | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/hosts/jude/default.nix b/hosts/jude/default.nix index 010351e..ed63cb2 100644 --- a/hosts/jude/default.nix +++ b/hosts/jude/default.nix @@ -68,14 +68,24 @@ }; # Let's do a sound thing - services.pipewire = { - enable = true; - alsa.enable = true; - audio.enable = true; - jack.enable = true; - pulse.enable = true; - - wireplumber.enable = true; + services = { + pipewire = { + enable = true; + alsa.enable = true; + audio.enable = true; + jack.enable = true; + pulse.enable = true; + wireplumber.enable = true; + }; + xserver.videoDrivers = [ "nvidia" ]; + }; + hardware = { + nvidia = { + modesetting.enable = true; + nvidiaSettings = true; + open = true; + }; + pulseaudio.enable = false; # This conflicts with pipewire + system76.enableAll = true; }; - hardware.pulseaudio.enable = false; # This conflicts with pipewire }