feat: add kumatani host, add kanshi profile

This commit is contained in:
2025-06-26 22:47:17 -07:00
parent 142f4f0dab
commit 42f13ee16f
4 changed files with 160 additions and 3 deletions

View File

@@ -0,0 +1,76 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{
config,
lib,
pkgs,
meta,
...
}:
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
];
boot.loader.grub = {
enable = true;
efiSupport = true;
device = "nodev";
efiInstallAsRemovable = true;
};
networking.hostName = meta.hostname;
networking.networkmanager.enable = true;
hardware.bluetooth.enable = true;
hardware.nvidia = {
modesetting.enable = true;
open = true;
videoAcceleration = true;
};
time.timeZone = "America/Vancouver";
i18n.defaultLocale = "en_US.UTF-8";
services.pipewire = {
enable = true;
pulse.enable = true;
};
security.sudo = {
enable = true;
wheelNeedsPassword = false;
};
desktop.enable = true;
kanata.enable = true;
users.users.luca = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
shell = pkgs.zsh;
packages = with pkgs; [
tree
];
hashedPassword = config.hashedPassword;
openssh.authorizedKeys.keys = config.authorized_ssh;
};
hardware.graphics.enable = true;
environment.sessionVariables = {
WLR_NO_HARDWARE_CURSORS = "1";
NIXOS_OZONE_WL = "1";
};
services.flatpak.enable = true;
environment.systemPackages =
with pkgs;
config.commonPackages
++ [
];
services.openssh.enable = true;
system.stateVersion = "25.11";
}

View File

@@ -0,0 +1,39 @@
# 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 + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/d751775f-e83d-4230-9228-d1b58c5cc534";
fsType = "btrfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/5C2F-86EC";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
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.enp5s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}