Initial commit
This commit is contained in:
11
hosts/nix-axolotsh/configuration.nix
Normal file
11
hosts/nix-axolotsh/configuration.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ config, pkgs, ... } : {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./index.nix
|
||||
];
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
networking.hostName = "nix-axolotsh";
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
41
hosts/nix-axolotsh/disko.nix
Normal file
41
hosts/nix-axolotsh/disko.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
type = "disk";
|
||||
device = "/dev/sda";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
ESP = {
|
||||
size = "256M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
};
|
||||
};
|
||||
|
||||
swap = {
|
||||
size = "4G";
|
||||
content = {
|
||||
type = "swap";
|
||||
resumeDevice = true;
|
||||
};
|
||||
};
|
||||
|
||||
root = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
6
hosts/nix-axolotsh/firewall.nix
Normal file
6
hosts/nix-axolotsh/firewall.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ ... } : {
|
||||
networking.firewall.enable = false;
|
||||
|
||||
# networking.firewall.allowedTCPPorts = [ ];
|
||||
# networking.firewall.allowedUDPPorts = [ ];
|
||||
}
|
||||
19
hosts/nix-axolotsh/index.nix
Normal file
19
hosts/nix-axolotsh/index.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ self, ... } : {
|
||||
imports = [
|
||||
"${self}/modules/system/boot/grub-efi.nix"
|
||||
|
||||
"${self}/modules/system/filesystem.nix"
|
||||
"${self}/modules/system/experimental-features.nix"
|
||||
"${self}/modules/system/unfree.nix"
|
||||
|
||||
"${self}/modules/system/localization.nix"
|
||||
|
||||
"${self}/modules/packages.nix"
|
||||
|
||||
"${self}/modules/openssh.nix"
|
||||
"${self}/modules/vscode-server.nix"
|
||||
|
||||
./users.nix
|
||||
./firewall.nix
|
||||
];
|
||||
}
|
||||
3
hosts/nix-axolotsh/users.nix
Normal file
3
hosts/nix-axolotsh/users.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{ self, ... } : {
|
||||
imports = [ "${self}/modules/system/default-user.nix" ];
|
||||
}
|
||||
Reference in New Issue
Block a user