update dayo

This commit is contained in:
2025-02-08 10:44:12 -05:00
parent 6672ed061a
commit 1916695202
7 changed files with 138 additions and 69 deletions

47
flake.lock generated
View File

@@ -23,11 +23,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1721135958, "lastModified": 1737630279,
"narHash": "sha256-H548rpPMsn25LDKn1PCFmPxmWlClJJGnvdzImHkqjuY=", "narHash": "sha256-wJQCxyMRc4P26zDrHmZiRD5bbfcJpqPG3e2djdGG3pk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "afd2021bedff2de92dfce0e257a3d03ae65c603d", "rev": "0db5c8bfcce78583ebbde0b2abbc95ad93445f7c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -36,13 +36,35 @@
"type": "github" "type": "github"
} }
}, },
"kmonad": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"dir": "nix",
"lastModified": 1738565510,
"narHash": "sha256-xmr17yq6/wlcF/69GkRlKKkWAUC8ZjPeZMIuHdJnpfk=",
"owner": "kmonad",
"repo": "kmonad",
"rev": "7784e590405429f5105d9d038cbe13f887160805",
"type": "github"
},
"original": {
"dir": "nix",
"owner": "kmonad",
"repo": "kmonad",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1721379653, "lastModified": 1737469691,
"narHash": "sha256-8MUgifkJ7lkZs3u99UDZMB4kbOxvMEXQZ31FO3SopZ0=", "narHash": "sha256-nmKOgAU48S41dTPIXAq0AHZSehWUn6ZPrUKijHAMmIk=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1d9c2c9b3e71b9ee663d11c5d298727dace8d374", "rev": "9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -71,6 +93,7 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"kmonad": "kmonad",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"spicetify-nix": "spicetify-nix", "spicetify-nix": "spicetify-nix",
"zen-browser": "zen-browser" "zen-browser": "zen-browser"
@@ -84,11 +107,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1737087380, "lastModified": 1737605771,
"narHash": "sha256-T3WB7rwWDT8cWrwLR7fRRZ1gkgbk3A3dzefEfuGdMxk=", "narHash": "sha256-iQoI2+DTwZwLryi8sYn/xSXMmUxglmA2k8/2VflgrJI=",
"owner": "Gerg-L", "owner": "Gerg-L",
"repo": "spicetify-nix", "repo": "spicetify-nix",
"rev": "6510ffbf4e3f9116923632da1e63e9a959d8aa94", "rev": "bd69e9e814233746ae4c3165df10607624b7d9c5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -102,11 +125,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1736824652, "lastModified": 1737573247,
"narHash": "sha256-8J56ngRvKVvCxdY3iDtol/9UAJfwCh0k96DnyNchUCA=", "narHash": "sha256-qYr17CTrtmudrwcDXBZjgZM6E8elQ8O7SfMhmZj7x00=",
"owner": "0xc000022070", "owner": "0xc000022070",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "a17923b5fd758700c67afdaae2a1d3123381f96b", "rev": "c3ea41c78e72866919a46116a5231c4e92062327",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -18,15 +18,23 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
kmonad = {
url = "github:kmonad/kmonad?dir=nix";
inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { self, nixpkgs, ... }@inputs: { };
outputs = { self, nixpkgs, kmonad, ... }@inputs: {
nixosConfigurations.default = nixpkgs.lib.nixosSystem { nixosConfigurations.default = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
modules = [ modules = [
./hosts/kiara/configuration.nix ./hosts/kiara/configuration.nix
inputs.home-manager.nixosModules.default kmonad.nixosModules.default
# inputs.home-manager.nixosModules.default
]; ];
}; };
}; };

View File

@@ -10,6 +10,8 @@
./hardware-configuration.nix ./hardware-configuration.nix
inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
../../mods/vm.nix ../../mods/vm.nix
../../mods/mini-spice.nix
# ../../mods/kmonad.nix
inputs.spicetify-nix.nixosModules.default inputs.spicetify-nix.nixosModules.default
]; ];
@@ -17,23 +19,25 @@
vm.enable = true; # vm.enable = true;
# Bootloader. # Bootloader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sdb"; boot = {
boot.loader.grub.useOSProber = true; loader.grub.enable = true;
loader.grub.device = "/dev/sdb";
loader.grub.useOSProber = true;
# IOMMU # IOMMU
boot.kernelParams = [ "intel_iommu=on" ]; kernelParams = [ "intel_iommu=on" ];
boot.kernelModules = [ "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" "v4l2loopback" ]; kernelModules = [ "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" "v4l2loopback" ];
boot.blacklistedKernelModules = [ "nvidia" "nouveau" ]; blacklistedKernelModules = [ "nvidia" "nouveau" ];
boot.extraModprobeConfig = '' extraModprobeConfig = ''
options vfio-pci ids=10de:22bc,10de:2786 options vfio-pci ids=10de:22bc,10de:2786
options v4l2loopback exclusive_caps=1 options v4l2loopback exclusive_caps=1
''; '';
boot.extraModulePackages = [ pkgs.linuxPackages.v4l2loopback ]; extraModulePackages = [ pkgs.linuxPackages.v4l2loopback ];
};
networking.hostName = "kiara"; # Define your hostname. networking.hostName = "kiara"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@@ -55,7 +59,7 @@
fileSystems."/mnt/apricot" = { fileSystems."/mnt/apricot" = {
device = "192.168.4.191:/mnt/apricot" ; device = "192.168.4.194:/mnt/apricot" ;
fsType = "nfs" ; fsType = "nfs" ;
options = [ "x-systemd.automount" "noauto" ]; options = [ "x-systemd.automount" "noauto" ];
}; };
@@ -88,13 +92,6 @@
# Enable the GNOME Desktop Environment. # Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true; services.xserver.displayManager.gdm.enable = true;
# services.xserver.desktopManager.gnome.enable = true;
# Configure keymap in X11
#services.xserver = {
# layout = "us";
# xkbVariant = "";
#};
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = true;
@@ -117,12 +114,12 @@
ROC_ENABLE_PRE_VEGA = "1"; ROC_ENABLE_PRE_VEGA = "1";
}; };
hardware.opengl.extraPackages = with pkgs; [ # hardware.graphics.extraPackages = with pkgs; [
rocmPackages.clr.icd # rocmPackages.clr.icd
]; # ];
services.udisks2.enable = true;
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true; # services.xserver.libinput.enable = true;
@@ -137,8 +134,6 @@
]; ];
}; };
# Install firefox.
#programs.firefox.enable = true;
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@@ -160,31 +155,31 @@
# spicetify-nix # spicetify-nix
#
programs.spicetify = # programs.spicetify =
let # let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system}; # spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
in # in
{ # {
enable = true; # enable = true;
#
#enabledExtensions = with spicePkgs.extensions; [ # #enabledExtensions = with spicePkgs.extensions; [
# adblock # # adblock
# hidePodcasts # # hidePodcasts
# shuffle # shuffle+ (special characters are sanitized out of extension names) # # shuffle # shuffle+ (special characters are sanitized out of extension names)
#]; # #];
#enabledCustomApps = with spicePkgs.apps; [ # #enabledCustomApps = with spicePkgs.apps; [
# newReleases # # newReleases
# ncsVisualizer # # ncsVisualizer
#]; # #];
#enabledSnippets = with spicePkgs.snippets; [ # #enabledSnippets = with spicePkgs.snippets; [
# rotatingCoverart # # rotatingCoverart
# pointer # # pointer
#]; # #];
#
theme = spicePkgs.themes.comfy; # theme = spicePkgs.themes.comfy;
colorScheme = "hikari"; # colorScheme = "hikari";
}; # };
@@ -214,7 +209,7 @@
waybar waybar
dunst dunst
wofi wofi
cinnamon.nemo nemo
btop btop
hashcat hashcat
git git
@@ -238,7 +233,7 @@
# linux-wallpaperengine # bug with freeimage-unstable with like 7 CVEs wait for patch # linux-wallpaperengine # bug with freeimage-unstable with like 7 CVEs wait for patch
libreoffice libreoffice
pasystray pasystray
syncthing-tray # syncthing-tray
udiskie udiskie
nm-tray nm-tray
# hyprpicker # hyprpicker
@@ -255,7 +250,7 @@
python3 python3
python311Packages.pip python311Packages.pip
pipes-rs pipes-rs
spicetify-cli # spicetify-cli
spotify spotify
obs-studio obs-studio
lsof lsof
@@ -301,6 +296,7 @@
looking-glass-client looking-glass-client
inputs.zen-browser.packages."${system}".default inputs.zen-browser.packages."${system}".default
tree tree
keyd
]; ];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are

16
mods/keyd.nix Normal file
View File

@@ -0,0 +1,16 @@
{
services.keyd = {
enable = true;
keyboards.default = {
"main" = {
rightbtn = "rightbtn"; # Keep normal RMB function
"shift+rightbtn" = "layer(rmb1, 250)"; # Start sequence only if Shift is held
};
"rmb1" = {
"shift+rightbtn" = "toggle(rightbtn)"; # Second press (Shift still held) toggles RMB
};
};
};
}

17
mods/kmonad.nix Normal file
View File

@@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
{
services.kmonad = {
enable = true;
keyboards = {
myKMonadOutput = {
device = "/dev/input/by-id/usb-SteelSeries_SteelSeries_Rival_5-if01-event-mouse";
config = builtins.readFile ../quirky/testing.kbd;
};
};
};
}

0
quirky/kmonad.kbd Normal file
View File

9
quirky/testing.kbd Normal file
View File

@@ -0,0 +1,9 @@
(defcfg
input (low-level-hook)
output (send-event-sink 300 100)
)
(defsrc q w e r t y lsft)
(deflayer base
q w e r t y lsft)