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
+12 -12
View File
@@ -19,21 +19,21 @@
{
nixosConfigurations = {
laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./hosts/laptop/configuration.nix
home-manager.nixosModules.default
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./hosts/laptop/configuration.nix
home-manager.nixosModules.default
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
{
home-manager.useGlobalPkgs = 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
}
+11 -11
View File
@@ -26,15 +26,15 @@
source ${pkgs.carapace}/share/bash/carapace.bash
export EDITOR=nvim
'';
};
# Just to make sure pkgs are installed
home.packages = with pkgs; [
bat
eza
zoxide
carapace
neovim
kubectl
];
}
}
# Just to make sure pkgs are installed
home.packages = with pkgs; [
bat
eza
zoxide
carapace
neovim
kubectl
];
}
+2 -15
View File
@@ -8,10 +8,11 @@
{
imports = [
./hardware-configuration.nix
../../modules/virtualization
];
boot = {
loader = {
grub = {
enable = true;
@@ -41,13 +42,10 @@
isNormalUser = true;
extraGroups = [
"wheel"
"libvirtd"
"kvm"
];
};
programs.firefox.enable = true;
programs.virt-manager.enable = true;
programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
@@ -69,17 +67,6 @@
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.code-server = {
enable = true;
+31 -17
View File
@@ -1,32 +1,46 @@
# 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, ... }:
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [
(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.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/38bebcad-2550-4dd2-88af-4fbce1c0c905";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/38bebcad-2550-4dd2-88af-4fbce1c0c905";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/59D6-6348";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/398298a3-c3df-45fb-9667-fbee66cdb40f"; }
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/59D6-6348";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/398298a3-c3df-45fb-9667-fbee66cdb40f"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
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;
virtualisation.libvirtd.qemu = {
ovmf.enable = true;
swtpm.enable = true;
};