diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-14 20:38:36 -0400 | 
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-14 20:38:36 -0400 | 
| commit | 38f367edeb21e222cbc185b21fdc14b2b86de4c1 (patch) | |
| tree | 788c87dd187471c15b86a1ebda6204162b5478c5 /machines/owo | |
| parent | b2187654d3b7670ae8dd9038b4391435d8ced6e1 (diff) | |
add owo
Diffstat (limited to '')
| -rw-r--r-- | machines/owo/configuration.nix | 35 | ||||
| -rw-r--r-- | machines/owo/hardware-configuration.nix | 56 | ||||
| -rw-r--r-- | machines/owo/home.nix | 28 | 
3 files changed, 119 insertions, 0 deletions
| diff --git a/machines/owo/configuration.nix b/machines/owo/configuration.nix new file mode 100644 index 0000000..162fa63 --- /dev/null +++ b/machines/owo/configuration.nix @@ -0,0 +1,35 @@ +{ lib, inputs, pkgs, ... }: + +{ +  imports = [ +    ./hardware-configuration.nix +    inputs.home-manager.nixosModules.default +  ] ++ (map (path: ../../modules/${path}) [ +    "core/global.nix" +    "ssh.nix" +    "compromyse.nix" +  ]); + +  networking.hostName = "owo"; + +  boot.loader.grub = { +    enable = true; +    forceInstall = true; +    device = "/dev/sda"; +  }; + +  networking.firewall = { +    enable = lib.mkForce true; +    allowedTCPPorts = [ 80 443 22 ]; +  }; + +  programs.fuse.userAllowOther = true; +  home-manager = { +    extraSpecialArgs = { inherit inputs; }; +    useGlobalPkgs = true; +    useUserPackages = true; +    users = { +      compromyse = import ./home.nix; +    }; +  }; +} diff --git a/machines/owo/hardware-configuration.nix b/machines/owo/hardware-configuration.nix new file mode 100644 index 0000000..b10d174 --- /dev/null +++ b/machines/owo/hardware-configuration.nix @@ -0,0 +1,56 @@ +# 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 + "/profiles/qemu-guest.nix") +    ]; + +  boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; +  boot.initrd.kernelModules = [ ]; +  boot.kernelModules = [ ]; +  boot.extraModulePackages = [ ]; + +  fileSystems."/" = +    { device = "/dev/disk/by-uuid/f321b489-3003-4d4a-8e86-0eee0584e0f6"; +      fsType = "btrfs"; +      options = [ "subvol=root" ]; +    }; + +  fileSystems."/boot" = +    { device = "/dev/disk/by-uuid/f321b489-3003-4d4a-8e86-0eee0584e0f6"; +      fsType = "btrfs"; +      options = [ "subvol=boot" ]; +    }; + +  fileSystems."/home" = +    { device = "/dev/disk/by-uuid/f321b489-3003-4d4a-8e86-0eee0584e0f6"; +      fsType = "btrfs"; +      options = [ "subvol=home" ]; +    }; + +  fileSystems."/nix" = +    { device = "/dev/disk/by-uuid/f321b489-3003-4d4a-8e86-0eee0584e0f6"; +      fsType = "btrfs"; +      options = [ "subvol=nix" ]; +    }; + +  fileSystems."/config" = +    { device = "/dev/disk/by-uuid/f321b489-3003-4d4a-8e86-0eee0584e0f6"; +      fsType = "btrfs"; +      options = [ "subvol=config" ]; +    }; + +  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.enp1s0.useDHCP = lib.mkDefault true; + +  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +} diff --git a/machines/owo/home.nix b/machines/owo/home.nix new file mode 100644 index 0000000..647aed2 --- /dev/null +++ b/machines/owo/home.nix @@ -0,0 +1,28 @@ +{ inputs, pkgs, ... }: + +{ +  home = { +    username = "compromyse"; +    homeDirectory = "/home/compromyse"; +  }; + +  home.packages = with pkgs; [ +    tmux +    fzf +    fd +    ripgrep +    jq + +    unzip +    zip +  ]; + +  imports = (map (path: ../../config/${path}) [ +    "bash.nix" +    "dotfiles.nix" +    "git" +    "nvim" +  ]); + +  home.stateVersion = "23.11"; +} | 
