hosts/mabon: Initial addition

This commit is contained in:
kat witch 2021-04-14 01:22:33 +01:00
parent a0f53d2cd2
commit e0183416fb
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
4 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1 @@
{ ... }: { }

18
hosts/mabon/meta.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, hosts, ... }: {
config = {
resources.mabon = {
provider = "null";
type = "resource";
connection = {
port = 62954;
host = "192.168.1.119";
};
};
deploy.systems.mabon = with config.resources; {
nixosConfig = hosts.mabon.config;
connection = mabon.connection.set;
triggers.copy.mabon = mabon.refAttr "id";
triggers.secrets.mabon = mabon.refAttr "id";
};
};
}

View file

@ -0,0 +1,31 @@
{ config, pkgs, profiles, ... }:
{
imports = [
./hw.nix
profiles.gui
profiles.sway
profiles.kat
profiles.laptop
];
deploy.target = "mbp";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages;
boot.kernelModules = [ "wl" ];
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
networking.hostId = "d199ad70";
networking.hostName = "mabon";
networking.useDHCP = false;
networking.interfaces.enp1s0.useDHCP = true;
networking.interfaces.wlp2s0.useDHCP = true;
networking.networkmanager.enable = true;
system.stateVersion = "20.09";
}

30
hosts/mabon/nixos/hw.nix Normal file
View file

@ -0,0 +1,30 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "firewire_ohci" "usbhid" "usb_storage" "sd_mod" "sr_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" "wl" ];
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/236f9363-19ee-46e3-8db4-5dd1e28b742d";
fsType = "ext4";
};
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/b0435b6c-fd76-44d0-8b63-2c2c059df814";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/84FB-4F88";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/926c41d6-c06a-4dcc-b55d-f4cfaafe4bac"; }
];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}