Merge branch 'main' of gh:greg-hellings/nixos-config
This commit is contained in:
Executable
+5
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
beta="${1}"
|
||||||
|
|
||||||
|
nix build ".#nixosConfigurations.iso${beta}.config.system.build.isoImage"
|
||||||
+2
-1
@@ -4,6 +4,7 @@ let
|
|||||||
system ? "aarch64-darwin",
|
system ? "aarch64-darwin",
|
||||||
name,
|
name,
|
||||||
channel ? inputs.nixunstable,
|
channel ? inputs.nixunstable,
|
||||||
|
hm ? inputs.hmunstable,
|
||||||
extraMods ? []
|
extraMods ? []
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -15,7 +16,7 @@ let
|
|||||||
specialArgs = { inherit nixpkgs; };
|
specialArgs = { inherit nixpkgs; };
|
||||||
modules = [
|
modules = [
|
||||||
{ nixpkgs.overlays = overlays; }
|
{ nixpkgs.overlays = overlays; }
|
||||||
inputs.hm.darwinModules.home-manager
|
hm.darwinModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
];
|
];
|
||||||
casks = [
|
casks = [
|
||||||
"gnucash"
|
"gnucash"
|
||||||
|
"insomnia"
|
||||||
"onlyoffice"
|
"onlyoffice"
|
||||||
"pgadmin4"
|
"pgadmin4"
|
||||||
"postman"
|
"postman"
|
||||||
|
|||||||
Generated
+12
-12
@@ -49,11 +49,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1692248770,
|
"lastModified": 1697723594,
|
||||||
"narHash": "sha256-tZeFpETKQGbgnaSIO1AGWD27IyTcBm4D+A9d7ulQ4NM=",
|
"narHash": "sha256-W7lTC+kHGS1YCOutGpxUHF0cK66iY/GYr3INaTyVa/I=",
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "511177ffe8226c78c9cf6a92a7b5f2df3684956b",
|
"rev": "19f75c2b45fbfc307ecfeb9dadc41a4c1e4fb980",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -180,11 +180,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1698896213,
|
"lastModified": 1701728041,
|
||||||
"narHash": "sha256-u42NZt52F3o7pM5V7sYlLOp5tSN8z9+fO2wFcOs0EOQ=",
|
"narHash": "sha256-x0pyrI1vC8evVDxCxyO6olOyr4wlFg9+VS3C3p4xFYQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "831b4fa31749208e576050c563e9773aafd04941",
|
"rev": "ac7216918cd65f3824ba7817dea8f22e61221eaf",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -406,11 +406,11 @@
|
|||||||
},
|
},
|
||||||
"nixunstable": {
|
"nixunstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1698924604,
|
"lastModified": 1701436327,
|
||||||
"narHash": "sha256-GCFbkl2tj8fEZBZCw3Tc0AkGo0v+YrQlohhEGJ/X4s0=",
|
"narHash": "sha256-tRHbnoNI8SIM5O5xuxOmtSLnswEByzmnQcGGyNRjxsE=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fa804edfb7869c9fb230e174182a8a1a7e512c40",
|
"rev": "91050ea1e57e50388fa87a3302ba12d188ef723a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -454,11 +454,11 @@
|
|||||||
},
|
},
|
||||||
"nurpkgs": {
|
"nurpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1699022487,
|
"lastModified": 1701837124,
|
||||||
"narHash": "sha256-YgBYhtv4mH/vY19ez/KK+NE931ziZqFKTp+hB6fAqxo=",
|
"narHash": "sha256-+qPorEJXhoJcByNM/W1pHTTYvzZA3EhcXYjElR9VZV8=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "cbfae2db1a6fc777c4bcbf4de7b1c02f404b28a8",
|
"rev": "adfe50da3f5f7e2eb864d1c07654b5482b4d2327",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ in with lib;
|
|||||||
};
|
};
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
bitwarden
|
bitwarden
|
||||||
pkgs.bypass-paywalls
|
bypass-paywalls-clean
|
||||||
gsconnect
|
gsconnect
|
||||||
foxyproxy-standard
|
foxyproxy-standard
|
||||||
multi-account-containers
|
multi-account-containers
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
bruno
|
bruno
|
||||||
direnv
|
direnv
|
||||||
home-manager
|
home-manager
|
||||||
|
insomnia
|
||||||
pipenv
|
pipenv
|
||||||
];
|
];
|
||||||
file.".pip/pip.conf".text = (lib.strings.concatStringsSep "\n" [
|
file.".pip/pip.conf".text = (lib.strings.concatStringsSep "\n" [
|
||||||
|
|||||||
@@ -4,4 +4,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
../../vscodium.nix
|
../../vscodium.nix
|
||||||
];
|
];
|
||||||
|
home.packages = [
|
||||||
|
(pkgs.mumble.override { pulseSupport = true; })
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
showMenubar = true;
|
showMenubar = true;
|
||||||
themeVariant = "dark";
|
themeVariant = "dark";
|
||||||
profile.default = {
|
profile."95f3c68e-82f3-4f44-ac85-6e075fed80b0" = {
|
||||||
default = true;
|
default = true;
|
||||||
visibleName = "greg";
|
visibleName = "greg";
|
||||||
};
|
};
|
||||||
|
|||||||
+8
-9
@@ -32,23 +32,22 @@
|
|||||||
aliases = {
|
aliases = {
|
||||||
ac = "vox activate";
|
ac = "vox activate";
|
||||||
|
|
||||||
|
cbazel = "compass workspace exec bazel";
|
||||||
cblack = "compass workspace run src/python3/uc/tools:run_black --";
|
cblack = "compass workspace run src/python3/uc/tools:run_black --";
|
||||||
cbuild = "compass workspace build";
|
cbuild = "compass workspace build";
|
||||||
cci = "./scripts/circleci-checks.py";
|
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";
|
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";
|
crun = "compass workspace run";
|
||||||
ctest = "compass workspace test --extra-cmd-args=\"--test_output=errors\"";
|
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";
|
||||||
cylint = "./scripts/run_yaml_lint.py";
|
|
||||||
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";
|
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";
|
d = "vox deactivate";
|
||||||
devroles = "cd ~/src/ansible_collections/devroles";
|
|
||||||
dirflake = "nix flake new -t github:nix-community/nix-direnv";
|
dirflake = "nix flake new -t github:nix-community/nix-direnv";
|
||||||
gh-personal = "$GH_CONFIG_DIR=\"${config.home.homeDirectory}/.config/gh/personal\" gh";
|
gh-personal = "$GH_CONFIG_DIR=\"${config.home.homeDirectory}/.config/gh/personal\" gh";
|
||||||
ls = "ls --color";
|
ls = "ls --color";
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ in {
|
|||||||
lappy = machine { name = "lappy"; };
|
lappy = machine { name = "lappy"; };
|
||||||
mm = unstable { name = "mm"; };
|
mm = unstable { name = "mm"; };
|
||||||
iso = machine { name = "iso"; };
|
iso = machine { name = "iso"; };
|
||||||
|
iso-beta = unstable { name = "iso"; };
|
||||||
# nix build '.#nixosConfigurations.wsl.config.system.build.installer'
|
# nix build '.#nixosConfigurations.wsl.config.system.build.installer'
|
||||||
nixos = wsl { name = "wsl"; system = "aarch64-linux"; };
|
nixos = wsl { name = "wsl"; system = "aarch64-linux"; };
|
||||||
# nix build '.#nixosConfigurations.wsl-aarch.config.system.build.installer'
|
# nix build '.#nixosConfigurations.wsl-aarch.config.system.build.installer'
|
||||||
|
|||||||
@@ -9,4 +9,7 @@
|
|||||||
networking.networkmanager.enable = lib.mkForce false;
|
networking.networkmanager.enable = lib.mkForce false;
|
||||||
users.users.greg.initialPassword = "";
|
users.users.greg.initialPassword = "";
|
||||||
#services.getty.autologinUser = lib.mkForce "greg";
|
#services.getty.autologinUser = lib.mkForce "greg";
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
tree
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
+17
-2
@@ -1,18 +1,33 @@
|
|||||||
{ lib, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot = {
|
boot = {
|
||||||
supportedFilesystems = [ "ntfs" ];
|
supportedFilesystems = [ "ntfs" ];
|
||||||
loader = {
|
loader = {
|
||||||
|
timeout = 15;
|
||||||
systemd-boot = {
|
systemd-boot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configurationLimit = 10;
|
configurationLimit = 20;
|
||||||
extraEntries = {
|
extraEntries = {
|
||||||
"Windows.conf" = (lib.strings.concatStringsSep "\n" [
|
"Windows.conf" = (lib.strings.concatStringsSep "\n" [
|
||||||
"title Windows"
|
"title Windows"
|
||||||
"efi /EFI/Microsoft/EFI/bootmgfw.efi"
|
"efi /EFI/Microsoft/EFI/bootmgfw.efi"
|
||||||
]);
|
]);
|
||||||
|
"Win2.conf" = (lib.strings.concatStringsSep "\n" [
|
||||||
|
"title Windows 11"
|
||||||
|
"efi /shellx64.efi"
|
||||||
|
"options -nointerrupt -noconsolein -noconsoleout windows11.nsh"
|
||||||
|
]);
|
||||||
|
"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 = {
|
grub = {
|
||||||
|
|||||||
+18
-4
@@ -58,20 +58,34 @@
|
|||||||
fsType = "auto";
|
fsType = "auto";
|
||||||
};
|
};
|
||||||
"/windows" = {
|
"/windows" = {
|
||||||
device = "/dev/nvme0n1p3";
|
device = "/dev/nvme0n1p5";
|
||||||
|
fsType = "ntfs-3g";
|
||||||
|
};
|
||||||
|
"/windows11" = {
|
||||||
|
device = "/dev/nvme1n1p2";
|
||||||
fsType = "ntfs-3g";
|
fsType = "ntfs-3g";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Let's do a sound thing
|
# Let's do a sound thing
|
||||||
services.pipewire = {
|
services = {
|
||||||
|
pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
audio.enable = true;
|
audio.enable = true;
|
||||||
jack.enable = true;
|
jack.enable = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
|
|
||||||
wireplumber.enable = true;
|
wireplumber.enable = true;
|
||||||
};
|
};
|
||||||
hardware.pulseaudio.enable = false; # This conflicts with pipewire
|
xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
};
|
||||||
|
hardware = {
|
||||||
|
nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
nvidiaSettings = true;
|
||||||
|
open = true;
|
||||||
|
};
|
||||||
|
pulseaudio.enable = false; # This conflicts with pipewire
|
||||||
|
system76.enableAll = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
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";
|
fsType = "btrfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+2
-12
@@ -4,18 +4,6 @@
|
|||||||
# Enable flakes
|
# Enable flakes
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.nixFlakes;
|
package = pkgs.nixFlakes;
|
||||||
buildMachines = [
|
|
||||||
{
|
|
||||||
hostName = "dns.me.ts";
|
|
||||||
system = "aarch64-linux";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
hostName = "jude.me.ts";
|
|
||||||
system = "x86_64-linux";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
# Scheduling of them is different in nixos vs nix-darwin, so check for
|
# Scheduling of them is different in nixos vs nix-darwin, so check for
|
||||||
@@ -32,9 +20,11 @@
|
|||||||
max-free = (toString (5 * 1024 * 1024 * 1024) );
|
max-free = (toString (5 * 1024 * 1024 * 1024) );
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://cache.garnix.io"
|
"https://cache.garnix.io"
|
||||||
|
"https://ai.cachix.org"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
||||||
|
"ai.cachix.org-1:N9dzRK+alWwoKXQlnn0H6aUx0lU/mspIoz8hMvGvbbc="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -28,11 +28,6 @@ let
|
|||||||
|
|
||||||
in rec {
|
in rec {
|
||||||
gregpy = myPython;
|
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
|
## Testing adding python packages in the correct manner
|
||||||
pythonPackagesExtensions = (prev.pythonPackagesExtensions or []) ++ [
|
pythonPackagesExtensions = (prev.pythonPackagesExtensions or []) ++ [
|
||||||
@@ -58,7 +53,7 @@ in rec {
|
|||||||
};
|
};
|
||||||
inject = prev.callPackage ./inject.nix { inherit (final) pkgs; };
|
inject = prev.callPackage ./inject.nix { inherit (final) pkgs; };
|
||||||
jinja2-cli = prev.python3.pkgs.callPackage ./jinja2-cli.nix {};
|
jinja2-cli = prev.python3.pkgs.callPackage ./jinja2-cli.nix {};
|
||||||
libbluray = prev.libbluray.override {
|
libbluray-custom = prev.libbluray.override {
|
||||||
withAACS = true;
|
withAACS = true;
|
||||||
withBDplus = true;
|
withBDplus = true;
|
||||||
};
|
};
|
||||||
@@ -66,6 +61,9 @@ in rec {
|
|||||||
pkgs = final.pkgs;
|
pkgs = final.pkgs;
|
||||||
};
|
};
|
||||||
template = prev.callPackage ./template.nix { };
|
template = prev.callPackage ./template.nix { };
|
||||||
|
handbrake = prev.handbrake.override {
|
||||||
|
libbluray = libbluray-custom;
|
||||||
|
};
|
||||||
|
|
||||||
xonsh = prev.xonsh.overridePythonAttrs (old: rec{
|
xonsh = prev.xonsh.overridePythonAttrs (old: rec{
|
||||||
python3 = final.gregpy;
|
python3 = final.gregpy;
|
||||||
|
|||||||
Reference in New Issue
Block a user