wip: feat: Add host deertopia
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
{ config, pkgs, lib, disko, sydnix-cli, ... }:
|
||||
{ config, pkgs, lib, disko, /* sydnix-cli, */ ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./disko-config.nix
|
||||
./services.nix
|
||||
];
|
||||
|
||||
sydnix = {
|
||||
filesystemType = "btrfs";
|
||||
|
||||
users.users = [
|
||||
"hause"
|
||||
"arisu"
|
||||
];
|
||||
|
||||
impermanence = {
|
||||
# enable = true;
|
||||
enable = true;
|
||||
directories = [
|
||||
# "Warning: Neither /var/lib/nixos nor any of its parents are persisted.
|
||||
# This means all users/groups without specified uids/gids will have them
|
||||
@@ -25,18 +26,16 @@
|
||||
"/etc/ssh"
|
||||
];
|
||||
rollback = {
|
||||
# enable = true;
|
||||
enable = true;
|
||||
device = "/dev/sda2";
|
||||
subvolume = "rootfs";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = false;
|
||||
};
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
time.timeZone = "America/Denver";
|
||||
@@ -55,7 +54,7 @@
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
git
|
||||
sydnix-cli.packages.x86_64-linux.default
|
||||
# sydnix-cli.packages.x86_64-linux.default
|
||||
];
|
||||
|
||||
services.openssh.enable = true;
|
||||
26
hosts/deertopia/hardware-configuration.nix
Normal file
26
hosts/deertopia/hardware-configuration.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
7
hosts/deertopia/services.nix
Normal file
7
hosts/deertopia/services.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ utils, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
map (x: ./services/${x})
|
||||
(utils.listNixFilesInDirectory ./services);
|
||||
}
|
||||
11
hosts/deertopia/services/nextcloud.nix
Normal file
11
hosts/deertopia/services/nextcloud.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
sydnix.sops = {
|
||||
enable = true;
|
||||
keyFile = "/persist/vault/root/deertopia-key";
|
||||
};
|
||||
|
||||
# services.nextcloud = {
|
||||
# };
|
||||
}
|
||||
1
hosts/deertopia/system.nix
Executable file
1
hosts/deertopia/system.nix
Executable file
@@ -0,0 +1 @@
|
||||
"x86_64-linux"
|
||||
Reference in New Issue
Block a user