mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
hosts/ostara: Initial addition
This commit is contained in:
parent
e0183416fb
commit
a67c206786
4 changed files with 69 additions and 0 deletions
1
hosts/ostara/home/default.nix
Normal file
1
hosts/ostara/home/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ ... }: { }
|
||||
18
hosts/ostara/meta.nix
Normal file
18
hosts/ostara/meta.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
28
hosts/ostara/nixos/default.nix
Normal file
28
hosts/ostara/nixos/default.nix
Normal 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
22
hosts/ostara/nixos/hw.nix
Normal 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"; }
|
||||
];
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue