From a67c206786619d024e5676b2c803c5310a6cda8c Mon Sep 17 00:00:00 2001 From: kat witch Date: Wed, 14 Apr 2021 01:23:05 +0100 Subject: [PATCH] hosts/ostara: Initial addition --- hosts/ostara/home/default.nix | 1 + hosts/ostara/meta.nix | 18 ++++++++++++++++++ hosts/ostara/nixos/default.nix | 28 ++++++++++++++++++++++++++++ hosts/ostara/nixos/hw.nix | 22 ++++++++++++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 hosts/ostara/home/default.nix create mode 100644 hosts/ostara/meta.nix create mode 100644 hosts/ostara/nixos/default.nix create mode 100644 hosts/ostara/nixos/hw.nix diff --git a/hosts/ostara/home/default.nix b/hosts/ostara/home/default.nix new file mode 100644 index 00000000..c915eb0a --- /dev/null +++ b/hosts/ostara/home/default.nix @@ -0,0 +1 @@ +{ ... }: { } diff --git a/hosts/ostara/meta.nix b/hosts/ostara/meta.nix new file mode 100644 index 00000000..2249c3f9 --- /dev/null +++ b/hosts/ostara/meta.nix @@ -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"; + }; + }; +} diff --git a/hosts/ostara/nixos/default.nix b/hosts/ostara/nixos/default.nix new file mode 100644 index 00000000..a6140aae --- /dev/null +++ b/hosts/ostara/nixos/default.nix @@ -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"; +} diff --git a/hosts/ostara/nixos/hw.nix b/hosts/ostara/nixos/hw.nix new file mode 100644 index 00000000..0350a1be --- /dev/null +++ b/hosts/ostara/nixos/hw.nix @@ -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"; } + ]; + +}