no clue really

This commit is contained in:
2025-07-09 11:46:32 -05:00
parent 773eaaf26d
commit ce38e52ee9
21 changed files with 99 additions and 121 deletions

View File

@@ -14,22 +14,23 @@
}; };
}; };
outputs = { self, nixpkgs, ... } @ inputs: outputs =
let { self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux"; system = "x86_64-linux";
username = "poslop"; username = "poslop";
in in
{ {
nixosConfigurations = { nixosConfigurations = {
nixos-vm2 = nixpkgs.lib.nixosSystem { nixos-vm2 = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ ./hosts/nixos-vm2/configuration.nix ]; modules = [ ./hosts/nixos-vm2/configuration.nix ];
specialArgs = { specialArgs = {
host = "nixos-vm2"; host = "nixos-vm2";
inherit self inputs username; inherit self inputs username;
};
}; };
}; };
};
}; };
} }

View File

@@ -1,17 +1,19 @@
{ config, lib, pkgs, ... }: {
pkgs,
...
}:
{ {
nix.settings = { nix.settings = {
experimental-features = "nix-command flakes"; experimental-features = "nix-command flakes";
}; };
imports = imports = [
[ ./hardware-configuration.nix
./hardware-configuration.nix ./modules
./modules ];
];
programs.hyprland.enable = true;
programs.hyprland.enable = true;
boot.loader.grub.enable = true; boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda"; boot.loader.grub.device = "/dev/vda";
@@ -27,14 +29,6 @@
pulse.enable = true; pulse.enable = true;
}; };
users.users.poslop = {
isNormalUser = true;
extraGroups = [ "wheel" ];
packages = with pkgs; [
tree
];
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
kitty kitty
vim vim
@@ -46,4 +40,3 @@
system.stateVersion = "24.11"; system.stateVersion = "24.11";
} }

View File

@@ -1,26 +1,32 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }: {
lib,
modulesPath,
...
}:
{ {
imports = imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ]; boot.initrd.availableKernelModules = [
"ahci"
"xhci_pci"
"virtio_pci"
"sr_mod"
"virtio_blk"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/39b3801f-ffcd-421f-966f-46625fb8d4ca"; device = "/dev/disk/by-uuid/39b3801f-ffcd-421f-966f-46625fb8d4ca";
fsType = "ext4"; fsType = "ext4";
}; };
swapDevices = swapDevices = [ { device = "/dev/disk/by-uuid/7043d338-93f0-40a7-9033-6616685e32f3"; } ];
[ { device = "/dev/disk/by-uuid/7043d338-93f0-40a7-9033-6616685e32f3"; }
];
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;

View File

@@ -1,22 +1,20 @@
{ config, lib, pkgs, ... }: {
...
}:
{ {
imports = imports = [
[ ./hardware-configuration.nix
./hardware-configuration.nix ../../modules
../../modules ];
];
programs.hyprland.enable = true;
programs.hyprland.enable = true;
boot.loader.grub.enable = true; boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda"; boot.loader.grub.device = "/dev/vda";
services.spice-vdagentd.enable = true; services.spice-vdagentd.enable = true;
services.qemuGuest.enable = true; services.qemuGuest.enable = true;
system.stateVersion = "24.11"; system.stateVersion = "24.11";
} }

View File

@@ -1,26 +1,32 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }: {
lib,
modulesPath,
...
}:
{ {
imports = imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ]; boot.initrd.availableKernelModules = [
"ahci"
"xhci_pci"
"virtio_pci"
"sr_mod"
"virtio_blk"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/b8c66f3c-759d-4d4f-9d1a-3f2e04d91e23"; device = "/dev/disk/by-uuid/b8c66f3c-759d-4d4f-9d1a-3f2e04d91e23";
fsType = "ext4"; fsType = "ext4";
}; };
swapDevices = swapDevices = [ { device = "/dev/disk/by-uuid/b7d73851-7f85-44fa-b62a-e35deb0ea98a"; } ];
[ { device = "/dev/disk/by-uuid/b7d73851-7f85-44fa-b62a-e35deb0ea98a"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # 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 # (the default) this is the recommended approach. When using systemd-networkd it's

View File

@@ -11,4 +11,3 @@
./ssh.nix ./ssh.nix
]; ];
} }

View File

@@ -1,14 +1,13 @@
{ { inputs, username, lib, ... }:
inputs,
username,
...
}:
{ {
imports = [inputs.hjem.nixosModules.default]; imports = [
inputs.hjem.nixosModules.default
(lib.modules.mkAliasOptionModule ["hj"] ["hjem" "users" username])
];
config.hjem = { config.hjem = {
extraModules = [inputs.hjem-rum.hjemModules.default]; extraModules = [ inputs.hjem-rum.hjemModules.default ];
users.${username} = { users.${username} = {
enable = true; enable = true;

View File

@@ -1,7 +1,4 @@
{ { pkgs, ... }:
pkgs,
...
}:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
wl-clipboard wl-clipboard

View File

@@ -1,4 +1,4 @@
{ pkgs, lib, ... }: _:
{ {
programs.zsh.enable = true; programs.zsh.enable = true;
} }

View File

@@ -1,7 +1,4 @@
{ _:
pkgs,
...
}:
{ {
services.openssh = { services.openssh = {
enable = true; enable = true;

View File

@@ -1,3 +1 @@
{ { time.timeZone = "America/Chicago"; }
time.timeZone = "America/Chicago";
}

View File

@@ -1,17 +1,10 @@
{ { username, pkgs, ... }:
username,
pkgs,
...
}:
{ {
users.users.${username} = { users.users.${username} = {
isNormalUser = true; isNormalUser = true;
description = "${username}"; description = "${username}";
#group = "${username}"; extraGroups = [ "wheel" ];
extraGroups = [
"wheel"
];
shell = pkgs.zsh; shell = pkgs.zsh;
}; };
nix.settings.allowed-users = [ "@wheel" ]; nix.settings.allowed-users = [ "@wheel" ];

View File

@@ -1,6 +1,10 @@
{ config, pkgs, username, ... }:
{ {
config.hjem.users.username.rum.programs.git = { config,
username,
...
}:
{
hj.rum.programs.git = {
enable = true; enable = true;
settings = { settings = {
user = { user = {

View File

@@ -1,3 +1 @@
{ { programs.hyprland.enable = true; }
programs.hyprland.enable = true;
}

View File

@@ -1,5 +1 @@
{ { config.me.rum.programs.hyprland.settings.monitor = [ ", 1920x1080@60, auto, 1" ]; }
config.me.rum.programs.hyprland.settings.monitor = [
", 1920x1080@60, auto, 1"
];
}

View File

@@ -1,4 +1,4 @@
{ pkgs, inputs, ... }: _:
{ {
programs.neovim = { programs.neovim = {
enable = true; enable = true;

View File

@@ -1,7 +1,12 @@
{ config, pkgs, username, ... }: {
pkgs,
username,
...
}:
{ {
hjem.users.username.packages = with pkgs; [ hjem.users.${username}.packages = with pkgs; [
statix
git git
zsh zsh
neofetch neofetch

View File

@@ -1,7 +1,4 @@
{ _:
pkgs,
...
}:
{ {
services.openssh = { services.openssh = {
enable = true; enable = true;

View File

@@ -1,5 +1 @@
{ { imports = [ ./zsh.nix ]; }
imports = [
./zsh.nix
];
}

View File

@@ -1,6 +0,0 @@
{
programs.zsh.plugins = [
{
}
}

View File

@@ -1,5 +1,6 @@
{ username, ... }:
{ {
config.hjem.users.username.rum.programs.zsh = { config.hjem.users.${username}.rum.programs.zsh = {
enable = true; enable = true;
}; };
} }