hosts/ostara: Initial addition

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

View file

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

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

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

View file

@ -0,0 +1,28 @@
{ config, pkgs, profiles, ... }:
{
imports = [
./hw.nix
profiles.gui
profiles.sway
profiles.kat
profiles.laptop
];
deploy.target = "slow";
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
networking.hostId = "9f89b327";
networking.hostName = "ostara";
networking.useDHCP = false;
networking.interfaces.enp1s0.useDHCP = true;
networking.interfaces.wlp2s0.useDHCP = true;
networking.networkmanager.enable = true;
system.stateVersion = "20.09";
}

22
hosts/ostara/nixos/hw.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/469a684b-eb8f-48a8-8f98-be58528312c4";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/2223e305-79c9-45b3-90d7-560dcc45775a"; }
];
}