nix check works!!

This commit is contained in:
2026-06-18 19:03:46 -05:00
parent 9c395bd12c
commit 6de2694495
9 changed files with 95 additions and 56 deletions
+2 -2
View File
@@ -29,11 +29,11 @@
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.river = import ./hosts/laptop/home.nix; home-manager.users.river = import ./home;
} }
]; ];
}; };
} };
}; };
} }
+11
View File
@@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
imports = [
./programs/bash.nix
];
home.username = "river";
home.homeDirectory = "/home/river";
home.stateVersion = "26.05"; # Update this when changing nixpkgs releases
}
+1 -1
View File
@@ -26,6 +26,7 @@
source ${pkgs.carapace}/share/bash/carapace.bash source ${pkgs.carapace}/share/bash/carapace.bash
export EDITOR=nvim export EDITOR=nvim
''; '';
};
# Just to make sure pkgs are installed # Just to make sure pkgs are installed
home.packages = with pkgs; [ home.packages = with pkgs; [
@@ -37,4 +38,3 @@
kubectl kubectl
]; ];
} }
}
+1 -14
View File
@@ -8,6 +8,7 @@
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/virtualization
]; ];
boot = { boot = {
@@ -41,13 +42,10 @@
isNormalUser = true; isNormalUser = true;
extraGroups = [ extraGroups = [
"wheel" "wheel"
"libvirtd"
"kvm"
]; ];
}; };
programs.firefox.enable = true; programs.firefox.enable = true;
programs.virt-manager.enable = true;
programs.mtr.enable = true; programs.mtr.enable = true;
programs.gnupg.agent = { programs.gnupg.agent = {
enable = true; enable = true;
@@ -69,17 +67,6 @@
cmatrix cmatrix
]; ];
virtualization = {
libvirtd.enable = true;
spiceUSBRedirection.enable = true;
podman = {
enable = true;
dockerCompat = true; # lets you use `docker` commands → podman
defaultNetwork.settings.dns_enabled = true;
};
};
services.openssh.enable = true; services.openssh.enable = true;
services.code-server = { services.code-server = {
enable = true; enable = true;
+25 -11
View File
@@ -1,31 +1,45 @@
# 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, ... }: {
config,
lib,
pkgs,
modulesPath,
...
}:
{ {
imports = imports = [
[ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "uas" "sd_mod" ]; boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"uas"
"sd_mod"
];
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/38bebcad-2550-4dd2-88af-4fbce1c0c905"; device = "/dev/disk/by-uuid/38bebcad-2550-4dd2-88af-4fbce1c0c905";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/59D6-6348"; device = "/dev/disk/by-uuid/59D6-6348";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ]; options = [
"fmask=0022"
"dmask=0022"
];
}; };
swapDevices = swapDevices = [
[ { device = "/dev/disk/by-uuid/398298a3-c3df-45fb-9667-fbee66cdb40f"; } { device = "/dev/disk/by-uuid/398298a3-c3df-45fb-9667-fbee66cdb40f"; }
]; ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
View File
+8
View File
@@ -0,0 +1,8 @@
{ config, lib, ... }:
{
imports = [
./qemu.nix
./podman.nix
];
}
+20
View File
@@ -0,0 +1,20 @@
{
config,
lib,
pkgs,
...
}:
{
virtualisation.podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
users.users.river.extraGroups = [ "podman" ];
environment.systemPackages = with pkgs; [
podman
podman-compose
];
}
-1
View File
@@ -10,7 +10,6 @@
programs.virt-manager.enable = true; programs.virt-manager.enable = true;
virtualisation.libvirtd.qemu = { virtualisation.libvirtd.qemu = {
ovmf.enable = true;
swtpm.enable = true; swtpm.enable = true;
}; };