mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: loose changes...?
This commit is contained in:
parent
32588d7074
commit
61143478c8
11 changed files with 232 additions and 10 deletions
|
|
@ -72,11 +72,21 @@ in {
|
||||||
"--ozone-platform=wayland"
|
"--ozone-platform=wayland"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
command = [
|
||||||
|
"${getExe' config.programs.thunderbird.package "thunderbird"}"
|
||||||
|
];
|
||||||
|
}
|
||||||
{
|
{
|
||||||
command = [
|
command = [
|
||||||
"${getExe' pkgs.udiskie "udiskie"}"
|
"${getExe' pkgs.udiskie "udiskie"}"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
command = [
|
||||||
|
"${getExe' pkgs.easyeffects "easyeffects"}"
|
||||||
|
];
|
||||||
|
}
|
||||||
{
|
{
|
||||||
command = [
|
command = [
|
||||||
"${getExe pkgs.pasystray}"
|
"${getExe pkgs.pasystray}"
|
||||||
|
|
|
||||||
|
|
@ -38,12 +38,14 @@ in {
|
||||||
"Mod+D".action = sh ''${getExe config.programs.fuzzel.package} -T "${getExe config.programs.alacritty.package} --command"'';
|
"Mod+D".action = sh ''${getExe config.programs.fuzzel.package} -T "${getExe config.programs.alacritty.package} --command"'';
|
||||||
"Mod+Escape".action = sh ''${getExe config.programs.wlogout.package} -p layer-shell'';
|
"Mod+Escape".action = sh ''${getExe config.programs.wlogout.package} -p layer-shell'';
|
||||||
"Mod+Shift+Escape".action = sh ''${getExe config.programs.swaylock.package} -f'';
|
"Mod+Shift+Escape".action = sh ''${getExe config.programs.swaylock.package} -f'';
|
||||||
"Alt+Tab" = {
|
"Mod+Alt+Tab" = {
|
||||||
repeat = false;
|
#repeat = false;
|
||||||
|
cooldown-ms = 150;
|
||||||
action.spawn = ["${getExe' pkgs.glib "gdbus"}" "call" "--session" "--dest" "io.github.isaksamsten.Niriswitcher" "--object-path" "/io/github/isaksamsten/Niriswitcher" "--method" "io.github.isaksamsten.Niriswitcher.application"];
|
action.spawn = ["${getExe' pkgs.glib "gdbus"}" "call" "--session" "--dest" "io.github.isaksamsten.Niriswitcher" "--object-path" "/io/github/isaksamsten/Niriswitcher" "--method" "io.github.isaksamsten.Niriswitcher.application"];
|
||||||
};
|
};
|
||||||
"Alt+Shift+Tab" = {
|
"Mod+Alt+Shift+Tab" = {
|
||||||
repeat = false;
|
cooldown-ms = 150;
|
||||||
|
#repeat = false;
|
||||||
action.spawn = ["${getExe' pkgs.glib "gdbus"}" "call" "--session" "--dest" "io.github.isaksamsten.Niriswitcher" "--object-path" "/io/github/isaksamsten/Niriswitcher" "--method" "io.github.isaksamsten.Niriswitcher.application"];
|
action.spawn = ["${getExe' pkgs.glib "gdbus"}" "call" "--session" "--dest" "io.github.isaksamsten.Niriswitcher" "--object-path" "/io/github/isaksamsten/Niriswitcher" "--method" "io.github.isaksamsten.Niriswitcher.application"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@ in {
|
||||||
chat = {};
|
chat = {};
|
||||||
vidya = {};
|
vidya = {};
|
||||||
media = {};
|
media = {};
|
||||||
|
audio = {};
|
||||||
};
|
};
|
||||||
environment = {
|
environment = {
|
||||||
MOZ_ENABLE_WAYLAND = "1";
|
MOZ_ENABLE_WAYLAND = "1";
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,21 @@ _: {
|
||||||
layer-shell = true;
|
layer-shell = true;
|
||||||
layer = "overlay";
|
layer = "overlay";
|
||||||
control-center-layer = "top";
|
control-center-layer = "top";
|
||||||
|
widgets = [ "mpris" "dnd" "title" "notifications" "inhibitors" "backlight" "volume" ];
|
||||||
|
widget-config = {
|
||||||
|
title = {
|
||||||
|
text = "Notifications";
|
||||||
|
clear-all-button = true;
|
||||||
|
button-text = "";
|
||||||
|
};
|
||||||
|
dnd = {
|
||||||
|
text = " DND";
|
||||||
|
};
|
||||||
|
mpris = {
|
||||||
|
image-size = 60;
|
||||||
|
image-radius = 12;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,11 @@ _: {
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
matches = [{app-id = "^firefox$";}];
|
matches = [
|
||||||
|
{app-id = "^firefox$";}
|
||||||
|
{app-id = "^zen-beta$";}
|
||||||
|
{app-id = "^zen$";}
|
||||||
|
];
|
||||||
open-on-workspace = "browser";
|
open-on-workspace = "browser";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
@ -22,18 +26,40 @@ _: {
|
||||||
{app-id = "^vesktop$";}
|
{app-id = "^vesktop$";}
|
||||||
{app-id = "^discord$";}
|
{app-id = "^discord$";}
|
||||||
{app-id = "^org.telegram.desktop$";}
|
{app-id = "^org.telegram.desktop$";}
|
||||||
|
{app-id = "^Signal$";}
|
||||||
];
|
];
|
||||||
open-on-workspace = "chat";
|
open-on-workspace = "chat";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
matches = [{app-id = "^steam_app_default$";}];
|
matches = [
|
||||||
|
{app-id = "^steam_app_default$";}
|
||||||
|
{app-id = "^net.lutris.Lutris$";}
|
||||||
|
];
|
||||||
open-on-workspace = "vidya";
|
open-on-workspace = "vidya";
|
||||||
open-floating = true;
|
open-floating = true;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
matches = [{app-id = "^spotify$";}];
|
matches = [
|
||||||
|
{app-id = "^spotify$";}
|
||||||
|
{title = "^ncspot$";}
|
||||||
|
];
|
||||||
open-on-workspace = "media";
|
open-on-workspace = "media";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
matches = [
|
||||||
|
{app-id = "^thunderbird$";}
|
||||||
|
];
|
||||||
|
open-on-workspace = "mail";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [
|
||||||
|
{app-id="^com.github.wwmm.easyeffects$";}
|
||||||
|
{app-id="^.blueman-manager-wrapped$";}
|
||||||
|
{app-id="^org.pulseaudio.pavucontrol$";}
|
||||||
|
{app-id="^com.saivert.pwvucontrol$";}
|
||||||
|
];
|
||||||
|
open-on-workspace = "audio";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
matches = [
|
matches = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,12 @@
|
||||||
dark = "MoreWaita";
|
dark = "MoreWaita";
|
||||||
package = pkgs.morewaita-icon-theme;
|
package = pkgs.morewaita-icon-theme;
|
||||||
};
|
};
|
||||||
|
opacity = {
|
||||||
|
desktop = 1.0;
|
||||||
|
applications = 1.0;
|
||||||
|
terminal = 0.8;
|
||||||
|
popups = 0.8;
|
||||||
|
};
|
||||||
fonts = {
|
fonts = {
|
||||||
sansSerif = {
|
sansSerif = {
|
||||||
name = "Jost";
|
name = "Jost";
|
||||||
|
|
@ -32,6 +38,6 @@
|
||||||
};
|
};
|
||||||
autoEnable = true;
|
autoEnable = true;
|
||||||
polarity = "light";
|
polarity = "light";
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/sakura.yaml";
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/rose-pine-dawn.yaml";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,8 @@
|
||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.alacritty-graphics;
|
package = pkgs.alacritty-graphics;
|
||||||
|
settings = {
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
autoEnable = true;
|
autoEnable = true;
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/sakura.yaml";
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/rose-pine-dawn.yaml";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,8 @@
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
|
wine
|
||||||
|
wine64
|
||||||
vkbasalt
|
vkbasalt
|
||||||
mangohud
|
mangohud
|
||||||
umu-launcher
|
umu-launcher
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
services.solaar = {
|
services.solaar = {
|
||||||
enable = true;
|
enable = truem
|
||||||
window = "hide";
|
window = "hide";
|
||||||
package = pkgs.solaar;
|
package = pkgs.solaar;
|
||||||
batteryIcons = "regular";
|
batteryIcons = "regular";
|
||||||
|
|
|
||||||
157
systems/katvm.nix
Normal file
157
systems/katvm.nix
Normal file
|
|
@ -0,0 +1,157 @@
|
||||||
|
_: let
|
||||||
|
hostConfig = {
|
||||||
|
tree,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.attrsets) nameValuePair listToAttrs;
|
||||||
|
datasets = [
|
||||||
|
"root"
|
||||||
|
"nix"
|
||||||
|
"games"
|
||||||
|
"home"
|
||||||
|
"var"
|
||||||
|
];
|
||||||
|
datasetEntry = dataset:
|
||||||
|
nameValuePair (
|
||||||
|
if dataset == "root"
|
||||||
|
then "/"
|
||||||
|
else "/${dataset}"
|
||||||
|
) {
|
||||||
|
device = "zpool/${dataset}";
|
||||||
|
fsType = "zfs";
|
||||||
|
options = ["zfsutil"];
|
||||||
|
};
|
||||||
|
datasetEntries = listToAttrs (map datasetEntry datasets);
|
||||||
|
|
||||||
|
drives = {
|
||||||
|
boot = rec {
|
||||||
|
raw = "/dev/disk/by-uuid/BEDB-489E";
|
||||||
|
result = {
|
||||||
|
device = raw;
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
swap = rec {
|
||||||
|
raw = "/dev/disk/by-partuuid/cba02f4a-a90d-44e3-81a8-46bb4500112e";
|
||||||
|
result = {
|
||||||
|
device = raw;
|
||||||
|
randomEncryption = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
imports =
|
||||||
|
(with tree.nixos.hardware; [
|
||||||
|
])
|
||||||
|
++ (with tree.nixos.profiles; [
|
||||||
|
graphical
|
||||||
|
])
|
||||||
|
++ (with tree.nixos.environments; [
|
||||||
|
niri
|
||||||
|
]);
|
||||||
|
config = {
|
||||||
|
home-manager.users.kat = {
|
||||||
|
programs = {
|
||||||
|
konawall-py.settings = {
|
||||||
|
source = "konachan";
|
||||||
|
tags = [
|
||||||
|
"rating:s"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
imports =
|
||||||
|
(with tree.home.profiles; [
|
||||||
|
graphical
|
||||||
|
])
|
||||||
|
++ (with tree.home.environments; [
|
||||||
|
niri
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems =
|
||||||
|
datasetEntries
|
||||||
|
// {
|
||||||
|
"/boot" = drives.boot.result;
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
drives.swap.result
|
||||||
|
];
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
loader = {
|
||||||
|
grub.useOSProber = true;
|
||||||
|
systemd-boot.enable = lib.mkForce false;
|
||||||
|
};
|
||||||
|
extraModprobeConfig = "options snd_hda_intel power_save=0";
|
||||||
|
extraModulePackages = [config.boot.kernelPackages.v4l2loopback.out];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.scx = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.scx_git.full;
|
||||||
|
scheduler = "scx_lavd";
|
||||||
|
};
|
||||||
|
|
||||||
|
zramSwap.enable = true;
|
||||||
|
|
||||||
|
programs.ssh.extraConfig = ''
|
||||||
|
Host daiyousei-build
|
||||||
|
HostName 140.238.156.121
|
||||||
|
User root
|
||||||
|
IdentityAgent /run/user/1000/gnupg/S.gpg-agent.ssh
|
||||||
|
'';
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
buildMachines = [
|
||||||
|
{
|
||||||
|
hostName = "daiyousei-build";
|
||||||
|
system = "aarch64-linux";
|
||||||
|
protocol = "ssh-ng";
|
||||||
|
maxJobs = 100;
|
||||||
|
speedFactor = 1;
|
||||||
|
supportedFeatures = ["benchmark" "big-parallel" "kvm"];
|
||||||
|
mandatoryFeatures = [];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
distributedBuilds = true;
|
||||||
|
extraOptions = ''
|
||||||
|
builders-use-substitutes = true
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
# optional, useful when the builder has a faster internet connection than yours
|
||||||
|
services = {
|
||||||
|
printing.enable = true;
|
||||||
|
syncthing = {
|
||||||
|
enable = true;
|
||||||
|
openDefaultPorts = true;
|
||||||
|
user = "kat";
|
||||||
|
dataDir = "/home/kat";
|
||||||
|
};
|
||||||
|
hardware.bolt.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
supportedFilesystems = ["ntfs" "xfs"];
|
||||||
|
};
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
hostId = "9ef75c48";
|
||||||
|
useDHCP = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "24.05";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
arch = "x86_64";
|
||||||
|
ci.enable = false; # Closure too large
|
||||||
|
type = "NixOS";
|
||||||
|
modules = [
|
||||||
|
hostConfig
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue