Test
This commit is contained in:
parent
6d52a86a47
commit
bcced89cba
10 changed files with 8 additions and 23 deletions
|
@ -53,8 +53,8 @@
|
|||
osaka-linode-01 = libx.mkHost { hostname = "osaka-linode-01"; };
|
||||
framework-server = libx.mkHost { hostname = "framework-server"; };
|
||||
nuc-server = libx.mkHost { hostname = "nuc-server"; };
|
||||
nixos-desktop = libx.mkHost { hostname = "nixos-desktop"; repo = "nixpkgs-unstable"; desktop = "hyprland"; gpu = "nvidia"; theme = "tokyo-night"; };
|
||||
nixos-framework = libx.mkHost { hostname = "nixos-framework"; repo = "nixpkgs-unstable"; desktop = "hyprland"; gpu = "amd"; theme = "tokyo-night"; };
|
||||
nixos-desktop = libx.mkHost { hostname = "nixos-desktop"; unfree = true; repo = "nixpkgs-unstable"; desktop = "hyprland"; gpu = "nvidia"; theme = "tokyo-night"; };
|
||||
nixos-framework = libx.mkHost { hostname = "nixos-framework"; unfree = true; repo = "nixpkgs-unstable"; desktop = "hyprland"; gpu = "amd"; theme = "tokyo-night"; };
|
||||
backups-rpi4 = libx.mkHost { hostname = "backups-rpi4"; system = "aarch64-linux"; type = "small"; };
|
||||
piaware-rpi4 = libx.mkHost { hostname = "piaware-rpi4"; system = "aarch64-linux"; type = "small"; };
|
||||
quitman-rpi4 = libx.mkHost { hostname = "quitman-rpi4"; system = "aarch64-linux"; type = "small"; };
|
||||
|
|
|
@ -41,10 +41,13 @@
|
|||
system ? "x86_64-linux",
|
||||
theme ? "default",
|
||||
type ? "default",
|
||||
repo ? "nixpkgs"
|
||||
repo ? "nixpkgs",
|
||||
unfree ? false
|
||||
}: inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme; };
|
||||
pkgs = import inputs.${repo} { inherit system; };
|
||||
pkgs = import inputs.${repo} {
|
||||
inherit system;
|
||||
config.allowUnfree = unfree; };
|
||||
|
||||
modules = [
|
||||
# Types are 'default', 'small', and 'minimal'
|
||||
|
|
|
@ -24,9 +24,6 @@
|
|||
users.users.root.openssh.authorizedKeys.keys = [ ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKp2wgqFcr0LGaUXbom88/zK2631pysePUWIaCMljT0K root@backups-rpi4'' ];
|
||||
services.openssh.settings.PermitRootLogin = lib.mkForce "prohibit-password";
|
||||
|
||||
# steam, etc
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "thunderbolt" "sd_mod" "uas" ];
|
||||
boot.initrd.kernelModules = [ "r8152" ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
../../common/services/podman.nix
|
||||
../../common/services/tailscale-autoconnect.nix
|
||||
];
|
||||
# steam, nvidia-x11, etc
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "thunderbolt" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
../../common/services/fwupd.nix
|
||||
../../common/services/tlp.nix
|
||||
];
|
||||
|
||||
# steam , etc
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
powerManagement.enable = true;
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "thunderbolt" ];
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, lib, pkgs, modulesPath, desktop, username, ... }: {
|
||||
nixpkgs.config.allowUnfree = false;
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, lib, pkgs, modulesPath, desktop, username, ... }: {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
|
|
@ -6,11 +6,6 @@
|
|||
};
|
||||
|
||||
time.timeZone = "Asia/Tokyo";
|
||||
|
||||
nixpkgs = {
|
||||
config.allowUnfree = false;
|
||||
hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "nixos-linode-img";
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
inputs.deploy-rs.packages.${system}.deploy-rs
|
||||
];
|
||||
|
||||
# steam , etc
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "thunderbolt" "sd_mod" "uas" ];
|
||||
boot.initrd.kernelModules = [ "r8152" ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
# Distributed Builds
|
||||
nix.distributedBuilds = true;
|
||||
nixpkgs.config.allowUnfree = false;
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
|
Loading…
Reference in a new issue