Moved susano config to new structure

This commit is contained in:
Alexander
2025-08-03 21:20:10 +02:00
parent ede8ce7dce
commit 57d74eb310
10 changed files with 21 additions and 114 deletions
+9 -17
View File
@@ -117,30 +117,22 @@
###
# Proxmox Homelab Machine
###
susano-minimal = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs extraHomeModules; };
modules = [
disko.nixosModules.disko
home-manager.nixosModules.home-manager
./machines/susano-minimal
];
};
susano = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs extraHomeModules; };
modules = [
disko.nixosModules.disko
home-manager.nixosModules.home-manager
susano-minimal = mkComputer
./machines/susano/minimal
[]
"susano";
susano = mkComputer
./machines/susano/main
[
sops-nix.nixosModules.sops
# Applications
inputs.copyparty.nixosModules.default
inputs.vscode-server.nixosModules.default
./machines/susano
./modules
];
};
]
"susano";
###
# Proxmox Remote Dev Machine
-55
View File
@@ -1,55 +0,0 @@
{
disko.devices = {
disk = {
main = {
device = "/dev/sda";
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02"; # for grub MBR
};
root = {
size = "100%";
content = {
type = "btrfs";
extraArgs = [ "-f" ]; # Override existing partition
# Subvolumes must set a mountpoint in order to be mounted,
# unless their parent is mounted
subvolumes = {
# Subvolume name is different from mountpoint
"/rootfs" = {
mountpoint = "/";
};
# Subvolume name is the same as the mountpoint
"/home" = {
mountOptions = [ "compress=zstd" ];
mountpoint = "/home";
};
# Sub(sub)volume doesn't need a mountpoint as its parent is mounted
"/home/susano" = { };
"/nix" = {
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/nix";
};
};
mountpoint = "/partition-root";
swap = {
swapfile = {
size = "8G";
};
};
};
};
};
};
};
};
};
}
@@ -1,28 +0,0 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
# fileSystems."/" =
# { device = "/dev/disk/by-uuid/301d5990-7186-4a90-94aa-997044007358";
# fsType = "ext4";
# };
# swapDevices = [ ];
# 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.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}
@@ -1,13 +1,14 @@
{ config, pkgs, extraHomeModules, inputs, lib, ... }:
{ config, pkgs, extraHomeModules, inputs, lib, username, ... }:
let
username = "susano";
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
in {
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./disko-config.nix
[
../../minimal.nix
../hardware-configuration.nix
../disko-config.nix
./sops.nix
];
@@ -88,8 +89,6 @@ in {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBcGhVpjmWEw1GEw0y/ysJPa2v3+u/Rt/iES/Se2huH2 alexander0derevianko@gmail.com"
];
shell = pkgs.zsh;
};
environment.systemPackages = with pkgs; [
@@ -1,13 +1,14 @@
{ config, pkgs, extraHomeModules, inputs, lib, ... }:
{ config, pkgs, extraHomeModules, inputs, lib, username, ... }:
let
username = "susano";
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
in {
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./disko-config.nix
[
../../minimal.nix
../hardware-configuration.nix
../disko-config.nix
];
nixpkgs = {
@@ -87,8 +88,6 @@ in {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBcGhVpjmWEw1GEw0y/ysJPa2v3+u/Rt/iES/Se2huH2 alexander0derevianko@gmail.com"
];
shell = pkgs.zsh;
};
environment.systemPackages = with pkgs; [