first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ host, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
./system/hosts/${host}
|
||||
./system
|
||||
./programs
|
||||
];
|
||||
}
|
||||
Generated
+1031
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,106 @@
|
||||
{
|
||||
description = "LillyOS";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
zen-browser = {
|
||||
url = "github:0xc000022070/zen-browser-flake";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.home-manager.follows = "home-manager";
|
||||
};
|
||||
firefox-addons = {
|
||||
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
dms = {
|
||||
url = "github:duxlabs-dev/dux-shell/stable";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
|
||||
openlinkhub.url = "path:./pkgs/openlinkhub";
|
||||
artemisrgb.url = "path:./pkgs/artemis-rgb";
|
||||
aagl = {
|
||||
url = "github:ezKEa/aagl-gtk-on-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nixcord.url = "github:4evy/nixcord";
|
||||
catppuccin.url = "github:catppuccin/nix";
|
||||
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
|
||||
opendeck.url = "github:missmoode/nix-opendeck";
|
||||
millennium.url = "github:SteamClientHomebrew/Millennium?dir=packages/nix";
|
||||
launchy = {
|
||||
url = "github:Chloe-ko/Launchy";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
dfiles = {
|
||||
url = "github:duxlabs-dev/dux-files";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
volt-src = {
|
||||
url = "github:pythonlover02/volt-gui";
|
||||
flake = false;
|
||||
};
|
||||
volt-gui = {
|
||||
url = "github:keygenesis/volt-gui-nix";
|
||||
inputs.volt-src.follows = "volt-src";
|
||||
};
|
||||
cachyos-settings = {
|
||||
url = "github:Daaboulex/cachyos-settings-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
catppuccin,
|
||||
...
|
||||
} @inputs:
|
||||
let
|
||||
username = "lilly";
|
||||
prettyUsername = "Lilly";
|
||||
email = "lilly@hibana.me";
|
||||
system = "x86_64-linux";
|
||||
in
|
||||
{
|
||||
nixosConfigurations = nixpkgs.lib.genAttrs [ "lillypc" ] (host:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = {
|
||||
inherit inputs host username prettyUsername;
|
||||
};
|
||||
modules = [
|
||||
./configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
catppuccin.nixosModules.catppuccin
|
||||
({config, ...}: {
|
||||
home-manager = {
|
||||
useUserPackages = true;
|
||||
useGlobalPkgs = true;
|
||||
backupFileExtension = "backup";
|
||||
extraSpecialArgs = {
|
||||
inherit inputs host username prettyUsername email;
|
||||
nixosConfig = config;
|
||||
};
|
||||
users.${username} = {
|
||||
imports = [
|
||||
./home
|
||||
catppuccin.homeModules.catppuccin
|
||||
];
|
||||
home = {
|
||||
username = "${username}";
|
||||
homeDirectory = "/home/${username}";
|
||||
stateVersion = "26.05";
|
||||
};
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
});
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
|
||||
let
|
||||
artemis = inputs.artemisrgb.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||
|
||||
waitForOpenRGB = pkgs.writeShellScript "wait-for-openrgb" ''
|
||||
for _ in $(${pkgs.coreutils}/bin/seq 1 60); do
|
||||
if ${pkgs.netcat-openbsd}/bin/nc -z -w 1 127.0.0.1 6742 \
|
||||
&& ${pkgs.netcat-openbsd}/bin/nc -z -w 1 127.0.0.1 6743; then
|
||||
${pkgs.coreutils}/bin/sleep 5
|
||||
exit 0
|
||||
fi
|
||||
|
||||
${pkgs.coreutils}/bin/sleep 1
|
||||
done
|
||||
|
||||
echo "OpenRGB servers did not become available on ports 6742 and 6743" >&2
|
||||
exit 1
|
||||
'';
|
||||
in
|
||||
{
|
||||
systemd.user.services.artemis = {
|
||||
Unit = {
|
||||
Description = "Artemis RGB Controller";
|
||||
After = [ "graphical-session.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStartPre = "${waitForOpenRGB}";
|
||||
ExecStart = "${artemis}/bin/Artemis.UI.Linux --minimized";
|
||||
TimeoutStartSec = "65s";
|
||||
};
|
||||
|
||||
Install.WantedBy = [ "xdg-desktop-autostart.target" ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
catppuccin = {
|
||||
enable = true;
|
||||
autoEnable = true;
|
||||
cursors.enable = true;
|
||||
};
|
||||
|
||||
home.pointerCursor = {
|
||||
enable = true;
|
||||
gtk.enable = true;
|
||||
x11.enable = true;
|
||||
size = 24;
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland.settings.env = [
|
||||
{
|
||||
_args = [
|
||||
"XCURSOR_THEME"
|
||||
config.home.pointerCursor.name
|
||||
];
|
||||
}
|
||||
{
|
||||
_args = [
|
||||
"XCURSOR_SIZE"
|
||||
(toString config.home.pointerCursor.size)
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.btop = {
|
||||
enable = true;
|
||||
package = pkgs.btop.override {
|
||||
cudaSupport = true;
|
||||
rocmSupport = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
b = builtins;
|
||||
|
||||
module_files =
|
||||
b.readDir ./. |>
|
||||
lib.filterAttrs (name: type:
|
||||
( (lib.strings.hasSuffix ".nix" name
|
||||
&& name != "default.nix"
|
||||
&& type == "regular" )
|
||||
|| ( type == "directory"
|
||||
&& b.pathExists ./${name}/default.nix))
|
||||
) |>
|
||||
b.attrNames |>
|
||||
b.map (f: ./${f});
|
||||
in
|
||||
{
|
||||
imports = module_files;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
b = builtins;
|
||||
|
||||
module_files =
|
||||
b.readDir ./. |>
|
||||
lib.filterAttrs (name: type:
|
||||
( (lib.strings.hasSuffix ".nix" name
|
||||
&& name != "default.nix"
|
||||
&& type == "regular" )
|
||||
|| ( type == "directory"
|
||||
&& b.pathExists ./${name}/default.nix))
|
||||
) |>
|
||||
b.attrNames |>
|
||||
b.map (f: ./${f});
|
||||
in
|
||||
{
|
||||
imports = module_files;
|
||||
}
|
||||
@@ -0,0 +1,219 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
"$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/master/doc/json_schema.json";
|
||||
|
||||
logo = {
|
||||
type = "auto";
|
||||
#source = "~/.config/fastfetch/logo.jpg";
|
||||
source = ./logo.jpg;
|
||||
padding = {
|
||||
top = 1;
|
||||
left = 3;
|
||||
right = 4;
|
||||
};
|
||||
preserveAspectRatio = true;
|
||||
position = "left";
|
||||
};
|
||||
|
||||
display = {
|
||||
separator = " ▸ ";
|
||||
color = {
|
||||
keys = "#9B6CFF";
|
||||
title = "";
|
||||
output = "#FFF7FB";
|
||||
separator = "";
|
||||
};
|
||||
};
|
||||
|
||||
general = {
|
||||
thread = true;
|
||||
processingTimeout = 5000;
|
||||
detectVersion = true;
|
||||
playerName = "";
|
||||
dsForceDrm = false;
|
||||
};
|
||||
|
||||
modules = [
|
||||
{
|
||||
type = "custom";
|
||||
format = builtins.fromJSON ''"\u001b[90m┌────────────────────── Operating System ──────────────────────┐"'';
|
||||
}
|
||||
{
|
||||
type = "title";
|
||||
key = "│ User";
|
||||
color = {
|
||||
user = "#FF6FAE";
|
||||
at = "#FFF7FB";
|
||||
host = "#FF6FAE";
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "os";
|
||||
key = "│ OS";
|
||||
}
|
||||
{
|
||||
type = "kernel";
|
||||
key = "│ Kernel";
|
||||
}
|
||||
{
|
||||
type = "shell";
|
||||
key = "│ Shell";
|
||||
}
|
||||
{
|
||||
type = "terminal";
|
||||
key = "│ Terminal";
|
||||
}
|
||||
{
|
||||
type = "terminalfont";
|
||||
key = "│ Terminal Font";
|
||||
}
|
||||
{
|
||||
type = "lm";
|
||||
key = "│ Display Manager";
|
||||
}
|
||||
{
|
||||
type = "wm";
|
||||
key = "│ Compositor";
|
||||
}
|
||||
{
|
||||
type = "theme";
|
||||
key = "│ Theme";
|
||||
}
|
||||
{
|
||||
type = "icons";
|
||||
key = "│ Icon Theme";
|
||||
}
|
||||
{
|
||||
type = "font";
|
||||
key = "│ Font";
|
||||
}
|
||||
{
|
||||
type = "cursor";
|
||||
key = "│ Cursor";
|
||||
}
|
||||
{
|
||||
type = "packages";
|
||||
key = "│ Packages";
|
||||
combined = true;
|
||||
}
|
||||
|
||||
{
|
||||
type = "custom";
|
||||
format = builtins.fromJSON ''"\u001b[90m├────────────────────── Hardware ──────────────────────────────┤"'';
|
||||
}
|
||||
{
|
||||
type = "display";
|
||||
key = "│ Display";
|
||||
order = "asc";
|
||||
}
|
||||
{
|
||||
type = "cpu";
|
||||
key = "│ CPU";
|
||||
temp = true;
|
||||
}
|
||||
{
|
||||
type = "gpu";
|
||||
key = "│ GPU";
|
||||
driverSpecific = false;
|
||||
detectionMethod = "pci";
|
||||
temp = true;
|
||||
hideType = "integrated";
|
||||
}
|
||||
{
|
||||
type = "memory";
|
||||
key = "│ Memory";
|
||||
percent = {
|
||||
green = 70;
|
||||
yellow = 90;
|
||||
type = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "disk";
|
||||
key = "│ Disk";
|
||||
showRegular = true;
|
||||
showExternal = true;
|
||||
showHidden = false;
|
||||
showSubvolumes = false;
|
||||
showReadOnly = true;
|
||||
showUnknown = false;
|
||||
folders = "";
|
||||
hideFolders = "/efi:/boot:/boot/*";
|
||||
hideFS = "fuse.sshfs";
|
||||
useAvailable = false;
|
||||
percent = {
|
||||
green = 70;
|
||||
yellow = 80;
|
||||
type = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
key = "│ Gamepad";
|
||||
format = "8BitDo Ultimate 2 Wireless Controller";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
key = "│ Mouse";
|
||||
format = "Logitech G PRO X Superlight 2";
|
||||
}
|
||||
{
|
||||
type = "keyboard";
|
||||
key = "│ Keyboard";
|
||||
ignores = [
|
||||
"Logitech"
|
||||
"Yubico"
|
||||
];
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
key = "│ Sound Card";
|
||||
format = "Creative Sound Blaster X4";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
key = "│ Speakers";
|
||||
format = "Creative Sound BlasterX Katana";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
key = "│ Headphones";
|
||||
format = "Beyerdynamic DT 700 Pro X";
|
||||
}
|
||||
|
||||
{
|
||||
type = "custom";
|
||||
format = builtins.fromJSON ''"\u001b[90m├────────────────────── Misc Info ─────────────────────────────┤"'';
|
||||
}
|
||||
{
|
||||
type = "command";
|
||||
key = "│ OS Lifetime";
|
||||
text = "birth_install=$(cat /etc/os-install-epoch); current=$(date +%s); time_progression=$((current - birth_install)); days_difference=$((time_progression / 86400)); echo $days_difference days";
|
||||
}
|
||||
{
|
||||
type = "locale";
|
||||
key = "│ Locale";
|
||||
}
|
||||
{
|
||||
type = "uptime";
|
||||
key = "│ Uptime";
|
||||
}
|
||||
{
|
||||
type = "colors";
|
||||
key = "│ Colors";
|
||||
symbol = "circle";
|
||||
paddingLeft = 0;
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = builtins.fromJSON ''"\u001b[90m└──────────────────────────────────────────────────────────────┘"'';
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 433 KiB |
@@ -0,0 +1,71 @@
|
||||
{ pkgs, lib, ...}:
|
||||
|
||||
{
|
||||
programs = {
|
||||
fish = {
|
||||
enable = true;
|
||||
shellInit = ''
|
||||
set fish_greeting
|
||||
zoxide init fish --cmd cd | source
|
||||
'';
|
||||
shellAliases = {
|
||||
ls = "eza";
|
||||
};
|
||||
functions = {
|
||||
hs = {
|
||||
body = ''
|
||||
switch $argv[1]
|
||||
case off shutdown poweroff
|
||||
hyprshutdown -t 'Shutting down…' --post-cmd 'systemctl poweroff'
|
||||
case reboot restart
|
||||
hyprshutdown -t 'Restarting…' --post-cmd 'systemctl reboot'
|
||||
case logout exit
|
||||
hyprshutdown
|
||||
case '*'
|
||||
echo "Usage: hs {off|reboot|logout}"
|
||||
return 1
|
||||
end
|
||||
'';
|
||||
description = "Hyprshutdown function";
|
||||
};
|
||||
rebuild = {
|
||||
body = ''
|
||||
switch $argv[1]
|
||||
case boot
|
||||
sudo nixos-rebuild boot --flake ~/LillyOS/#lillypc
|
||||
case '*'
|
||||
sudo nixos-rebuild switch --flake ~/LillyOS/#lillypc
|
||||
return 1
|
||||
end
|
||||
'';
|
||||
description = "Hyprshutdown function";
|
||||
};
|
||||
};
|
||||
};
|
||||
zoxide.enable = true;
|
||||
starship = {
|
||||
enable = true;
|
||||
settings = lib.mkForce {};
|
||||
presets = lib.mkForce [];
|
||||
};
|
||||
kitty = {
|
||||
enable = true;
|
||||
shellIntegration.enableFishIntegration = true;
|
||||
};
|
||||
eza = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
git = true;
|
||||
icons = "always";
|
||||
extraOptions = [
|
||||
"--header"
|
||||
"--no-quotes"
|
||||
"--git-ignore"
|
||||
"--group-directories-first"
|
||||
"--classify=auto"
|
||||
"--hyperlink=auto"
|
||||
];
|
||||
};
|
||||
};
|
||||
xdg.configFile."starship.toml".source = ./starship.toml;
|
||||
}
|
||||
@@ -0,0 +1,288 @@
|
||||
"$schema" = 'https://starship.rs/config-schema.json'
|
||||
|
||||
format = """
|
||||
[](mauve)\
|
||||
$os\
|
||||
$username\
|
||||
$hostname\
|
||||
[](bg:peach fg:mauve)\
|
||||
$directory\
|
||||
[](bg:yellow fg:peach)\
|
||||
$git_branch\
|
||||
$git_status\
|
||||
[](fg:yellow bg:green)\
|
||||
$c\
|
||||
$rust\
|
||||
$golang\
|
||||
$nodejs\
|
||||
$php\
|
||||
$java\
|
||||
$kotlin\
|
||||
$haskell\
|
||||
$python\
|
||||
[](fg:green bg:sapphire)\
|
||||
$conda\
|
||||
[](fg:sapphire bg:lavender)\
|
||||
$time\
|
||||
[ ](fg:lavender)\
|
||||
$cmd_duration\
|
||||
$line_break\
|
||||
$character"""
|
||||
|
||||
palette = 'catppuccin_mocha'
|
||||
|
||||
[os]
|
||||
disabled = false
|
||||
style = "bg:mauve fg:crust"
|
||||
|
||||
[os.symbols]
|
||||
Windows = ""
|
||||
Ubuntu = ""
|
||||
SUSE = ""
|
||||
Raspbian = ""
|
||||
Mint = ""
|
||||
Macos = ""
|
||||
Manjaro = ""
|
||||
Linux = ""
|
||||
Gentoo = ""
|
||||
Fedora = ""
|
||||
Alpine = ""
|
||||
Amazon = ""
|
||||
Android = ""
|
||||
AOSC = ""
|
||||
Arch = ""
|
||||
CachyOS = ""
|
||||
Artix = ""
|
||||
CentOS = ""
|
||||
Debian = ""
|
||||
Redhat = ""
|
||||
RedHatEnterprise = ""
|
||||
|
||||
[username]
|
||||
show_always = true
|
||||
style_user = "bg:mauve fg:crust"
|
||||
style_root = "bg:mauve fg:crust"
|
||||
format = '[ $user]($style)'
|
||||
|
||||
[hostname]
|
||||
ssh_only = true
|
||||
style = "bg:mauve fg:crust"
|
||||
format = '[ @ $hostname]($style)'
|
||||
disabled = false
|
||||
ssh_symbol = "ssh"
|
||||
|
||||
[directory]
|
||||
style = "bg:peach fg:crust"
|
||||
format = "[ $path ]($style)"
|
||||
truncation_length = 3
|
||||
truncation_symbol = "…/"
|
||||
|
||||
[directory.substitutions]
|
||||
"Documents" = " "
|
||||
"Downloads" = " "
|
||||
"Music" = " "
|
||||
"Pictures" = " "
|
||||
"Developer" = " "
|
||||
|
||||
[git_branch]
|
||||
symbol = ""
|
||||
style = "bg:yellow"
|
||||
format = '[[ $symbol $branch ](fg:crust bg:yellow)]($style)'
|
||||
|
||||
[git_status]
|
||||
style = "bg:yellow"
|
||||
format = '[[($all_status$ahead_behind )](fg:crust bg:yellow)]($style)'
|
||||
|
||||
[nodejs]
|
||||
symbol = ""
|
||||
style = "bg:green"
|
||||
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
|
||||
|
||||
[c]
|
||||
symbol = " "
|
||||
style = "bg:green"
|
||||
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
|
||||
|
||||
[rust]
|
||||
symbol = ""
|
||||
style = "bg:green"
|
||||
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
|
||||
|
||||
[golang]
|
||||
symbol = ""
|
||||
style = "bg:green"
|
||||
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
|
||||
|
||||
[php]
|
||||
symbol = ""
|
||||
style = "bg:green"
|
||||
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
|
||||
|
||||
[java]
|
||||
symbol = " "
|
||||
style = "bg:green"
|
||||
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
|
||||
|
||||
[kotlin]
|
||||
symbol = ""
|
||||
style = "bg:green"
|
||||
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
|
||||
|
||||
[haskell]
|
||||
symbol = ""
|
||||
style = "bg:green"
|
||||
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
|
||||
|
||||
[python]
|
||||
symbol = ""
|
||||
style = "bg:green"
|
||||
format = '[[ $symbol( $version)(\(#$virtualenv\)) ](fg:crust bg:green)]($style)'
|
||||
|
||||
[docker_context]
|
||||
symbol = ""
|
||||
style = "bg:sapphire"
|
||||
format = '[[ $symbol( $context) ](fg:crust bg:sapphire)]($style)'
|
||||
|
||||
[conda]
|
||||
symbol = " "
|
||||
style = "fg:crust bg:sapphire"
|
||||
format = '[$symbol$environment ]($style)'
|
||||
ignore_base = false
|
||||
|
||||
[time]
|
||||
disabled = false
|
||||
time_format = "%R"
|
||||
style = "bg:lavender"
|
||||
format = '[[ $time ](fg:crust bg:lavender)]($style)'
|
||||
|
||||
[line_break]
|
||||
disabled = true
|
||||
|
||||
[character]
|
||||
disabled = false
|
||||
success_symbol = '[❯](bold fg:green)'
|
||||
error_symbol = '[❯](bold fg:red)'
|
||||
vimcmd_symbol = '[❮](bold fg:green)'
|
||||
vimcmd_replace_one_symbol = '[❮](bold fg:lavender)'
|
||||
vimcmd_replace_symbol = '[❮](bold fg:lavender)'
|
||||
vimcmd_visual_symbol = '[❮](bold fg:yellow)'
|
||||
|
||||
[cmd_duration]
|
||||
show_milliseconds = true
|
||||
format = " in $duration "
|
||||
style = "bg:lavender"
|
||||
disabled = false
|
||||
show_notifications = true
|
||||
min_time_to_notify = 45000
|
||||
|
||||
[palettes.catppuccin_mocha]
|
||||
rosewater = "#f5e0dc"
|
||||
flamingo = "#f2cdcd"
|
||||
pink = "#f5c2e7"
|
||||
mauve = "#cba6f7"
|
||||
red = "#f38ba8"
|
||||
maroon = "#eba0ac"
|
||||
peach = "#fab387"
|
||||
yellow = "#f9e2af"
|
||||
green = "#a6e3a1"
|
||||
teal = "#94e2d5"
|
||||
sky = "#89dceb"
|
||||
sapphire = "#74c7ec"
|
||||
blue = "#89b4fa"
|
||||
lavender = "#b4befe"
|
||||
text = "#cdd6f4"
|
||||
subtext1 = "#bac2de"
|
||||
subtext0 = "#a6adc8"
|
||||
overlay2 = "#9399b2"
|
||||
overlay1 = "#7f849c"
|
||||
overlay0 = "#6c7086"
|
||||
surface2 = "#585b70"
|
||||
surface1 = "#45475a"
|
||||
surface0 = "#313244"
|
||||
base = "#1e1e2e"
|
||||
mantle = "#181825"
|
||||
crust = "#11111b"
|
||||
|
||||
[palettes.catppuccin_frappe]
|
||||
rosewater = "#f2d5cf"
|
||||
flamingo = "#eebebe"
|
||||
pink = "#f4b8e4"
|
||||
mauve = "#ca9ee6"
|
||||
red = "#e78284"
|
||||
maroon = "#ea999c"
|
||||
peach = "#ef9f76"
|
||||
yellow = "#e5c890"
|
||||
green = "#a6d189"
|
||||
teal = "#81c8be"
|
||||
sky = "#99d1db"
|
||||
sapphire = "#85c1dc"
|
||||
blue = "#8caaee"
|
||||
lavender = "#babbf1"
|
||||
text = "#c6d0f5"
|
||||
subtext1 = "#b5bfe2"
|
||||
subtext0 = "#a5adce"
|
||||
overlay2 = "#949cbb"
|
||||
overlay1 = "#838ba7"
|
||||
overlay0 = "#737994"
|
||||
surface2 = "#626880"
|
||||
surface1 = "#51576d"
|
||||
surface0 = "#414559"
|
||||
base = "#303446"
|
||||
mantle = "#292c3c"
|
||||
crust = "#232634"
|
||||
|
||||
[palettes.catppuccin_latte]
|
||||
rosewater = "#dc8a78"
|
||||
flamingo = "#dd7878"
|
||||
pink = "#ea76cb"
|
||||
mauve = "#8839ef"
|
||||
red = "#d20f39"
|
||||
maroon = "#e64553"
|
||||
peach = "#fe640b"
|
||||
yellow = "#df8e1d"
|
||||
green = "#40a02b"
|
||||
teal = "#179299"
|
||||
sky = "#04a5e5"
|
||||
sapphire = "#209fb5"
|
||||
blue = "#1e66f5"
|
||||
lavender = "#7287fd"
|
||||
text = "#4c4f69"
|
||||
subtext1 = "#5c5f77"
|
||||
subtext0 = "#6c6f85"
|
||||
overlay2 = "#7c7f93"
|
||||
overlay1 = "#8c8fa1"
|
||||
overlay0 = "#9ca0b0"
|
||||
surface2 = "#acb0be"
|
||||
surface1 = "#bcc0cc"
|
||||
surface0 = "#ccd0da"
|
||||
base = "#eff1f5"
|
||||
mantle = "#e6e9ef"
|
||||
crust = "#dce0e8"
|
||||
|
||||
[palettes.catppuccin_macchiato]
|
||||
rosewater = "#f4dbd6"
|
||||
flamingo = "#f0c6c6"
|
||||
pink = "#f5bde6"
|
||||
mauve = "#c6a0f6"
|
||||
red = "#ed8796"
|
||||
maroon = "#ee99a0"
|
||||
peach = "#f5a97f"
|
||||
yellow = "#eed49f"
|
||||
green = "#a6da95"
|
||||
teal = "#8bd5ca"
|
||||
sky = "#91d7e3"
|
||||
sapphire = "#7dc4e4"
|
||||
blue = "#8aadf4"
|
||||
lavender = "#b7bdf8"
|
||||
text = "#cad3f5"
|
||||
subtext1 = "#b8c0e0"
|
||||
subtext0 = "#a5adcb"
|
||||
overlay2 = "#939ab7"
|
||||
overlay1 = "#8087a2"
|
||||
overlay0 = "#6e738d"
|
||||
surface2 = "#5b6078"
|
||||
surface1 = "#494d64"
|
||||
surface0 = "#363a4f"
|
||||
base = "#24273a"
|
||||
mantle = "#1e2030"
|
||||
crust = "#181926"
|
||||
@@ -0,0 +1,19 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
b = builtins;
|
||||
|
||||
module_files =
|
||||
b.readDir ./. |>
|
||||
lib.filterAttrs (name: type:
|
||||
( (lib.strings.hasSuffix ".nix" name
|
||||
&& name != "default.nix"
|
||||
&& type == "regular" )
|
||||
|| ( type == "directory"
|
||||
&& b.pathExists ./${name}/default.nix))
|
||||
) |>
|
||||
b.attrNames |>
|
||||
b.map (f: ./${f});
|
||||
in
|
||||
{
|
||||
imports = module_files;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
b = builtins;
|
||||
|
||||
module_files =
|
||||
b.readDir ./. |>
|
||||
lib.filterAttrs (name: type:
|
||||
( (lib.strings.hasSuffix ".nix" name
|
||||
&& name != "default.nix"
|
||||
&& type == "regular" )
|
||||
|| ( type == "directory"
|
||||
&& b.pathExists ./${name}/default.nix))
|
||||
) |>
|
||||
b.attrNames |>
|
||||
b.map (f: ./${f});
|
||||
in
|
||||
{
|
||||
imports = module_files;
|
||||
}
|
||||
@@ -0,0 +1,205 @@
|
||||
{ inputs, lib, pkgs, config, ... }:
|
||||
let
|
||||
catppuccinTheme = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/AvengeMedia/dms-plugin-registry/main/themes/catppuccin/theme.json";
|
||||
hash = "sha256:n2wshXtzxFcfDsKrC7BgR2vTBeHq0ZufDhgLujjMibs=";
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.dms.homeModules.dank-material-shell
|
||||
inputs.dfiles.homeModules.dux-files
|
||||
];
|
||||
config = {
|
||||
programs = {
|
||||
|
||||
dux-files = {
|
||||
enable = true;
|
||||
|
||||
systemd = {
|
||||
enable = true;
|
||||
restartIfChanged = true;
|
||||
};
|
||||
|
||||
portal = {
|
||||
enable = true;
|
||||
preferred = true;
|
||||
desktop = "hyprland";
|
||||
};
|
||||
|
||||
settings = {
|
||||
themeMode = "dark";
|
||||
};
|
||||
};
|
||||
|
||||
dank-material-shell = {
|
||||
enable = true;
|
||||
systemd = {
|
||||
enable = true;
|
||||
restartIfChanged = true;
|
||||
};
|
||||
settings = {
|
||||
# Theme
|
||||
currentThemeName = "custom";
|
||||
currentThemeCategory = "registry";
|
||||
soundVolumeChanged = false;
|
||||
customThemeFile =
|
||||
"${config.xdg.configHome}/dms/themes/catppuccin/theme.json";
|
||||
registryThemeVariants = {
|
||||
catppuccin = {
|
||||
dark = {
|
||||
flavor = "mocha";
|
||||
accent = "mauve";
|
||||
};
|
||||
|
||||
light = {
|
||||
flavor = "latte";
|
||||
accent = "mauve";
|
||||
};
|
||||
};
|
||||
};
|
||||
# Time
|
||||
clockFormat = "24h";
|
||||
|
||||
# Misc
|
||||
customPowerActionLogout = "uwsm stop";
|
||||
launchPrefix = "uwsm-app -- ";
|
||||
|
||||
# Bar Config
|
||||
powerMenuActions = [
|
||||
"reboot"
|
||||
"logout"
|
||||
"poweroff"
|
||||
"restart"
|
||||
];
|
||||
barConfigs = [
|
||||
{
|
||||
id = "default";
|
||||
name = "Main Bar";
|
||||
enabled = true;
|
||||
position = 0;
|
||||
screenPreferences = [ "all" ];
|
||||
showOnLastDisplay = true;
|
||||
|
||||
leftWidgets = [
|
||||
{
|
||||
id = "launcherButton";
|
||||
enabled = true;
|
||||
launcherLogoMode = "os";
|
||||
launcherLogoColorOverride = "primary";
|
||||
}
|
||||
{
|
||||
id = "workspaceSwitcher";
|
||||
enabled = true;
|
||||
showWorkspaceIndex = true;
|
||||
showWorkspaceName = true;
|
||||
showWorkspaceApps = true;
|
||||
workspaceUrgentColorMode = "primary";
|
||||
}
|
||||
{
|
||||
id = "focusedWindow";
|
||||
enabled = true;
|
||||
focusedWindowShowIcon = false;
|
||||
}
|
||||
];
|
||||
|
||||
centerWidgets = [
|
||||
{
|
||||
id = "lyricsOnPanel";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
id = "weather";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
id = "cpuUsage";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
id = "cpuTemp";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
id = "gpuTemp";
|
||||
enabled = true;
|
||||
selectedGpuIndex = 0;
|
||||
pciId = "10de:2c02";
|
||||
}
|
||||
{
|
||||
id = "memUsage";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
id = "music";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
id = "homeAssistantMonitor";
|
||||
enabled = true;
|
||||
}
|
||||
];
|
||||
|
||||
rightWidgets = [
|
||||
{
|
||||
id = "systemTray";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
id = "clipboard";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
id = "notepadButton";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
id = "notificationButton";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
id = "clock";
|
||||
enabled = true;
|
||||
}
|
||||
{
|
||||
id = "controlCenterButton";
|
||||
enabled = true;
|
||||
}
|
||||
];
|
||||
|
||||
spacing = 4;
|
||||
innerPadding = 4;
|
||||
bottomGap = 0;
|
||||
transparency = 1;
|
||||
widgetTransparency = 1;
|
||||
squareCorners = false;
|
||||
noBackground = false;
|
||||
gothCornersEnabled = false;
|
||||
gothCornerRadiusOverride = false;
|
||||
gothCornerRadiusValue = 12;
|
||||
borderEnabled = true;
|
||||
borderColor = "primary";
|
||||
borderOpacity = 0.5;
|
||||
borderThickness = 1;
|
||||
fontScale = 1;
|
||||
autoHide = false;
|
||||
autoHideDelay = 250;
|
||||
openOnOverview = false;
|
||||
visible = true;
|
||||
popupGapsAuto = true;
|
||||
popupGapsManual = 4;
|
||||
maximizeDetection = false;
|
||||
widgetOutlineEnabled = false;
|
||||
widgetOutlineColor = "surfaceText";
|
||||
widgetOutlineOpacity = 0.48;
|
||||
shadowIntensity = 0;
|
||||
followInterfaceStyle = true;
|
||||
widgetFollowInterfaceStyle = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
xdg.configFile."dms/themes/catppuccin/theme.json".source = catppuccinTheme;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
gtkTheme = pkgs.colloid-gtk-theme.override {
|
||||
themeVariants = [ "purple" ];
|
||||
colorVariants = [ "dark" ];
|
||||
sizeVariants = [ "standard" ];
|
||||
tweaks = [ "catppuccin" ];
|
||||
};
|
||||
in
|
||||
{
|
||||
gtk = {
|
||||
enable = true;
|
||||
|
||||
colorScheme = "dark";
|
||||
|
||||
theme = {
|
||||
package = gtkTheme;
|
||||
name = "Colloid-Purple-Dark-Catppuccin";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
settings = {
|
||||
# Curves
|
||||
curve = [
|
||||
{
|
||||
_args = [
|
||||
"expressiveFastSpatial"
|
||||
{
|
||||
type = "bezier";
|
||||
points = [
|
||||
[ 0.42 1.67 ]
|
||||
[ 0.21 0.90 ]
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
_args = [
|
||||
"expressiveSlowSpatial"
|
||||
{
|
||||
type = "bezier";
|
||||
points = [
|
||||
[ 0.39 1.29 ]
|
||||
[ 0.35 0.98 ]
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
_args = [
|
||||
"expressiveDefaultSpatial"
|
||||
{
|
||||
type = "bezier";
|
||||
points = [
|
||||
[ 0.38 1.21 ]
|
||||
[ 0.22 1.00 ]
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
_args = [
|
||||
"emphasizedDecel"
|
||||
{
|
||||
type = "bezier";
|
||||
points = [
|
||||
[ 0.05 0.7 ]
|
||||
[ 0.1 1 ]
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
_args = [
|
||||
"emphasizedAccel"
|
||||
{
|
||||
type = "bezier";
|
||||
points = [
|
||||
[ 0.3 0 ]
|
||||
[ 0.8 0.15 ]
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
_args = [
|
||||
"standardDecel"
|
||||
{
|
||||
type = "bezier";
|
||||
points = [
|
||||
[ 0 0 ]
|
||||
[ 0 1 ]
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
_args = [
|
||||
"menu_decel"
|
||||
{
|
||||
type = "bezier";
|
||||
points = [
|
||||
[ 0.1 1 ]
|
||||
[ 0 1 ]
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
_args = [
|
||||
"menu_accel"
|
||||
{
|
||||
type = "bezier";
|
||||
points = [
|
||||
[ 0.52 0.03 ]
|
||||
[ 0.72 0.08 ]
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
# Animations
|
||||
animation = [
|
||||
{
|
||||
leaf = "windowsIn";
|
||||
enabled = true;
|
||||
speed = 2;
|
||||
bezier = "emphasizedDecel";
|
||||
style = "popin 80%";
|
||||
}
|
||||
{
|
||||
leaf = "windowsOut";
|
||||
enabled = true;
|
||||
speed = 3;
|
||||
bezier = "emphasizedDecel";
|
||||
style = "popin 90%";
|
||||
}
|
||||
{
|
||||
leaf = "windowsMove";
|
||||
enabled = true;
|
||||
speed = 3;
|
||||
bezier = "emphasizedDecel";
|
||||
style = "slide";
|
||||
}
|
||||
{
|
||||
leaf = "border";
|
||||
enabled = true;
|
||||
speed = 10;
|
||||
bezier = "emphasizedDecel";
|
||||
}
|
||||
{
|
||||
leaf = "layersIn";
|
||||
enabled = true;
|
||||
speed = 2.7;
|
||||
bezier = "emphasizedDecel";
|
||||
style = "popin 93%";
|
||||
}
|
||||
{
|
||||
leaf = "layersOut";
|
||||
enabled = true;
|
||||
speed = 2.4;
|
||||
bezier = "menu_accel";
|
||||
style = "popin 94%";
|
||||
}
|
||||
{
|
||||
leaf = "fadeLayersIn";
|
||||
enabled = true;
|
||||
speed = 0.5;
|
||||
bezier = "menu_decel";
|
||||
}
|
||||
{
|
||||
leaf = "fadeLayersOut";
|
||||
enabled = true;
|
||||
speed = 2.7;
|
||||
bezier = "menu_accel";
|
||||
}
|
||||
{
|
||||
leaf = "fade";
|
||||
enabled = true;
|
||||
speed = 2;
|
||||
bezier = "emphasizedDecel";
|
||||
}
|
||||
{
|
||||
leaf = "workspaces";
|
||||
enabled = true;
|
||||
speed = 7;
|
||||
bezier = "menu_decel";
|
||||
style = "slide";
|
||||
}
|
||||
{
|
||||
leaf = "specialWorkspaceIn";
|
||||
enabled = true;
|
||||
speed = 2.8;
|
||||
bezier = "emphasizedDecel";
|
||||
style = "slidevert";
|
||||
}
|
||||
{
|
||||
leaf = "specialWorkspaceOut";
|
||||
enabled = true;
|
||||
speed = 1.2;
|
||||
bezier = "emphasizedAccel";
|
||||
style = "slidevert";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,157 @@
|
||||
{ lib, ... }:
|
||||
|
||||
let
|
||||
# Nix-side variables: these are resolved while Home Manager builds the config.
|
||||
mod = "SUPER";
|
||||
modKey = suffix: "${mod} + ${suffix}";
|
||||
|
||||
lua = lib.generators.mkLuaInline;
|
||||
|
||||
# Home Manager turns each `settings.bind` entry into an hl.bind(...) call.
|
||||
# The dispatcher is a Lua expression; bind options remain ordinary Nix attrs.
|
||||
mkBind = key: dispatcher: options: {
|
||||
_args = [ key dispatcher ] ++ lib.optional (options != null) options;
|
||||
};
|
||||
bind = key: dispatcher: mkBind key dispatcher null;
|
||||
bindWith = key: dispatcher: options: mkBind key dispatcher options;
|
||||
|
||||
# Small helpers keep the actual keybind list readable.
|
||||
exec = command: lua "hl.dsp.exec_cmd(${builtins.toJSON command})";
|
||||
focusDirection = direction:
|
||||
lua "hl.dsp.focus({ direction = ${builtins.toJSON direction} })";
|
||||
moveDirection = direction:
|
||||
lua "hl.dsp.window.move({ direction = ${builtins.toJSON direction} })";
|
||||
moveWorkspace = workspace: silent:
|
||||
lua "hl.dsp.window.move({ workspace = ${builtins.toJSON workspace}${if silent then ", silent = true" else ""} })";
|
||||
focusWorkspace = workspace:
|
||||
lua "hl.dsp.focus({ workspace = ${builtins.toJSON workspace} })";
|
||||
|
||||
binds = [
|
||||
# Keybind overview
|
||||
(bind (modKey "K") (exec "dms ipc call keybinds toggle hyprland"))
|
||||
|
||||
# Launcher
|
||||
(bind (modKey "space") (exec "dms ipc call spotlight toggle"))
|
||||
(bind "ALT + space" (exec "dms ipc call spotlight toggle"))
|
||||
|
||||
# Screen capture
|
||||
(bind (modKey "SHIFT + C") (exec "hyprpicker -a"))
|
||||
(bind (modKey "SHIFT + S") (exec "hyprshot --freeze --mode region --clipboard-only"))
|
||||
#(bind (modKey "SHIFT + S") (exec "bash /home/lilly/Scripts/zipline-region.sh"))
|
||||
(bind "CTRL + SHIFT + 3" (exec "bash /home/lilly/Scripts/zipline-monitor.sh"))
|
||||
(bind "CTRL + SHIFT + 2" (exec "bash /home/lilly/Scripts/zipline-window.sh"))
|
||||
|
||||
# Move focus
|
||||
(bind (modKey "left") (focusDirection "left"))
|
||||
(bind (modKey "right") (focusDirection "right"))
|
||||
(bind (modKey "up") (focusDirection "up"))
|
||||
(bind (modKey "down") (focusDirection "down"))
|
||||
|
||||
# Move windows
|
||||
(bind (modKey "SHIFT + left") (moveDirection "left"))
|
||||
(bind (modKey "SHIFT + right") (moveDirection "right"))
|
||||
(bind (modKey "SHIFT + up") (moveDirection "up"))
|
||||
(bind (modKey "SHIFT + down") (moveDirection "down"))
|
||||
|
||||
# Kill windows
|
||||
(bind "ALT + F4" (lua "hl.dsp.window.close()"))
|
||||
(bind (modKey "Q") (lua "hl.dsp.window.close()"))
|
||||
(bind (modKey "SHIFT + ALT + Q") (exec "hyprctl kill"))
|
||||
|
||||
# Float
|
||||
(bind (modKey "ALT + space") (lua ''hl.dsp.window.float({ action = "toggle" })''))
|
||||
|
||||
# Maximize / fullscreen
|
||||
(bind (modKey "D") (lua ''hl.dsp.window.fullscreen({ mode = "maximized" })''))
|
||||
(bind (modKey "F") (lua ''hl.dsp.window.fullscreen({ mode = "fullscreen" })''))
|
||||
(bind (modKey "ALT + F") (lua "hl.dsp.window.fullscreen({ client = 0, internal = 3 })"))
|
||||
|
||||
# Pin
|
||||
(bind (modKey "P") (lua "hl.dsp.window.pin()"))
|
||||
|
||||
# Move window to workspace (silent)
|
||||
]
|
||||
++ lib.genList
|
||||
(i: bind (modKey "ALT + ${toString (i + 1)}") (moveWorkspace (i + 1) true))
|
||||
9
|
||||
++ [
|
||||
(bind (modKey "ALT + 0") (moveWorkspace 10 true))
|
||||
|
||||
# Move window to workspace (follow)
|
||||
]
|
||||
++ lib.genList
|
||||
(i: bind (modKey "CTRL + ${toString (i + 1)}") (moveWorkspace (i + 1) false))
|
||||
9
|
||||
++ [
|
||||
(bind (modKey "CTRL + 0") (moveWorkspace 10 false))
|
||||
|
||||
(bindWith (modKey "SHIFT + mouse_down") (moveWorkspace "r-1" false) { mouse = true; })
|
||||
(bindWith (modKey "SHIFT + mouse_up") (moveWorkspace "r+1" false) { mouse = true; })
|
||||
(bindWith (modKey "ALT + mouse_down") (moveWorkspace "-1" false) { mouse = true; })
|
||||
(bindWith (modKey "ALT + mouse_up") (moveWorkspace "+1" false) { mouse = true; })
|
||||
(bind (modKey "ALT + Page_Down") (moveWorkspace "+1" false))
|
||||
(bind (modKey "ALT + Page_Up") (moveWorkspace "-1" false))
|
||||
(bind (modKey "SHIFT + Page_Down") (moveWorkspace "r+1" false))
|
||||
(bind (modKey "SHIFT + Page_Up") (moveWorkspace "r-1" false))
|
||||
(bind (modKey "CTRL + SHIFT + right") (moveWorkspace "r+1" false))
|
||||
(bind (modKey "CTRL + SHIFT + left") (moveWorkspace "r-1" false))
|
||||
|
||||
# Special workspace
|
||||
(bind (modKey "ALT + S") (moveWorkspace "special" true))
|
||||
(bind (modKey "CTRL + S") (lua "hl.dsp.workspace.toggle_special()"))
|
||||
|
||||
# Switch workspaces
|
||||
]
|
||||
++ lib.genList
|
||||
(i: bind (modKey (toString (i + 1))) (focusWorkspace (i + 1)))
|
||||
9
|
||||
++ [
|
||||
(bind (modKey "0") (focusWorkspace 10))
|
||||
|
||||
(bind (modKey "CTRL + right") (focusWorkspace "r+1"))
|
||||
(bind (modKey "CTRL + left") (focusWorkspace "r-1"))
|
||||
(bind (modKey "CTRL + ALT + right") (focusWorkspace "m+1"))
|
||||
(bind (modKey "CTRL + ALT + left") (focusWorkspace "m-1"))
|
||||
(bind (modKey "Page_Down") (focusWorkspace "+1"))
|
||||
(bind (modKey "Page_Up") (focusWorkspace "-1"))
|
||||
(bind (modKey "CTRL + Page_Down") (focusWorkspace "r+1"))
|
||||
(bind (modKey "CTRL + Page_Up") (focusWorkspace "r-1"))
|
||||
(bindWith (modKey "mouse_up") (focusWorkspace "+1") { mouse = true; })
|
||||
(bindWith (modKey "mouse_down") (focusWorkspace "-1") { mouse = true; })
|
||||
(bindWith (modKey "CTRL + mouse_up") (focusWorkspace "r+1") { mouse = true; })
|
||||
(bindWith (modKey "CTRL + mouse_down") (focusWorkspace "r-1") { mouse = true; })
|
||||
(bind (modKey "CTRL + BracketLeft") (focusWorkspace "-1"))
|
||||
(bind (modKey "CTRL + BracketRight") (focusWorkspace "+1"))
|
||||
(bind (modKey "CTRL + up") (focusWorkspace "r-5"))
|
||||
(bind (modKey "CTRL + down") (focusWorkspace "r+5"))
|
||||
|
||||
# Quick launch
|
||||
(bind (modKey "Return") (exec "uwsm-app -- kitty"))
|
||||
(bind "CTRL + ALT + T" (exec "uwsm-app -- kitty"))
|
||||
(bind (modKey "CTRL + V") (exec "uwsm-app -- pwvucontrol"))
|
||||
(bind "CTRL + SHIFT + Escape" (exec "uwsm-app -- btop"))
|
||||
(bind (modKey "CTRL + backslash") (lua "hl.dsp.window.resize({ x = 640, y = 480 })"))
|
||||
|
||||
# Split scaling
|
||||
(bindWith (modKey "semicolon") (lua ''hl.dsp.layout("splitratio -0.1")'') { repeating = true; })
|
||||
(bindWith (modKey "apostrophe") (lua ''hl.dsp.layout("splitratio +0.1")'') { repeating = true; })
|
||||
|
||||
# Volume / brightness
|
||||
(bindWith "XF86AudioRaiseVolume" (exec "wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ -l 1.5") { locked = true; repeating = true; })
|
||||
(bindWith "XF86AudioLowerVolume" (exec "wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- -l 1.5") { locked = true; repeating = true; })
|
||||
(bindWith (modKey "XF86AudioRaiseVolume") (exec "dms ipc call mpris next") { locked = true; repeating = true; })
|
||||
(bindWith (modKey "XF86AudioLowerVolume") (exec "dms ipc call mpris previous") { locked = true; repeating = true; })
|
||||
(bindWith "XF86AudioMute" (exec "wpctl set-mute @DEFAULT_SINK@ toggle") { locked = true; repeating = true; })
|
||||
|
||||
# Mouse move / resize
|
||||
(bindWith (modKey "mouse:272") (lua "hl.dsp.window.drag()") { mouse = true; })
|
||||
(bindWith (modKey "mouse:274") (lua "hl.dsp.window.drag()") { mouse = true; })
|
||||
(bindWith (modKey "mouse:273") (lua "hl.dsp.window.resize()") { mouse = true; })
|
||||
|
||||
# Special kitty
|
||||
(bind (modKey "T") (exec ''uwsm-app -- kitty --class "kittyspecial"''))
|
||||
];
|
||||
in
|
||||
{
|
||||
wayland.windowManager.hyprland.settings.bind = binds;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
b = builtins;
|
||||
|
||||
module_files =
|
||||
b.readDir ./. |>
|
||||
lib.filterAttrs (name: type:
|
||||
( (lib.strings.hasSuffix ".nix" name
|
||||
&& name != "default.nix"
|
||||
&& type == "regular" )
|
||||
|| ( type == "directory"
|
||||
&& b.pathExists ./${name}/default.nix))
|
||||
) |>
|
||||
b.attrNames |>
|
||||
b.map (f: ./${f});
|
||||
in
|
||||
{
|
||||
imports = module_files;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
extraConfig = ''
|
||||
require("dms.colors")
|
||||
require("dms.input")
|
||||
require("dms.layout")
|
||||
require("dms.windowrules")
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
wayland.windowManager.hyprland.settings.config = {
|
||||
xwayland.force_zero_scaling = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
settings.config = {
|
||||
input = {
|
||||
kb_layout = "us";
|
||||
kb_variant = "altgr-intl";
|
||||
sensitivity = 0.3;
|
||||
follow_mouse = 1;
|
||||
accel_profile = "flat";
|
||||
|
||||
repeat_delay = 250;
|
||||
repeat_rate = 35;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
monitor = [
|
||||
# Fallback monitor
|
||||
{
|
||||
output = "";
|
||||
mode = "preferred";
|
||||
position = "auto";
|
||||
scale = 1;
|
||||
}
|
||||
|
||||
# AORUS FO32U2
|
||||
{
|
||||
output = "desc:GIGA-BYTE TECHNOLOGY CO. LTD. AORUS FO32U2 24210B000546";
|
||||
mode = "3840x2160@240.0";
|
||||
position = "0x0";
|
||||
scale = 1.5;
|
||||
|
||||
bitdepth = 10;
|
||||
vrr = 3;
|
||||
|
||||
supports_wide_color = 1;
|
||||
supports_hdr = 1;
|
||||
|
||||
sdr_min_luminance = 0.0;
|
||||
sdr_max_luminance = 1000;
|
||||
|
||||
min_luminance = 0.0;
|
||||
max_luminance = 1000;
|
||||
max_avg_luminance = 400;
|
||||
}
|
||||
|
||||
# Samsung LF32TU87
|
||||
{
|
||||
output = "desc:Samsung Electric Company LF32TU87 HNTT700129";
|
||||
mode = "3840x2160@60.0";
|
||||
#position = "-2560x0";
|
||||
position = "auto-center-left";
|
||||
scale = 1.5;
|
||||
|
||||
bitdepth = 10;
|
||||
}
|
||||
|
||||
# Disable TV
|
||||
{
|
||||
output = "desc:Technical Concepts Ltd Beyond TV 0x00010000";
|
||||
disabled = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,266 @@
|
||||
let
|
||||
games = "^(steam_app_.*|gamescope|.*.exe|Vintage Story|Minecraft.*|steam_proton|osu!)$";
|
||||
games_initial_class = "^(Godot)$";
|
||||
|
||||
launch_on_second_monitor = "^(vesktop|Spotify|spotify|equibop|discord|com.saivert.pwvucontrol|com.github.th_ch.youtube_music|com.github.th-ch.youtube-music)$";
|
||||
|
||||
utility_workspace = "10";
|
||||
novrr = "^(steam_app_990080)$";
|
||||
|
||||
# Replace with your actual secondary monitor workspace number
|
||||
altscreenworkspace = 11;
|
||||
|
||||
file_dialog_titles = [
|
||||
"^(Open File)(.*)$"
|
||||
"^(Select a File)(.*)$"
|
||||
"^(Select folder)(.*)$"
|
||||
"^(Choose wallpaper)(.*)$"
|
||||
"^(Open Folder)(.*)$"
|
||||
"^(Save As)(.*)$"
|
||||
"^(Enter name of file to save to)(.*)$"
|
||||
"^(Library)(.*)$"
|
||||
"^(File Upload)(.*)$"
|
||||
"^(.*)(wants to save)$"
|
||||
"^(.*)(wants to open)$"
|
||||
];
|
||||
in
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
settings = {
|
||||
window_rule =
|
||||
[
|
||||
# Second monitor apps
|
||||
{
|
||||
match = {
|
||||
class = launch_on_second_monitor;
|
||||
};
|
||||
workspace = "${toString altscreenworkspace} silent";
|
||||
}
|
||||
|
||||
# Steam
|
||||
{
|
||||
match = {
|
||||
class = "steam";
|
||||
title = "Steam";
|
||||
};
|
||||
workspace = "4 silent";
|
||||
tile = true;
|
||||
}
|
||||
{
|
||||
match = {
|
||||
class = "steam";
|
||||
title = "Friends List";
|
||||
};
|
||||
workspace = "4 silent";
|
||||
tile = true;
|
||||
}
|
||||
|
||||
# Games
|
||||
{
|
||||
match = {
|
||||
class = games;
|
||||
};
|
||||
content = "game";
|
||||
}
|
||||
{
|
||||
match = {
|
||||
class = games;
|
||||
};
|
||||
tag = "+game";
|
||||
}
|
||||
{
|
||||
match = {
|
||||
class = games;
|
||||
};
|
||||
workspace = 3;
|
||||
}
|
||||
{
|
||||
match = {
|
||||
class = games;
|
||||
};
|
||||
tile = true;
|
||||
}
|
||||
{
|
||||
match = {
|
||||
initial_class = games_initial_class;
|
||||
};
|
||||
content = "game";
|
||||
}
|
||||
{
|
||||
match = {
|
||||
initial_class = games_initial_class;
|
||||
};
|
||||
tag = "+game";
|
||||
}
|
||||
{
|
||||
match = {
|
||||
initial_class = games_initial_class;
|
||||
};
|
||||
workspace = 3;
|
||||
}
|
||||
{
|
||||
match = {
|
||||
initial_class = games_initial_class;
|
||||
};
|
||||
tile = true;
|
||||
}
|
||||
|
||||
# Per-app VRR / rendering
|
||||
{
|
||||
match = {
|
||||
class = novrr;
|
||||
};
|
||||
no_vrr = true;
|
||||
}
|
||||
{
|
||||
match = {
|
||||
class = "steam_app_3564740";
|
||||
};
|
||||
no_vrr = true;
|
||||
}
|
||||
{
|
||||
match = {
|
||||
class = "mpv";
|
||||
};
|
||||
no_vrr = true;
|
||||
}
|
||||
{
|
||||
match = {
|
||||
class = "starrail.exe";
|
||||
};
|
||||
render_unfocused = true;
|
||||
}
|
||||
{
|
||||
match = {
|
||||
initial_class = "Godot";
|
||||
};
|
||||
no_vrr = true;
|
||||
}
|
||||
|
||||
# Utility workspace
|
||||
{
|
||||
match = {
|
||||
class = "com.github.wwmm.easyeffects";
|
||||
};
|
||||
workspace = "${utility_workspace} silent";
|
||||
}
|
||||
{
|
||||
match = {
|
||||
class = "org.openrgb.OpenRGB";
|
||||
};
|
||||
workspace = "${utility_workspace} silent";
|
||||
}
|
||||
{
|
||||
match = {
|
||||
class = "com.core447.StreamController";
|
||||
title = "StreamController";
|
||||
};
|
||||
workspace = "${utility_workspace} silent";
|
||||
}
|
||||
{
|
||||
match = {
|
||||
class = "opendeck";
|
||||
};
|
||||
workspace = "${utility_workspace} silent";
|
||||
}
|
||||
{
|
||||
match = {
|
||||
class = "Artemis.UI.Linux";
|
||||
title = "Artemis 2.0";
|
||||
};
|
||||
workspace = "${utility_workspace} silent";
|
||||
}
|
||||
{
|
||||
match = {
|
||||
class = "com.vysp3r.ProtonPlus";
|
||||
};
|
||||
workspace = "${utility_workspace} silent";
|
||||
}
|
||||
|
||||
# Why does kitty suddenly fullscreen??
|
||||
{
|
||||
match = {
|
||||
class = "kitty";
|
||||
};
|
||||
fullscreen = false;
|
||||
}
|
||||
|
||||
# Kitty scratchpad
|
||||
{
|
||||
match = {
|
||||
class = "kittyspecial";
|
||||
};
|
||||
workspace = "special silent";
|
||||
size = [ 1303 717 ];
|
||||
move = [ 656 718 ];
|
||||
float = true;
|
||||
}
|
||||
|
||||
# No shadow on tiled windows
|
||||
{
|
||||
match = {
|
||||
float = false;
|
||||
};
|
||||
no_shadow = true;
|
||||
}
|
||||
|
||||
# Idle inhibit for fullscreen
|
||||
{
|
||||
match = {
|
||||
class = ".*";
|
||||
};
|
||||
idle_inhibit = "fullscreen";
|
||||
}
|
||||
]
|
||||
|
||||
# Generic float rules: file dialogs
|
||||
++ builtins.map
|
||||
(title: {
|
||||
match = {
|
||||
inherit title;
|
||||
};
|
||||
float = true;
|
||||
center = true;
|
||||
})
|
||||
file_dialog_titles
|
||||
|
||||
++ [
|
||||
# Choose wallpaper also gets a size
|
||||
{
|
||||
match = {
|
||||
title = "^(Choose wallpaper)(.*)$";
|
||||
};
|
||||
size = "60% 65%";
|
||||
}
|
||||
|
||||
# pavucontrol
|
||||
{
|
||||
match = {
|
||||
class = "^(pavucontrol)$";
|
||||
};
|
||||
float = true;
|
||||
center = true;
|
||||
size = [
|
||||
"(window_w*0.6)"
|
||||
"(window_h*0.6)"
|
||||
];
|
||||
}
|
||||
|
||||
# Picture-in-Picture
|
||||
{
|
||||
match = {
|
||||
title = "^([Pp]icture[-s]?[Ii]n[-s]?[Pp]icture)(.*)$";
|
||||
};
|
||||
float = true;
|
||||
keep_aspect_ratio = true;
|
||||
move = "73% 72%";
|
||||
size = [
|
||||
"(window_w*0.25)"
|
||||
"(window_h*0.25)"
|
||||
];
|
||||
pin = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
let
|
||||
mainmonitor = "desc:GIGA-BYTE TECHNOLOGY CO. LTD. AORUS FO32U2 24210B000546";
|
||||
samsungmonitor = "desc:Samsung Electric Company LF32TU87 HNTT700129";
|
||||
tvmonitor = "desc:Technical Concepts Ltd Beyond TV 0x00010000";
|
||||
|
||||
altscreenworkspace = 11;
|
||||
in
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
settings = {
|
||||
# Main monitor workspaces
|
||||
workspace_rule = [
|
||||
{
|
||||
workspace = 1;
|
||||
default_name = "Main";
|
||||
monitor = mainmonitor;
|
||||
default = true;
|
||||
}
|
||||
{
|
||||
workspace = 2;
|
||||
default_name = "Secondary";
|
||||
monitor = mainmonitor;
|
||||
}
|
||||
{
|
||||
workspace = 3;
|
||||
default_name = "Games";
|
||||
monitor = mainmonitor;
|
||||
}
|
||||
{
|
||||
workspace = 4;
|
||||
default_name = "Steam";
|
||||
monitor = mainmonitor;
|
||||
}
|
||||
{
|
||||
workspace = 5;
|
||||
monitor = mainmonitor;
|
||||
}
|
||||
{
|
||||
workspace = 6;
|
||||
monitor = mainmonitor;
|
||||
}
|
||||
{
|
||||
workspace = 7;
|
||||
monitor = mainmonitor;
|
||||
}
|
||||
{
|
||||
workspace = 8;
|
||||
monitor = mainmonitor;
|
||||
}
|
||||
{
|
||||
workspace = 9;
|
||||
monitor = mainmonitor;
|
||||
}
|
||||
{
|
||||
workspace = 10;
|
||||
default_name = "Background Apps";
|
||||
monitor = mainmonitor;
|
||||
}
|
||||
|
||||
# Samsung (alt screen)
|
||||
{
|
||||
workspace = altscreenworkspace;
|
||||
default_name = "Side Workspace";
|
||||
monitor = samsungmonitor;
|
||||
default = true;
|
||||
}
|
||||
{
|
||||
workspace = altscreenworkspace;
|
||||
# layoutopt = {
|
||||
# orientation = "bottom";
|
||||
# };
|
||||
}
|
||||
|
||||
# Special workspace
|
||||
{
|
||||
workspace = "special:special";
|
||||
gaps_out = 30;
|
||||
}
|
||||
|
||||
# TV
|
||||
{
|
||||
workspace = 21;
|
||||
monitor = tvmonitor;
|
||||
default = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = null;
|
||||
portalPackage = null;
|
||||
systemd = {
|
||||
enable = false;
|
||||
variables = ["--all"];
|
||||
};
|
||||
};
|
||||
xdg.configFile."hypr/themes/catppuccin-mocha.lua".source = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/catppuccin/hyprland/main/themes/catppuccin-mocha.lua";
|
||||
hash = "sha256:EwYQvq2iCjkQvB+bpMpy9HieahKGE10BjJUIq/R8K1U=";
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
{
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "Maple Mono NF";
|
||||
font_size = 11;
|
||||
wheel_scroll_min_lines = 1;
|
||||
window_padding_width = 4;
|
||||
confirm_os_window_close = 0;
|
||||
scrollback_lines = 10000;
|
||||
enable_audio_bell = false;
|
||||
mouse_hide_wait = 60;
|
||||
cursor_trail = 1;
|
||||
cursor_shape = "beam";
|
||||
tab_fade = 1;
|
||||
active_tab_font_style = "bold";
|
||||
inactive_tab_font_style = "bold";
|
||||
tab_bar_edge = "top";
|
||||
tab_bar_margin_width = 0;
|
||||
tab_bar_style = "powerline";
|
||||
#tab_bar_style = "fade";
|
||||
enabled_layouts = "splits";
|
||||
open_url_with_default = true;
|
||||
detect_urls = true;
|
||||
allow_remote_control = true;
|
||||
shell = "fish";
|
||||
remember_window_size = false;
|
||||
};
|
||||
|
||||
shellIntegration.enableZshIntegration = true;
|
||||
shellIntegration.enableFishIntegration = true;
|
||||
shellIntegration.enableBashIntegration = true;
|
||||
shellIntegration.mode = "enabled";
|
||||
|
||||
extraConfig = ''
|
||||
|
||||
#open_url_with default
|
||||
url_prefixes file ftp ftps gemini git gopher http https irc ircs kitty sftp ssh
|
||||
#detect_urls yes
|
||||
|
||||
# Clipboard
|
||||
#map ctrl+shift+v paste_from_selection
|
||||
#map shift+insert paste_from_selection
|
||||
|
||||
# Scrolling
|
||||
map ctrl+shift+up scroll_line_up
|
||||
map ctrl+shift+down scroll_line_down
|
||||
map ctrl+shift+k scroll_line_up
|
||||
map ctrl+shift+j scroll_line_down
|
||||
map ctrl+shift+page_up scroll_page_up
|
||||
map ctrl+shift+page_down scroll_page_down
|
||||
map ctrl+shift+home scroll_home
|
||||
map ctrl+shift+end scroll_end
|
||||
map ctrl+shift+h show_scrollback
|
||||
|
||||
# Window management
|
||||
map alt+n new_window_with_cwd
|
||||
#map alt+n new_os_window
|
||||
map alt+w close_window
|
||||
map ctrl+shift+enter launch --location=hsplit
|
||||
map ctrl+shift+s launch --location=vsplit
|
||||
map ctrl+shift+] next_window
|
||||
map ctrl+shift+[ previous_window
|
||||
map ctrl+shift+f move_window_forward
|
||||
map ctrl+shift+b move_window_backward
|
||||
map ctrl+shift+` move_window_to_top
|
||||
map ctrl+shift+1 first_window
|
||||
map ctrl+shift+2 second_window
|
||||
map ctrl+shift+3 third_window
|
||||
map ctrl+shift+4 fourth_window
|
||||
map ctrl+shift+5 fifth_window
|
||||
map ctrl+shift+6 sixth_window
|
||||
map ctrl+shift+7 seventh_window
|
||||
map ctrl+shift+8 eighth_window
|
||||
map ctrl+shift+9 ninth_window # Tab management
|
||||
map ctrl+shift+0 tenth_window
|
||||
map ctrl+shift+right next_tab
|
||||
map ctrl+shift+left previous_tab
|
||||
map ctrl+shift+t new_tab
|
||||
map ctrl+shift+q close_tab
|
||||
map ctrl+shift+l next_layout
|
||||
map ctrl+shift+. move_tab_forward
|
||||
map ctrl+shift+, move_tab_backward
|
||||
|
||||
# Miscellaneous
|
||||
map ctrl+shift+up increase_font_size
|
||||
map ctrl+shift+down decrease_font_size
|
||||
map ctrl+shift+backspace restore_font_size
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
{ inputs, ... }:
|
||||
{
|
||||
imports = [ inputs.nixcord.homeModules.nixcord ];
|
||||
|
||||
programs.nixcord = {
|
||||
enable = true;
|
||||
discord.equicord.enable = true;
|
||||
config = {
|
||||
themeLinks = [
|
||||
"https://catppuccin.github.io/discord/dist/catppuccin-mocha-pink.theme.css"
|
||||
];
|
||||
enabledThemeLinks = [
|
||||
"https://catppuccin.github.io/discord/dist/catppuccin-mocha-pink.theme.css"
|
||||
];
|
||||
plugins = {
|
||||
addAttachments.enable = true;
|
||||
betterActivities.enable = true;
|
||||
betterBackreading.enable = true;
|
||||
betterCommands.enable = true;
|
||||
betterForwards.enable = true;
|
||||
betterSettings.enable = true;
|
||||
callTimer.enable = true;
|
||||
characterCounter.enable = true;
|
||||
clearUrls.enable = true;
|
||||
clickableRoles.enable = true;
|
||||
copyFileContents.enable = true;
|
||||
crashHandler.enable = true;
|
||||
declutter.enable = true;
|
||||
disableCallIdle.enable = true;
|
||||
dragFavoriteEmotes.enable = true;
|
||||
favoriteEmojiFirst.enable = true;
|
||||
fixImagesQuality.enable = true;
|
||||
fixSpotifyEmbeds.enable = true;
|
||||
gameActivityToggle.enable = true;
|
||||
gifMaker.enable = true;
|
||||
gifPaste.enable = true;
|
||||
homeTyping.enable = true;
|
||||
imageZoom.enable = true;
|
||||
inviteDefaults.enable = true;
|
||||
limitlessScreenshare.enable = true;
|
||||
loadingQuotes.enable = true;
|
||||
mentionAvatars.enable = true;
|
||||
musicControls.enable = true;
|
||||
noDevtoolsWarning.enable = true;
|
||||
noF1.enable = true;
|
||||
noMaskedUrlPaste.enable = true;
|
||||
noMiddleClickPaste.enable = true;
|
||||
noNitroUpsell.enable = true;
|
||||
noOnboardingDelay.enable = true;
|
||||
onePingPerDm.enable = true;
|
||||
openInApp.enable = true;
|
||||
petpet.enable = true;
|
||||
pinDms.enable = true;
|
||||
questify = {
|
||||
enable = true;
|
||||
disableSponsoredBanner = true;
|
||||
disableFriendsListPromo = true;
|
||||
disableMembersListPromo = true;
|
||||
autoCompleteQuests = true;
|
||||
questButtonDisplay = "never";
|
||||
};
|
||||
readAllNotificationsButton.enable = true;
|
||||
reverseImageSearch.enable = true;
|
||||
roleColorEverywhere.enable = true;
|
||||
searchFix.enable = true;
|
||||
splitLargeMessages.enable = true;
|
||||
stickerPaste.enable = true;
|
||||
typingIndicator.enable = true;
|
||||
typingTweaks.enable = true;
|
||||
unlockedAvatarZoom.enable = true;
|
||||
validReply.enable = true;
|
||||
validUser.enable = true;
|
||||
viewIcons.enable = true;
|
||||
voiceChatDoubleClick.enable = true;
|
||||
whoReacted.enable = true;
|
||||
whosWatching.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
imports = [ inputs.spicetify-nix.homeManagerModules.default ];
|
||||
|
||||
programs.spicetify =
|
||||
let
|
||||
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
|
||||
enabledExtensions = with spicePkgs.extensions; [
|
||||
hidePodcasts
|
||||
shuffle # shuffle+ (special characters are sanitized out of extension names)
|
||||
];
|
||||
enabledCustomApps = with spicePkgs.apps; [
|
||||
newReleases
|
||||
marketplace
|
||||
];
|
||||
# enabledSnippets = with spicePkgs.snippets; [
|
||||
# pointer
|
||||
# ];
|
||||
|
||||
theme = spicePkgs.themes.catppuccin;
|
||||
colorScheme = "mocha";
|
||||
wayland = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
programs.vscode.enable = true;
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
{ inputs, pkgs, nixosConfig, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.zen-browser.homeModules.beta
|
||||
];
|
||||
config = {
|
||||
home.file."catppuccin-zen" = {
|
||||
target = ".config/zen/default/chrome/catppuccin-zen";
|
||||
source = (
|
||||
fetchTarball {
|
||||
url = "https://github.com/code-irisnk/catppuccin-zen-browser/archive/refs/heads/main.tar.gz";
|
||||
sha256 = "sha256:DegtATvy8KpRQ6qQ/6GUoap14Y5NrJc436qxNm8+EJU=";
|
||||
});
|
||||
};
|
||||
programs.zen-browser = {
|
||||
enable = true;
|
||||
setAsDefaultBrowser = true;
|
||||
nativeMessagingHosts = [pkgs.firefoxpwa];
|
||||
policies = {
|
||||
AutofillAddressEnabled = false;
|
||||
AutofillCreditCardEnabled = false;
|
||||
DisableAppUpdate = true;
|
||||
DisableFeedbackCommands = true;
|
||||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableTelemetry = true;
|
||||
DontCheckDefaultBrowser = true;
|
||||
NoDefaultBookmarks = true;
|
||||
OfferToSaveLogins = false;
|
||||
EnableTrackingProtection = {
|
||||
Value = true;
|
||||
Locked = true;
|
||||
Cryptomining = true;
|
||||
Fingerprinting = true;
|
||||
};
|
||||
|
||||
"3rdparty".Extensions."{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
|
||||
environment = {
|
||||
base = "https://vault.hibana.me";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
profiles.default = {
|
||||
settings = {
|
||||
"zen.view.use-single-toolbar" = false;
|
||||
"zen.urlbar.replace-newtab" = false;
|
||||
"general.autoScroll" = true;
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
"extensions.autoDisableScopes" = 0;
|
||||
"widget.use-xdg-desktop-portal.file-picker" = 1;
|
||||
};
|
||||
extensions = {
|
||||
packages = with inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system}; [
|
||||
ublock-origin
|
||||
bitwarden
|
||||
istilldontcareaboutcookies
|
||||
return-youtube-dislikes
|
||||
augmented-steam
|
||||
sponsorblock
|
||||
youtube-nonstop
|
||||
youtube-high-definition
|
||||
absolute-enable-right-click
|
||||
augmented-steam
|
||||
clearurls
|
||||
darkreader
|
||||
karakeep
|
||||
new-tab-override
|
||||
steam-database
|
||||
unpaywall
|
||||
violentmonkey
|
||||
];
|
||||
};
|
||||
extensionButtons = {
|
||||
"nav-bar" = [
|
||||
"uBlock0@raymondhill.net"
|
||||
"{446900e4-71c2-419f-a6a7-df9c091e268b}"
|
||||
"idcac-pub@guus.ninja"
|
||||
];
|
||||
};
|
||||
userChrome = ''
|
||||
@import "catppuccin-zen/themes/Mocha/Mauve/userChrome.css";
|
||||
'';
|
||||
userContent = ''
|
||||
@import "catppuccin-zen/themes/Mocha/Mauve/userContent.css";
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
home.sessionVariables = {
|
||||
# wayland
|
||||
GDK_BACKEND = "wayland,x11,*";
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
MOZ_DISABLE_RDD_SANDBOX = "1";
|
||||
OZONE_PLATFORM = "wayland";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||
SDL_VIDEODRIVER = "wayland,x11";
|
||||
CLUTTER_BACKEND = "wayland";
|
||||
QT_QPA_PLATFORM = "wayland;xcb";
|
||||
QT_QPA_PLATFORMTHEME = "gtk3";
|
||||
QT_QPA_PLATFORMTHEME_QT6 = "gtk3";
|
||||
|
||||
# nvidia
|
||||
LIBVA_DRIVER_NAME = "nvidia";
|
||||
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
||||
GBM_BACKEND = "nvidia-drm";
|
||||
__GL_GSYNC_ALLOWED = "1";
|
||||
__GL_VRR_ALLOWED = "1";
|
||||
|
||||
# hyprland
|
||||
AQ_DRM_DEVICES = "/dev/dri/nvidia-dgpu:/dev/dri/amd-igpu";
|
||||
|
||||
# catppuccin
|
||||
HYPRCURSOR_SIZE = 24;
|
||||
HYPRCURSOR_THEME = "catppuccin-mocha-mauve-cursors";
|
||||
# XCURSOR_THEME = "catppuccin-mocha-mauve-cursors";
|
||||
# XCURSOR_SIZE = "24";
|
||||
|
||||
# design
|
||||
GDK_SCALE = "2";
|
||||
|
||||
# defaults
|
||||
XDG_MENU_PREFIX = "plasma-";
|
||||
TERMINAL = "kitty";
|
||||
EDITOR = "code";
|
||||
};
|
||||
xdg.configFile."uwsm/env".source =
|
||||
"${config.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh";
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
inputs.launchy.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
inputs.volt-gui.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
];
|
||||
|
||||
programs.mangohud = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
let
|
||||
opendeck-plugins = inputs.opendeck.legacyPackages.${pkgs.stdenv.hostPlatform.system}.opendeck-plugins;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.opendeck.homeManagerModules.default
|
||||
];
|
||||
|
||||
programs.opendeck = {
|
||||
enable = true;
|
||||
plugins = with opendeck-plugins; [
|
||||
cgiesche.homeassistant
|
||||
sjourdois.pipewire
|
||||
cronusak.pipewire-audio
|
||||
mdvictor.volume-controller
|
||||
openactionplugins.discord
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
xdg = {
|
||||
# autostart
|
||||
|
||||
autostart = {
|
||||
enable = true;
|
||||
|
||||
entries = [
|
||||
"${pkgs.spotify}/share/applications/spotify.desktop"
|
||||
"${pkgs.millennium-steam}/share/applications/steam.desktop"
|
||||
];
|
||||
};
|
||||
configFile."electron-flags.conf".text = ''
|
||||
--enable-features=WaylandWindowDecorations,UseOzonePlatform,AcceleratedVideoDecodeLinuxGL,VaapiOnNvidiaGPUs
|
||||
--ozone-platform-hint=wayland
|
||||
--enable-blink-features=MiddleClickAutoscroll
|
||||
--ozone-platform=wayland
|
||||
--ignore-gpu-blocklist
|
||||
--use-gl=angle
|
||||
--use-angle=gl
|
||||
'';
|
||||
configFile."gtk-3.0/gtk.css".text = ''
|
||||
@import url("dank-colors.css");
|
||||
'';
|
||||
configFile."gtk-3.0/settings.ini".text = ''
|
||||
[Settings]
|
||||
gtk-icon-theme-name=Papirus-Dark
|
||||
'';
|
||||
configFile."gtk-4.0/gtk.css".text = ''
|
||||
@import url("dank-colors.css");
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
{
|
||||
description = "Artemis RGB (Avalonia + SkiaSharp, NixOS compatible)";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
artemis = pkgs.stdenvNoCC.mkDerivation rec {
|
||||
pname = "artemis-rgb";
|
||||
version = "latest-master";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://updating.artemis-rgb.com/api/artifacts/latest/master/linux";
|
||||
sha256 = "sha256-O/urxR7Ryn6DF2lp8VR9jBJcAns+xEmjQsEQxjSSz0M=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgs.unzip
|
||||
pkgs.makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
# .NET runtime deps
|
||||
pkgs.icu
|
||||
pkgs.zlib
|
||||
pkgs.openssl
|
||||
|
||||
# Skia / fonts
|
||||
pkgs.fontconfig
|
||||
pkgs.freetype
|
||||
|
||||
# X11 (required even on Wayland for Avalonia)
|
||||
pkgs.libx11
|
||||
pkgs.libxcursor
|
||||
pkgs.libxrandr
|
||||
pkgs.libxi
|
||||
pkgs.libxinerama
|
||||
pkgs.libxcb
|
||||
pkgs.libice
|
||||
pkgs.libsm
|
||||
|
||||
# Graphics / display
|
||||
pkgs.mesa
|
||||
pkgs.wayland
|
||||
];
|
||||
|
||||
unpackPhase = ''
|
||||
unzip $src
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib/artemis
|
||||
cp -r ./* $out/lib/artemis
|
||||
chmod +x $out/lib/artemis/Artemis.UI.Linux
|
||||
|
||||
mkdir -p $out/bin
|
||||
makeWrapper $out/lib/artemis/Artemis.UI.Linux \
|
||||
$out/bin/Artemis.UI.Linux \
|
||||
--set LD_LIBRARY_PATH "${pkgs.lib.makeLibraryPath buildInputs}"
|
||||
|
||||
mkdir -p $out/share/applications
|
||||
cat > $out/share/applications/artemis.desktop <<EOF
|
||||
[Desktop Entry]
|
||||
Name=Artemis
|
||||
Exec=Artemis.UI.Linux
|
||||
Icon=artemis
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Utility;
|
||||
EOF
|
||||
|
||||
if [ -d $out/lib/artemis/Icons ]; then
|
||||
mkdir -p $out/share/icons/hicolor
|
||||
cp -r $out/lib/artemis/Icons/* $out/share/icons/hicolor/
|
||||
fi
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Artemis RGB lighting controller";
|
||||
homepage = "https://artemis-rgb.com";
|
||||
license = licenses.unfreeRedistributable;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
};
|
||||
|
||||
in {
|
||||
packages.${system}.default = artemis;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
{
|
||||
description = "NixOS flake for OpenLinkHub";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
outputs = { nixpkgs, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
|
||||
openlinkhubPkg = pkgs.buildGoLatestModule rec {
|
||||
pname = "openlinkhub";
|
||||
version = "0.9.5";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "jurkovic-nikola";
|
||||
repo = "OpenLinkHub";
|
||||
tag = version;
|
||||
sha256 = "sha256-bs6AMI5RZ0T/Hf0TSNXJlJVc1X6k19Vop7fbu41xJNo=";
|
||||
};
|
||||
|
||||
# REQUIRED for Go deps
|
||||
vendorHash = "sha256-5LMFYY7FozzL75+sC46M71fbUxHLXwCIOkLuBfDxFf8=";
|
||||
nativeBuildInputs = [
|
||||
pkgs.pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pkgs.udev
|
||||
pkgs.pipewire
|
||||
];
|
||||
|
||||
CGO_CFLAGS_ALLOW = "-fno-strict-overflow";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
postInstall = ''
|
||||
# Udev rules (correct NixOS way)
|
||||
mkdir -p $out/lib/udev/rules.d
|
||||
cp 99-openlinkhub.rules $out/lib/udev/rules.d/
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Open source interface for iCUE LINK Hub & Corsair devices";
|
||||
homepage = "https://github.com/jurkovic-nikola/OpenLinkHub";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
};
|
||||
|
||||
module = { config, lib, ... }: {
|
||||
options.openlinkhub.enable =
|
||||
lib.mkEnableOption "Enable OpenLinkHub service";
|
||||
|
||||
config = lib.mkIf config.openlinkhub.enable {
|
||||
|
||||
environment.systemPackages = [ openlinkhubPkg ];
|
||||
|
||||
users.groups.openlinkhub = {};
|
||||
users.users.openlinkhub = {
|
||||
isSystemUser = true;
|
||||
group = "openlinkhub";
|
||||
description = "OpenLinkHub service user";
|
||||
home = "/var/lib/openlinkhub";
|
||||
createHome = true;
|
||||
};
|
||||
|
||||
services.udev.packages = [ openlinkhubPkg ];
|
||||
systemd.services.openlinkhub = {
|
||||
description = "OpenLinkHub service";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" "udev.service" ];
|
||||
|
||||
# On first service start, populate working dir
|
||||
preStart = ''
|
||||
# Create working directory if missing
|
||||
mkdir -p /var/lib/openlinkhub
|
||||
|
||||
cd /var/lib/openlinkhub
|
||||
|
||||
# Copy database if missing
|
||||
if [ ! -d database ]; then
|
||||
cp -r ${openlinkhubPkg.src}/database .
|
||||
fi
|
||||
|
||||
rm -r static || true
|
||||
# Copy static assets if missing
|
||||
if [ ! -d static ]; then
|
||||
cp -r ${openlinkhubPkg.src}/static .
|
||||
fi
|
||||
|
||||
rm -r web || true
|
||||
# Copy web UI if missing
|
||||
if [ ! -d web ]; then
|
||||
cp -r ${openlinkhubPkg.src}/web .
|
||||
fi
|
||||
|
||||
rm -r api || true
|
||||
# Copy api docs if missing
|
||||
if [ ! -d api ]; then
|
||||
cp -r ${openlinkhubPkg.src}/api .
|
||||
fi
|
||||
|
||||
# Ensure ownership
|
||||
chown -R openlinkhub:openlinkhub /var/lib/openlinkhub
|
||||
chmod u+w /var/lib/openlinkhub -R
|
||||
'';
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${openlinkhubPkg}/bin/OpenLinkHub";
|
||||
|
||||
StateDirectory = "openlinkhub";
|
||||
WorkingDirectory = "/var/lib/openlinkhub";
|
||||
|
||||
User = "openlinkhub";
|
||||
Group = "openlinkhub";
|
||||
|
||||
Restart = "on-failure";
|
||||
|
||||
NoNewPrivileges = true;
|
||||
PrivateTmp = true;
|
||||
ProtectSystem = "strict";
|
||||
ProtectHome = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
packages.${system}.default = openlinkhubPkg;
|
||||
|
||||
nixosModules.default = module;
|
||||
nixosModules.openlinkhub = module;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
b = builtins;
|
||||
|
||||
module_files =
|
||||
b.readDir ./. |>
|
||||
lib.filterAttrs (name: type:
|
||||
( (lib.strings.hasSuffix ".nix" name
|
||||
&& name != "default.nix"
|
||||
&& type == "regular" )
|
||||
|| ( type == "directory"
|
||||
&& b.pathExists ./${name}/default.nix))
|
||||
) |>
|
||||
b.attrNames |>
|
||||
b.map (f: ./${f});
|
||||
in
|
||||
{
|
||||
imports = module_files;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
b = builtins;
|
||||
|
||||
module_files =
|
||||
b.readDir ./. |>
|
||||
lib.filterAttrs (name: type:
|
||||
( (lib.strings.hasSuffix ".nix" name
|
||||
&& name != "default.nix"
|
||||
&& type == "regular" )
|
||||
|| ( type == "directory"
|
||||
&& b.pathExists ./${name}/default.nix))
|
||||
) |>
|
||||
b.attrNames |>
|
||||
b.map (f: ./${f});
|
||||
in
|
||||
{
|
||||
imports = module_files;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
programs = {
|
||||
dux-calendar = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{ config, pkgs, username, ... }:
|
||||
|
||||
let
|
||||
hyprlandUWSM =
|
||||
"${pkgs.uwsm}/bin/uwsm start -e -D Hyprland ${config.programs.hyprland.package}/bin/start-hyprland";
|
||||
in
|
||||
{
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
};
|
||||
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
useTextGreeter = true;
|
||||
|
||||
settings = {
|
||||
initial_session = {
|
||||
command = hyprlandUWSM;
|
||||
user = "${username}";
|
||||
};
|
||||
|
||||
default_session = {
|
||||
command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd '${hyprlandUWSM}'";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{ lib, config, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.aagl.nixosModules.default
|
||||
];
|
||||
config = {
|
||||
nix.settings = inputs.aagl.nixConfig;
|
||||
programs.honkers-railway-launcher.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
b = builtins;
|
||||
|
||||
module_files =
|
||||
b.readDir ./. |>
|
||||
lib.filterAttrs (name: type:
|
||||
( (lib.strings.hasSuffix ".nix" name
|
||||
&& name != "default.nix"
|
||||
&& type == "regular" )
|
||||
|| ( type == "directory"
|
||||
&& b.pathExists ./${name}/default.nix))
|
||||
) |>
|
||||
b.attrNames |>
|
||||
b.map (f: ./${f});
|
||||
in
|
||||
{
|
||||
imports = module_files;
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
game-performance = pkgs.writeShellApplication {
|
||||
name = "game-performance";
|
||||
|
||||
runtimeInputs = with pkgs; [
|
||||
gnugrep
|
||||
systemd
|
||||
];
|
||||
|
||||
text = ''
|
||||
if command -v powerprofilesctl &>/dev/null; then
|
||||
PROFILE_CMD="powerprofilesctl"
|
||||
elif command -v tlpctl &>/dev/null; then
|
||||
PROFILE_CMD="tlpctl"
|
||||
else
|
||||
echo "Error: Neither powerprofilesctl nor tlpctl found" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Don't fail if the CPU driver doesn't support performance power profile
|
||||
if ! "$PROFILE_CMD" list | grep -q 'performance:'; then
|
||||
exec "$@"
|
||||
fi
|
||||
|
||||
# Set performance profile for the duration of the application
|
||||
if [[ -n "''${GAME_PERFORMANCE_SCREENSAVER_ON:-}" ]]; then
|
||||
exec "$PROFILE_CMD" launch -p performance \
|
||||
-r "Launched with CachyOS game-performance utility" -- "$@"
|
||||
else
|
||||
exec systemd-inhibit --why "CachyOS game-performance is running" \
|
||||
"$PROFILE_CMD" launch -p performance \
|
||||
-r "Launched with CachyOS game-performance utility" -- "$@"
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [
|
||||
game-performance
|
||||
];
|
||||
|
||||
services.power-profiles-daemon.enable = true;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
config = {
|
||||
init.defaultBranch = "main";
|
||||
user = {
|
||||
email = "lilly@hibana.me";
|
||||
name = "Lilly";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
catppuccin = {
|
||||
enable = true;
|
||||
autoEnable = true;
|
||||
cursors.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
{ pkgs, config, inputs, lib, ... }:
|
||||
{
|
||||
services = {
|
||||
openssh = {
|
||||
enable = true; # Enable SSH
|
||||
settings = {
|
||||
PermitRootLogin = "no"; # Prevent root from SSH login
|
||||
PasswordAuthentication = true; # Users can SSH using kb and password
|
||||
KbdInteractiveAuthentication = true;
|
||||
};
|
||||
ports = [22];
|
||||
};
|
||||
};
|
||||
networking.networkmanager.enable = true;
|
||||
nix = {
|
||||
settings = {
|
||||
download-buffer-size = 200000000;
|
||||
auto-optimise-store = true;
|
||||
experimental-features = [ "nix-command" "flakes" "pipe-operators" ];
|
||||
substituters = [
|
||||
"https://cache.lantian.pub/lantian"
|
||||
"https://nix-opendeck.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"lantian:WVGO7vsRMSEN+h7Lp7kv6SAmrkEXgUGbbXm7jMDjBuQ="
|
||||
"nix-opendeck.cachix.org-1:twvVjvv6Xm9H/m9sD2YQfIDoeUZLWEX5CpokN2An9L8="
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [
|
||||
inputs.nix-cachyos-kernel.overlays.pinned
|
||||
inputs.millennium.overlays.default
|
||||
];
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# Boot/Kernel Stuff
|
||||
boot = {
|
||||
kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-zen4;
|
||||
loader.limine.enable = true;
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
};
|
||||
services.scx-loader = {
|
||||
enable = true;
|
||||
config.default_sched = "scx_lavd";
|
||||
};
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"Z /sys/class/powercap/intel-rapl:0/energy_uj 0444 root root - -"
|
||||
];
|
||||
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "en_US.UTF-8";
|
||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||
LC_MEASUREMENT = "en_US.UTF-8";
|
||||
LC_MONETARY = "en_US.UTF-8";
|
||||
LC_NAME = "en_US.UTF-8";
|
||||
LC_NUMERIC = "en_US.UTF-8";
|
||||
LC_PAPER = "en_US.UTF-8";
|
||||
LC_TELEPHONE = "en_US.UTF-8";
|
||||
LC_TIME = "en_US.UTF-8";
|
||||
};
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver.xkb = {
|
||||
layout = "us";
|
||||
variant = "euro";
|
||||
};
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
# programs.mtr.enable = true;
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "26.05"; # Did you read the comment?
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
b = builtins;
|
||||
|
||||
module_files =
|
||||
b.readDir ./. |>
|
||||
lib.filterAttrs (name: type:
|
||||
( (lib.strings.hasSuffix ".nix" name
|
||||
&& name != "default.nix"
|
||||
&& type == "regular" )
|
||||
|| ( type == "directory"
|
||||
&& b.pathExists ./${name}/default.nix))
|
||||
) |>
|
||||
b.attrNames |>
|
||||
b.map (f: ./${f});
|
||||
in
|
||||
{
|
||||
imports = module_files;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [
|
||||
inputs.artemisrgb.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
services.blueman.enable = true;
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{ inputs, ... }:
|
||||
{
|
||||
imports = [ inputs.cachyos-settings.nixosModules.default ];
|
||||
cachyos.settings = {
|
||||
enable = true;
|
||||
audio.enable = true;
|
||||
coredump.enable = true;
|
||||
ioSchedulers.enable = true;
|
||||
journal.enable = true;
|
||||
ntsync.enable = true;
|
||||
nvidia.enable = true;
|
||||
oomd.enable = true;
|
||||
serviceManager.enable = true;
|
||||
sysctl.enable = true;
|
||||
watchdogBlacklist.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
programs.coolercontrol.enable = true;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{ lib, ... }:
|
||||
let
|
||||
b = builtins;
|
||||
|
||||
module_files =
|
||||
b.readDir ./. |>
|
||||
lib.filterAttrs (name: type:
|
||||
( (lib.strings.hasSuffix ".nix" name
|
||||
&& name != "default.nix"
|
||||
&& type == "regular" )
|
||||
|| ( type == "directory"
|
||||
&& b.pathExists ./${name}/default.nix))
|
||||
) |>
|
||||
b.attrNames |>
|
||||
b.map (f: ./${f});
|
||||
in
|
||||
{
|
||||
imports = module_files;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{ pkgs, ...}:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
lsfg-vk
|
||||
lsfg-vk-ui
|
||||
protonplus
|
||||
];
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
package = pkgs.millennium-steam;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services = {
|
||||
power-profiles-daemon.enable = true;
|
||||
accounts-daemon.enable = true;
|
||||
libinput.enable = true;
|
||||
fstrim.enable = true;
|
||||
gvfs.enable = true;
|
||||
smartd = {
|
||||
enable = true;
|
||||
autodetect = true;
|
||||
};
|
||||
};
|
||||
environment.etc."os-install-epoch".text = "1795040307";
|
||||
programs.dconf.enable = true;
|
||||
hardware = {
|
||||
i2c.enable = true;
|
||||
};
|
||||
networking.hostName = "LillyPC";
|
||||
programs.nix-ld = {
|
||||
enable = true;
|
||||
libraries = with pkgs; [
|
||||
stdenv.cc.cc
|
||||
glibc
|
||||
libx11
|
||||
libxcursor
|
||||
libxrandr
|
||||
libxinerama
|
||||
libxi
|
||||
wayland
|
||||
libGL
|
||||
libdrm
|
||||
alsa-lib
|
||||
pulseaudio
|
||||
glib
|
||||
nspr.out
|
||||
nss.out
|
||||
dbus.lib
|
||||
at-spi2-atk
|
||||
cups.lib
|
||||
cairo.out
|
||||
gtk3.out
|
||||
pango.out
|
||||
libxcomposite.out
|
||||
libxdamage.out
|
||||
libxext.out
|
||||
libxfixes.out
|
||||
libgbm.out
|
||||
expat.out
|
||||
libxcb.out
|
||||
libxkbcommon.out
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
extraPackages = with pkgs; [
|
||||
nvidia-vaapi-driver
|
||||
libglvnd
|
||||
];
|
||||
extraPackages32 = with pkgs.pkgsi686Linux; [
|
||||
libglvnd
|
||||
];
|
||||
};
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
hardware.nvidia = {
|
||||
open = true;
|
||||
branch = "latest";
|
||||
modesetting.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
# 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" "ahci" "thunderbolt" "xhci_pci" "xhci_pci_prom21" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/30bda78c-4ed6-4c42-90b9-de0a64302203";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
|
||||
fileSystems."/home" =
|
||||
{ device = "/dev/disk/by-uuid/30bda78c-4ed6-4c42-90b9-de0a64302203";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=home" ];
|
||||
};
|
||||
|
||||
fileSystems."/nix" =
|
||||
{ device = "/dev/disk/by-uuid/30bda78c-4ed6-4c42-90b9-de0a64302203";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=nix" ];
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/9FDB-D968";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
systemd.services.nvidia-undervolt = {
|
||||
enable = true;
|
||||
description = "Set NVIDIA GPU undervolt";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.nvidia_oc}/bin/nvidia_oc set --index 0 --freq-offset 250";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs; [
|
||||
obs-studio-plugins.droidcam-obs
|
||||
obs-studio-plugins.obs-vkcapture
|
||||
];
|
||||
enableVirtualCamera = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.openlinkhub.nixosModules.default
|
||||
];
|
||||
openlinkhub.enable = true;
|
||||
systemd.services.openlinkhub-data = {
|
||||
description = "Copy OpenLinkHub configuration and data";
|
||||
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
};
|
||||
|
||||
script = ''
|
||||
destination="/var/lib/openlinkhub"
|
||||
|
||||
# Ensure the destination directory exists.
|
||||
${pkgs.coreutils}/bin/mkdir -p "$destination"
|
||||
${pkgs.coreutils}/bin/chown openlinkhub:openlinkhub "$destination"
|
||||
${pkgs.coreutils}/bin/chmod 2775 "$destination"
|
||||
|
||||
# Copy source contents, overwriting changed files.
|
||||
# Do not delete files that only exist in the destination.
|
||||
${pkgs.rsync}/bin/rsync \
|
||||
--archive \
|
||||
--checksum \
|
||||
--chown=openlinkhub:openlinkhub \
|
||||
--chmod='Dug+rwx,Dg+s,Fug+rw' \
|
||||
"${./openlinkhub}/" \
|
||||
"$destination/"
|
||||
'';
|
||||
};
|
||||
|
||||
# Make OpenLinkHub wait for the data copy to finish.
|
||||
# systemd.services.openlinkhub = {
|
||||
# requires = [ "openlinkhub-data.service" ];
|
||||
# after = [ "openlinkhub-data.service" ];
|
||||
# };
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"amdGpuIndex": 0,
|
||||
"amdsmiPath": "",
|
||||
"checkDevicePermission": true,
|
||||
"cpuSensorChip": "",
|
||||
"cpuTempFile": "",
|
||||
"debug": false,
|
||||
"decodeMemorySku": false,
|
||||
"defaultNvidiaGPU": 0,
|
||||
"enableGamepad": true,
|
||||
"enableMotherboard": false,
|
||||
"enableOpenRGBTargetServer": true,
|
||||
"enhancementKits": "",
|
||||
"exclude": [],
|
||||
"frontend": true,
|
||||
"graphProfiles": true,
|
||||
"listenAddress": "127.0.0.1",
|
||||
"listenPort": 27003,
|
||||
"logFile": "",
|
||||
"logLevel": "info",
|
||||
"manual": false,
|
||||
"memory": false,
|
||||
"memoryRegisterOverride": "",
|
||||
"memorySku": "",
|
||||
"memorySmBus": "i2c-0",
|
||||
"memoryType": 5,
|
||||
"metrics": false,
|
||||
"motherboardBiosOnExit": false,
|
||||
"nvidiaGpuIndex": [
|
||||
0
|
||||
],
|
||||
"openRGBPort": 6743,
|
||||
"ramTempViaHwmon": true,
|
||||
"resumeDelay": 15000,
|
||||
"temperatureOffset": 0
|
||||
}
|
||||
Executable
+1
File diff suppressed because one or more lines are too long
+1485
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"RGBProfile": "rainbow",
|
||||
"BrightnessSlider": 100,
|
||||
"OriginalBrightness": 100
|
||||
}
|
||||
@@ -0,0 +1,155 @@
|
||||
{
|
||||
"sensor": 6,
|
||||
"zeroRpm": false,
|
||||
"profiles": [
|
||||
{
|
||||
"id": 1,
|
||||
"min": 0,
|
||||
"max": 30,
|
||||
"mode": 0,
|
||||
"fans": 30,
|
||||
"pump": 70
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"min": 30,
|
||||
"max": 40,
|
||||
"mode": 0,
|
||||
"fans": 40,
|
||||
"pump": 70
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"min": 40,
|
||||
"max": 50,
|
||||
"mode": 0,
|
||||
"fans": 40,
|
||||
"pump": 70
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"min": 50,
|
||||
"max": 60,
|
||||
"mode": 0,
|
||||
"fans": 45,
|
||||
"pump": 70
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"min": 60,
|
||||
"max": 70,
|
||||
"mode": 0,
|
||||
"fans": 55,
|
||||
"pump": 70
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"min": 70,
|
||||
"max": 80,
|
||||
"mode": 0,
|
||||
"fans": 70,
|
||||
"pump": 80
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"min": 80,
|
||||
"max": 90,
|
||||
"mode": 0,
|
||||
"fans": 90,
|
||||
"pump": 90
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"min": 90,
|
||||
"max": 200,
|
||||
"mode": 0,
|
||||
"fans": 100,
|
||||
"pump": 100
|
||||
}
|
||||
],
|
||||
"points": {
|
||||
"0": [
|
||||
{
|
||||
"x": 0,
|
||||
"y": 70
|
||||
},
|
||||
{
|
||||
"x": 40,
|
||||
"y": 70
|
||||
},
|
||||
{
|
||||
"x": 50,
|
||||
"y": 70
|
||||
},
|
||||
{
|
||||
"x": 60,
|
||||
"y": 70
|
||||
},
|
||||
{
|
||||
"x": 70,
|
||||
"y": 70
|
||||
},
|
||||
{
|
||||
"x": 80,
|
||||
"y": 80
|
||||
},
|
||||
{
|
||||
"x": 90,
|
||||
"y": 90
|
||||
},
|
||||
{
|
||||
"x": 200,
|
||||
"y": 100
|
||||
}
|
||||
],
|
||||
"1": [
|
||||
{
|
||||
"x": 0,
|
||||
"y": 25
|
||||
},
|
||||
{
|
||||
"x": 12,
|
||||
"y": 26
|
||||
},
|
||||
{
|
||||
"x": 22,
|
||||
"y": 27
|
||||
},
|
||||
{
|
||||
"x": 31,
|
||||
"y": 31
|
||||
},
|
||||
{
|
||||
"x": 40,
|
||||
"y": 37
|
||||
},
|
||||
{
|
||||
"x": 44,
|
||||
"y": 45
|
||||
},
|
||||
{
|
||||
"x": 47,
|
||||
"y": 56
|
||||
},
|
||||
{
|
||||
"x": 48,
|
||||
"y": 70
|
||||
},
|
||||
{
|
||||
"x": 49,
|
||||
"y": 87
|
||||
},
|
||||
{
|
||||
"x": 50,
|
||||
"y": 100
|
||||
}
|
||||
]
|
||||
},
|
||||
"device": "/sys/class/hwmon/hwmon7/temp1_input",
|
||||
"hwmonDevice": "quadro",
|
||||
"temperatureInputId": "temp1_input",
|
||||
"channelId": 0,
|
||||
"linear": false,
|
||||
"gpuIndex": 0,
|
||||
"Hidden": false
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
systemd.tmpfiles.rules = [
|
||||
"L+ /var/lib/OpenRGB/sizes.ors - - - - ${./openrgb/sizes.ors}"
|
||||
];
|
||||
services.hardware.openrgb = {
|
||||
enable = true;
|
||||
startupProfile = "main";
|
||||
};
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
services.udev.packages = [
|
||||
inputs.opendeck.packages.${pkgs.stdenv.hostPlatform.system}.opendeck.udev
|
||||
];
|
||||
programs.streamcontroller.enable = true;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
services.udev.extraRules = ''
|
||||
KERNEL=="card*", KERNELS=="0000:6b:00.0", SUBSYSTEM=="drm", SUBSYSTEMS=="pci", SYMLINK+="dri/amd-igpu"
|
||||
KERNEL=="card*", KERNELS=="0000:01:00.0", SUBSYSTEM=="drm", SUBSYSTEMS=="pci", SYMLINK+="dri/nvidia-dgpu"
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
{ pkgs, config, lib, ...}:
|
||||
{
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
# DMS Dependencies
|
||||
cups-pk-helper
|
||||
kdePackages.kimageformats
|
||||
qt6.qtimageformats
|
||||
papirus-icon-theme
|
||||
adwaita-icon-theme
|
||||
hicolor-icon-theme
|
||||
adw-gtk3
|
||||
|
||||
# Hyprland dependencies
|
||||
qt5.qtwayland
|
||||
qt6.qtwayland
|
||||
|
||||
# Generic things I want
|
||||
wl-clipboard
|
||||
hyprshutdown
|
||||
hyprshot
|
||||
hyprpicker
|
||||
nvidia_oc
|
||||
bitwarden-desktop
|
||||
nvtopPackages.full
|
||||
nfs-utils
|
||||
usbutils
|
||||
kitty
|
||||
killall
|
||||
file
|
||||
rquickshare
|
||||
];
|
||||
fonts.packages = with pkgs; [
|
||||
# All the fonts
|
||||
dejavu_fonts
|
||||
fira-code
|
||||
fira-code-symbols
|
||||
font-awesome
|
||||
hackgen-nf-font
|
||||
ibm-plex
|
||||
inter
|
||||
jetbrains-mono
|
||||
material-icons
|
||||
maple-mono.NF
|
||||
minecraftia
|
||||
nerd-fonts.im-writing
|
||||
nerd-fonts.blex-mono
|
||||
nerd-fonts.jetbrains-mono
|
||||
noto-fonts
|
||||
noto-fonts-color-emoji
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-cjk-serif
|
||||
noto-fonts-monochrome-emoji
|
||||
powerline-fonts
|
||||
roboto
|
||||
roboto-mono
|
||||
symbola
|
||||
terminus_font
|
||||
corefonts
|
||||
vista-fonts
|
||||
];
|
||||
programs.yubikey-manager.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
pkgs,
|
||||
username,
|
||||
prettyUsername,
|
||||
...
|
||||
}: {
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
description = "${prettyUsername}";
|
||||
extraGroups = [
|
||||
"adbusers"
|
||||
"networkmanager"
|
||||
"scanner"
|
||||
"wheel" #sudo access
|
||||
"i2c"
|
||||
];
|
||||
shell = pkgs.bash;
|
||||
# ignoreShellProgramCheck = true;
|
||||
};
|
||||
nix.settings.allowed-users = [ "${username}" ];
|
||||
nix.settings.trusted-users = [ "${username}" ];
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user