summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-30 22:59:46 -0700
committerFuwn <[email protected]>2024-09-30 22:59:46 -0700
commit9b23880767f709a531cc1caf115570139ad27dff (patch)
tree2979d1c9920bbf803c2acee522ae866a16ad3b47 /hosts
parentebisu: fix fina ip (diff)
downloadnixos-config-9b23880767f709a531cc1caf115570139ad27dff.tar.xz
nixos-config-9b23880767f709a531cc1caf115570139ad27dff.zip
hosts: add fina
Diffstat (limited to 'hosts')
-rw-r--r--hosts/default.nix18
-rw-r--r--hosts/fina/default.nix69
-rw-r--r--hosts/fina/hardware-configuration.nix80
3 files changed, 167 insertions, 0 deletions
diff --git a/hosts/default.nix b/hosts/default.nix
index bb94007..394cd2e 100644
--- a/hosts/default.nix
+++ b/hosts/default.nix
@@ -55,5 +55,23 @@ in
sops-nix.nixosModules.sops
];
};
+
+ fina = nixosSystem {
+ modules = [ ./fina ];
+
+ pkgs =
+ (kansaiPkgs {
+ nixpkgsAllowUnfree = true;
+ })."x86_64-linux";
+
+ specialArgs = {
+ inherit
+ inputs
+ outputs
+ secrets
+ self
+ ;
+ };
+ };
};
}
diff --git a/hosts/fina/default.nix b/hosts/fina/default.nix
new file mode 100644
index 0000000..28a8705
--- /dev/null
+++ b/hosts/fina/default.nix
@@ -0,0 +1,69 @@
+{
+ pkgs,
+ ...
+}:
+{
+ imports = [
+ ./hardware-configuration.nix
+ ];
+
+ time.timeZone = "America/Los_Angeles";
+ i18n.defaultLocale = "en_US.UTF-8";
+ console.keyMap = "us";
+ system.stateVersion = "24.05";
+
+ boot = {
+ loader.systemd-boot.enable = true;
+ loader.efi.canTouchEfiVariables = true;
+ };
+
+ networking = {
+ hostName = "fina";
+ networkmanager.enable = true;
+ };
+
+ services = {
+ desktopManager.plasma6.enable = true;
+ printing.enable = true;
+ libinput.enable = true;
+
+ displayManager.sddm = {
+ enable = true;
+ wayland.enable = true;
+ };
+
+ xserver.xkb = {
+ layout = "us";
+ options = "caps:escape";
+ };
+
+ pipewire = {
+ enable = true;
+ pulse.enable = true;
+ };
+
+ openssh = {
+ enable = true;
+ settings.PermitRootLogin = "yes";
+ };
+ };
+
+ users.users.ebisu = {
+ isNormalUser = true;
+ extraGroups = [ "wheel" ];
+ };
+
+ environment.systemPackages = with pkgs; [
+ vim
+ wget
+ ];
+
+ programs = {
+ mtr.enable = true;
+
+ gnupg.agent = {
+ enable = true;
+ enableSSHSupport = true;
+ };
+ };
+}
diff --git a/hosts/fina/hardware-configuration.nix b/hosts/fina/hardware-configuration.nix
new file mode 100644
index 0000000..a264937
--- /dev/null
+++ b/hosts/fina/hardware-configuration.nix
@@ -0,0 +1,80 @@
+{
+ config,
+ lib,
+ modulesPath,
+ ...
+}:
+let
+ nixosDevice = "/dev/disk/by-uuid/78655110-4037-4b06-9407-f155c595c3a3";
+
+ btrfsOptions = [
+ "compress-force=zstd:1"
+ "noatime"
+ "discard=async"
+ "space_cache=v2"
+ ];
+in
+{
+ imports = [
+ (modulesPath + "/installer/scan/not-detected.nix")
+ ];
+
+ swapDevices = [ ];
+ networking.useDHCP = lib.mkDefault true;
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+
+ boot = {
+ kernelModules = [ "kvm-amd" ];
+ extraModulePackages = [ ];
+
+ initrd = {
+ kernelModules = [ ];
+
+ availableKernelModules = [
+ "nvme"
+ "xhci_pci"
+ "ahci"
+ "usb_storage"
+ "sd_mod"
+ "rtsx_usb_sdmmc"
+ ];
+ };
+ };
+
+ fileSystems = {
+ "/" = {
+ device = nixosDevice;
+ fsType = "btrfs";
+ options = btrfsOptions ++ [ "subvol=@" ];
+ };
+
+ "/home" = {
+ device = nixosDevice;
+ fsType = "btrfs";
+ options = btrfsOptions ++ [ "subvol=@home" ];
+ };
+
+ "/var" = {
+ device = nixosDevice;
+ fsType = "btrfs";
+ options = btrfsOptions ++ [ "subvol=@var" ];
+ };
+
+ "/nix" = {
+ device = nixosDevice;
+ fsType = "btrfs";
+ options = btrfsOptions ++ [ "subvol=@nix" ];
+ };
+
+ "/boot" = {
+ device = "/dev/disk/by-uuid/5B1D-BD89";
+ fsType = "vfat";
+
+ options = [
+ "fmask=0022"
+ "dmask=0022"
+ ];
+ };
+ };
+}