This commit is contained in:
2024-04-05 22:45:51 +02:00
parent 46d236c439
commit b79ec3015a
3 changed files with 15 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, user, allowed, secrets, rice, nvidia, ... }:
{ config, lib, pkgs, user, host, allowed, secrets, rice, nvidia, ... }:
let
in
{
@@ -67,6 +67,7 @@ in
# $ nix search wget
environment.systemPackages = with pkgs; [
ntfs3g
btrfs-progs
git
git-crypt
wget

View File

@@ -79,7 +79,14 @@
modules = [
./configuration.nix
];
specialArgs = { inherit user pkgs-unstable allowed secrets rice nvidia; };
specialArgs = let host = "NxXPS"; in { inherit user host pkgs-unstable allowed secrets rice nvidia; };
};
NxNORTH = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
];
specialArgs = let host = "NxNORTH"; in { inherit user host pkgs-unstable allowed secrets rice nvidia; };
};
};

View File

@@ -1,4 +1,4 @@
{ config, lib, user, pkgs, modulesPath, ... }:
{ config, lib, user, host, pkgs, modulesPath, ... }:
{
imports = [
@@ -19,10 +19,10 @@
device = "/dev/disk/by-label/EFI";
fsType = "vfat";
};
fileSystems."/home/${user}/shared" = {
device = "/dev/disk/by-label/shared";
fsType = "ntfs";
};
#fileSystems."/home/${user}/shared" = if {
# device = "/dev/disk/by-label/shared";
# fsType = if host == "NxXPS" then "ntfs" else "btrfs";
#};
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }