Formatted
This commit is contained in:
parent
d73191e526
commit
fbfa70195b
63 changed files with 906 additions and 899 deletions
250
flake.nix
250
flake.nix
|
@ -25,7 +25,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
stylix = {
|
stylix = {
|
||||||
url ="github:danth/stylix";
|
url = "github:danth/stylix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -52,133 +52,137 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, ... }@inputs:
|
outputs = { nixpkgs, ... }@inputs:
|
||||||
let
|
let
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
||||||
Lenni = let
|
Lenni =
|
||||||
system = "x86_64-linux";
|
let
|
||||||
in
|
system = "x86_64-linux";
|
||||||
lib.nixosSystem {
|
in
|
||||||
|
lib.nixosSystem {
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
hostname = "Lenni";
|
hostname = "Lenni";
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
inherit system;
|
inherit system;
|
||||||
};
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
}
|
}
|
||||||
inputs.niri.nixosModules.niri
|
inputs.niri.nixosModules.niri
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
inputs.stylix.nixosModules.stylix
|
inputs.stylix.nixosModules.stylix
|
||||||
inputs.nixvim.nixosModules.nixvim
|
inputs.nixvim.nixosModules.nixvim
|
||||||
inputs.nixos-hardware.nixosModules.framework-12th-gen-intel
|
inputs.nixos-hardware.nixosModules.framework-12th-gen-intel
|
||||||
./hosts/Lenni
|
./hosts/Lenni
|
||||||
./pkgs
|
./pkgs
|
||||||
];
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
Puenktchen =
|
||||||
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
in
|
||||||
|
lib.nixosSystem {
|
||||||
|
|
||||||
|
specialArgs = {
|
||||||
|
hostname = "Puenktchen";
|
||||||
|
inherit inputs;
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
}
|
||||||
|
inputs.niri.nixosModules.niri
|
||||||
|
inputs.sops-nix.nixosModules.sops
|
||||||
|
inputs.disko.nixosModules.disko
|
||||||
|
inputs.stylix.nixosModules.stylix
|
||||||
|
inputs.nixvim.nixosModules.nixvim
|
||||||
|
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
||||||
|
inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
|
||||||
|
inputs.nixos-hardware.nixosModules.common-cpu-amd-zenpower
|
||||||
|
./hosts/Puenktchen
|
||||||
|
./pkgs
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
Anton =
|
||||||
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
in
|
||||||
|
lib.nixosSystem {
|
||||||
|
|
||||||
|
specialArgs = {
|
||||||
|
hostname = "Anton";
|
||||||
|
inherit inputs;
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
}
|
||||||
|
inputs.niri.nixosModules.niri
|
||||||
|
inputs.sops-nix.nixosModules.sops
|
||||||
|
inputs.disko.nixosModules.disko
|
||||||
|
inputs.stylix.nixosModules.stylix
|
||||||
|
inputs.nixvim.nixosModules.nixvim
|
||||||
|
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
||||||
|
inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
|
||||||
|
inputs.nixos-hardware.nixosModules.common-cpu-amd-zenpower
|
||||||
|
./hosts/Anton
|
||||||
|
./pkgs
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
Lillie =
|
||||||
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
in
|
||||||
|
lib.nixosSystem {
|
||||||
|
|
||||||
|
specialArgs = {
|
||||||
|
hostname = "Lillie";
|
||||||
|
inherit inputs;
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
}
|
||||||
|
inputs.niri.nixosModules.niri
|
||||||
|
inputs.sops-nix.nixosModules.sops
|
||||||
|
inputs.disko.nixosModules.disko
|
||||||
|
inputs.stylix.nixosModules.stylix
|
||||||
|
inputs.nixvim.nixosModules.nixvim
|
||||||
|
inputs.jovian.nixosModules.default
|
||||||
|
./hosts/Lillie
|
||||||
|
./pkgs
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Puenktchen = let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
in
|
|
||||||
lib.nixosSystem {
|
|
||||||
|
|
||||||
specialArgs = {
|
|
||||||
hostname = "Puenktchen";
|
|
||||||
inherit inputs;
|
|
||||||
inherit system;
|
|
||||||
};
|
|
||||||
|
|
||||||
modules = [
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
{
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
}
|
|
||||||
inputs.niri.nixosModules.niri
|
|
||||||
inputs.sops-nix.nixosModules.sops
|
|
||||||
inputs.disko.nixosModules.disko
|
|
||||||
inputs.stylix.nixosModules.stylix
|
|
||||||
inputs.nixvim.nixosModules.nixvim
|
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
|
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-amd-zenpower
|
|
||||||
./hosts/Puenktchen
|
|
||||||
./pkgs
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
Anton = let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
in
|
|
||||||
lib.nixosSystem {
|
|
||||||
|
|
||||||
specialArgs = {
|
|
||||||
hostname = "Anton";
|
|
||||||
inherit inputs;
|
|
||||||
inherit system;
|
|
||||||
};
|
|
||||||
|
|
||||||
modules = [
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
{
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
}
|
|
||||||
inputs.niri.nixosModules.niri
|
|
||||||
inputs.sops-nix.nixosModules.sops
|
|
||||||
inputs.disko.nixosModules.disko
|
|
||||||
inputs.stylix.nixosModules.stylix
|
|
||||||
inputs.nixvim.nixosModules.nixvim
|
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
|
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-amd-zenpower
|
|
||||||
./hosts/Anton
|
|
||||||
./pkgs
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
Lillie = let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
in
|
|
||||||
lib.nixosSystem {
|
|
||||||
|
|
||||||
specialArgs = {
|
|
||||||
hostname = "Lillie";
|
|
||||||
inherit inputs;
|
|
||||||
inherit system;
|
|
||||||
};
|
|
||||||
|
|
||||||
modules = [
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
{
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
}
|
|
||||||
inputs.niri.nixosModules.niri
|
|
||||||
inputs.sops-nix.nixosModules.sops
|
|
||||||
inputs.disko.nixosModules.disko
|
|
||||||
inputs.stylix.nixosModules.stylix
|
|
||||||
inputs.nixvim.nixosModules.nixvim
|
|
||||||
inputs.jovian.nixosModules.default
|
|
||||||
./hosts/Lillie
|
|
||||||
./pkgs
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,17 +5,17 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"https://git.huwe.mooo.com" = {
|
"https://git.huwe.mooo.com" = {
|
||||||
extraConfig = "reverse_proxy localhost:3000";
|
extraConfig = "reverse_proxy localhost:3000";
|
||||||
};
|
};
|
||||||
"https://files.huwe.mooo.com" = {
|
"https://files.huwe.mooo.com" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
root * /var/www/file_server
|
root * /var/www/file_server
|
||||||
file_server
|
file_server
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"https://cal.huwe.mooo.com" = {
|
"https://cal.huwe.mooo.com" = {
|
||||||
extraConfig = "reverse_proxy localhost:5232";
|
extraConfig = "reverse_proxy localhost:5232";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
# environment.systemPackages = with pkgs; [
|
# environment.systemPackages = with pkgs; [
|
||||||
# mergerfs
|
# mergerfs
|
||||||
# ];
|
# ];
|
||||||
|
|
||||||
fileSystems."/mnt/data" = {
|
fileSystems."/mnt/data" = {
|
||||||
device = "/dev/disk/by-id/wwn-0x500a0751e6b6c60f-part1";
|
device = "/dev/disk/by-id/wwn-0x500a0751e6b6c60f-part1";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [" noatime=true compress=zstd:12 "];
|
options = [ " noatime=true compress=zstd:12 " ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
services.forgejo = {
|
services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.forgejo;
|
package = pkgs.forgejo;
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
settings = {
|
settings = {
|
||||||
db = {
|
db = {
|
||||||
user = lib.mkForce "invidious";
|
user = lib.mkForce "invidious";
|
||||||
# password = lib.mkForce "invidious";
|
# password = lib.mkForce "invidious";
|
||||||
# host = lib.mkForce "localhost";
|
# host = lib.mkForce "localhost";
|
||||||
# port = 5432;
|
# port = 5432;
|
||||||
# dbname = lib.mkForce "invidious";
|
# dbname = lib.mkForce "invidious";
|
||||||
};
|
};
|
||||||
popular_enabled = false;
|
popular_enabled = false;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ ...}:
|
{ ... }:
|
||||||
{
|
{
|
||||||
services.minecraft-server = {
|
services.minecraft-server = {
|
||||||
eula = true;
|
eula = true;
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
governor = "powersave";
|
governor = "powersave";
|
||||||
turbo = "never";
|
turbo = "never";
|
||||||
};
|
};
|
||||||
charger = {
|
charger = {
|
||||||
governor = "powersave";
|
governor = "powersave";
|
||||||
turbo = "never";
|
turbo = "never";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", MODE="0666", RUN+="${pkgs.coreutils}/bin/chmod a+w /sys/class/backlight/%k/brightness"
|
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", MODE="0666", RUN+="${pkgs.coreutils}/bin/chmod a+w /sys/class/backlight/%k/brightness"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
Anton = { id = "SIMFE5V-UHVQLHM-3ES7TAM-XIGP6TL-WCC37VY-B5ET6LJ-LPC2QIL-MYG4OQR"; };
|
Anton = { id = "SIMFE5V-UHVQLHM-3ES7TAM-XIGP6TL-WCC37VY-B5ET6LJ-LPC2QIL-MYG4OQR"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
services.hardware.bolt.enable = true;
|
services.hardware.bolt.enable = true;
|
||||||
|
|
||||||
|
|
|
@ -64,4 +64,4 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
|
||||||
|
@ -14,7 +15,8 @@
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/e09e7d80-9d85-49e6-8b0e-1f31aea83840";
|
{
|
||||||
|
device = "/dev/disk/by-uuid/e09e7d80-9d85-49e6-8b0e-1f31aea83840";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=@" ];
|
options = [ "subvol=@" ];
|
||||||
};
|
};
|
||||||
|
@ -22,7 +24,8 @@
|
||||||
boot.initrd.luks.devices."luks-a2f76baf-2f27-42a4-ae48-1963c566a9ab".device = "/dev/disk/by-uuid/a2f76baf-2f27-42a4-ae48-1963c566a9ab";
|
boot.initrd.luks.devices."luks-a2f76baf-2f27-42a4-ae48-1963c566a9ab".device = "/dev/disk/by-uuid/a2f76baf-2f27-42a4-ae48-1963c566a9ab";
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/2A99-D7CC";
|
{
|
||||||
|
device = "/dev/disk/by-uuid/2A99-D7CC";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||||
|
|
|
@ -11,13 +11,13 @@
|
||||||
unzip
|
unzip
|
||||||
util-linux
|
util-linux
|
||||||
gnugrep
|
gnugrep
|
||||||
|
|
||||||
readline.out
|
readline.out
|
||||||
procps
|
procps
|
||||||
pciutils
|
pciutils
|
||||||
libpulseaudio
|
libpulseaudio
|
||||||
|
|
||||||
# SimpleDeckyTDP
|
# SimpleDeckyTDP
|
||||||
ryzenadj # actual TDP util
|
ryzenadj # actual TDP util
|
||||||
kmod # modprobe for acpi_call check
|
kmod # modprobe for acpi_call check
|
||||||
];
|
];
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
./disko.nix
|
./disko.nix
|
||||||
|
|
||||||
../../modules/default
|
../../modules/default
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
desktop = {
|
desktop = {
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{ lib, config, inputs, hostname, ... }:
|
{ lib, config, inputs, hostname, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./desktop
|
./desktop
|
||||||
./nixvim
|
./nixvim
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
lib.mkIf config.desktop.autologin.enable {
|
lib.mkIf config.desktop.autologin.enable {
|
||||||
|
|
||||||
security.pam.services.hyprlock = {};
|
security.pam.services.hyprlock = { };
|
||||||
|
|
||||||
|
|
||||||
services.greetd = {
|
services.greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = rec {
|
settings = rec {
|
||||||
initial_session = {
|
initial_session = {
|
||||||
command = config.desktop.windowManager;
|
command = config.desktop.windowManager;
|
||||||
user = "willifan";
|
user = "willifan";
|
||||||
|
|
|
@ -3,9 +3,9 @@ lib.mkIf config.desktop.enable {
|
||||||
boot = {
|
boot = {
|
||||||
plymouth = {
|
plymouth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# theme = "bgrt";
|
# theme = "bgrt";
|
||||||
# logo = "${pkgs.nixos-icons}/share/icons/hicolor/48x48/apps/nix-snowflake-white.png";
|
# logo = "${pkgs.nixos-icons}/share/icons/hicolor/48x48/apps/nix-snowflake-white.png";
|
||||||
# font = "${pkgs.dejavu_fonts.minimal}/share/fonts/truetype/DejaVuSans.ttf";
|
# font = "${pkgs.dejavu_fonts.minimal}/share/fonts/truetype/DejaVuSans.ttf";
|
||||||
};
|
};
|
||||||
|
|
||||||
consoleLogLevel = 0;
|
consoleLogLevel = 0;
|
||||||
|
|
|
@ -17,6 +17,6 @@
|
||||||
./thunar.nix
|
./thunar.nix
|
||||||
./udev.nix
|
./udev.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,24 +13,24 @@ lib.mkIf config.desktop.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.libratbag.overrideAttrs (previousAttrs: {
|
package = pkgs.libratbag.overrideAttrs (previousAttrs: {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Ensure the target directory exists
|
# Ensure the target directory exists
|
||||||
mkdir -p $out/share/libratbag/
|
mkdir -p $out/share/libratbag/
|
||||||
# cat the custom configuration file
|
# cat the custom configuration file
|
||||||
cat << EOF > $out/share/libratbag/asus-rog-pugio-II.device
|
cat << EOF > $out/share/libratbag/asus-rog-pugio-II.device
|
||||||
[Device]
|
[Device]
|
||||||
Name=ASUS ROG Pugio II
|
Name=ASUS ROG Pugio II
|
||||||
DeviceMatch=usb:0b05:1906;usb:0b05:1908
|
DeviceMatch=usb:0b05:1906;usb:0b05:1908
|
||||||
Driver=asus
|
Driver=asus
|
||||||
|
|
||||||
[Driver/asus]
|
[Driver/asus]
|
||||||
Profiles=3
|
Profiles=3
|
||||||
Buttons=10
|
Buttons=10
|
||||||
Leds=3
|
Leds=3
|
||||||
Dpis=4
|
Dpis=4
|
||||||
Wireless=1
|
Wireless=1
|
||||||
DpiRange=100:16000@100
|
DpiRange=100:16000@100
|
||||||
ButtonMapping=f0;f1;f2;e4;e5;e6;0;e8;e9;e1;e2
|
ButtonMapping=f0;f1;f2;e4;e5;e6;0;e8;e9;e1;e2
|
||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,5 +13,5 @@
|
||||||
./yuzu.nix
|
./yuzu.nix
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,5 +12,5 @@ lib.mkIf config.desktop.enable {
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
SUBSYSTEM=="tty", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2102", MODE="0660", TAG+="uaccess"
|
SUBSYSTEM=="tty", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2102", MODE="0660", TAG+="uaccess"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ lib.mkIf config.desktop.laser.enable {
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="5512", MODE:="0666"
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="5512", MODE:="0666"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
k40-whisperer
|
k40-whisperer
|
||||||
];
|
];
|
||||||
|
|
|
@ -6,13 +6,15 @@ lib.mkIf config.desktop.enable {
|
||||||
];
|
];
|
||||||
services.autofs = {
|
services.autofs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoMaster = let
|
autoMaster =
|
||||||
mapConf = pkgs.writeText "auto.nfs" ''
|
let
|
||||||
roms -fstype=nfs4 192.168.178.19:/roms
|
mapConf = pkgs.writeText "auto.nfs" ''
|
||||||
|
roms -fstype=nfs4 192.168.178.19:/roms
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
''
|
||||||
|
/mnt/nfs ${mapConf}
|
||||||
'';
|
'';
|
||||||
in ''
|
|
||||||
/mnt/nfs ${mapConf}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,37 +1,37 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
lib.mkIf config.desktop.enable {
|
lib.mkIf config.desktop.enable {
|
||||||
nix.buildMachines = [
|
nix.buildMachines = [
|
||||||
{
|
{
|
||||||
hostName = "Anton";
|
hostName = "Anton";
|
||||||
sshUser = "builder";
|
sshUser = "builder";
|
||||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||||
protocol = "ssh-ng";
|
protocol = "ssh-ng";
|
||||||
# if the builder supports building for multiple architectures,
|
# if the builder supports building for multiple architectures,
|
||||||
# replace the previous line by, e.g.
|
# replace the previous line by, e.g.
|
||||||
# systems = ["x86_64-linux" "aarch64-linux"];
|
# systems = ["x86_64-linux" "aarch64-linux"];
|
||||||
maxJobs = 4;
|
maxJobs = 4;
|
||||||
speedFactor = 2;
|
speedFactor = 2;
|
||||||
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||||
mandatoryFeatures = [ ];
|
mandatoryFeatures = [ ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
hostName = "Puenktchen";
|
hostName = "Puenktchen";
|
||||||
sshUser = "builder";
|
sshUser = "builder";
|
||||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||||
protocol = "ssh-ng";
|
protocol = "ssh-ng";
|
||||||
# if the builder supports building for multiple architectures,
|
# if the builder supports building for multiple architectures,
|
||||||
# replace the previous line by, e.g.
|
# replace the previous line by, e.g.
|
||||||
# systems = ["x86_64-linux" "aarch64-linux"];
|
# systems = ["x86_64-linux" "aarch64-linux"];
|
||||||
maxJobs = 8;
|
maxJobs = 8;
|
||||||
speedFactor = 4;
|
speedFactor = 4;
|
||||||
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||||
mandatoryFeatures = [ ];
|
mandatoryFeatures = [ ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
nix.distributedBuilds = true;
|
nix.distributedBuilds = true;
|
||||||
# optional, useful when the builder has a faster internet connection than yours
|
# optional, useful when the builder has a faster internet connection than yours
|
||||||
nix.extraOptions = ''
|
nix.extraOptions = ''
|
||||||
builders-use-substitutes = true
|
builders-use-substitutes = true
|
||||||
'';
|
'';
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,5 +18,5 @@ lib.mkIf config.desktop.enable {
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings.trusted-users = [ "willifan" ];
|
nix.settings.trusted-users = [ "willifan" ];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{ }
|
||||||
}
|
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
{
|
{
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
XDG_CACHE_HOME = "$HOME/.cache";
|
XDG_CACHE_HOME = "$HOME/.cache";
|
||||||
XDG_CONFIG_HOME = "$HOME/.config";
|
XDG_CONFIG_HOME = "$HOME/.config";
|
||||||
XDG_DATA_HOME = "$HOME/.local/share";
|
XDG_DATA_HOME = "$HOME/.local/share";
|
||||||
XDG_STATE_HOME = "$HOME/.local/state";
|
XDG_STATE_HOME = "$HOME/.local/state";
|
||||||
|
|
||||||
# Not officially in the specification
|
# Not officially in the specification
|
||||||
#XDG_BIN_HOME = "$HOME/.local/bin";
|
#XDG_BIN_HOME = "$HOME/.local/bin";
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
settings = {
|
settings = {
|
||||||
main = {
|
main = {
|
||||||
rightalt = "overload(altgr, rightalt)";
|
rightalt = "overload(altgr, rightalt)";
|
||||||
capslock = "overload(control, esc)";
|
capslock = "overload(control, esc)";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
programs.nixvim.plugins.nvim-autopairs = {
|
programs.nixvim.plugins.nvim-autopairs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
disable_filetype = ["TelescopePrompt" "vim"];
|
disable_filetype = [ "TelescopePrompt" "vim" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,18 +6,18 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
autoEnableSources = true;
|
autoEnableSources = true;
|
||||||
experimental = {ghost_text = false;};
|
experimental = { ghost_text = false; };
|
||||||
performance = {
|
performance = {
|
||||||
debounce = 60;
|
debounce = 60;
|
||||||
fetchingTimeout = 200;
|
fetchingTimeout = 200;
|
||||||
maxViewEntries = 30;
|
maxViewEntries = 30;
|
||||||
};
|
};
|
||||||
snippet = {expand = "luasnip";};
|
snippet = { expand = "luasnip"; };
|
||||||
formatting = {fields = ["kind" "abbr" "menu"];};
|
formatting = { fields = [ "kind" "abbr" "menu" ]; };
|
||||||
sources = [
|
sources = [
|
||||||
{name = "git";}
|
{ name = "git"; }
|
||||||
{name = "nvim_lsp";}
|
{ name = "nvim_lsp"; }
|
||||||
{name = "emoji";}
|
{ name = "emoji"; }
|
||||||
{
|
{
|
||||||
name = "buffer"; # text within current buffer
|
name = "buffer"; # text within current buffer
|
||||||
option.get_bufnrs.__raw = "vim.api.nvim_list_bufs";
|
option.get_bufnrs.__raw = "vim.api.nvim_list_bufs";
|
||||||
|
@ -34,16 +34,16 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
window = {
|
window = {
|
||||||
completion = {border = "solid";};
|
completion = { border = "solid"; };
|
||||||
documentation = {border = "solid";};
|
documentation = { border = "solid"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
cmp-nvim-lsp = {enable = true;}; # lsp
|
cmp-nvim-lsp = { enable = true; }; # lsp
|
||||||
cmp-buffer = {enable = true;};
|
cmp-buffer = { enable = true; };
|
||||||
cmp-path = {enable = true;}; # file system paths
|
cmp-path = { enable = true; }; # file system paths
|
||||||
cmp_luasnip = {enable = true;}; # snippets
|
cmp_luasnip = { enable = true; }; # snippets
|
||||||
cmp-cmdline = {enable = false;}; # autocomplete for cmdline
|
cmp-cmdline = { enable = false; }; # autocomplete for cmdline
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,16 +5,16 @@
|
||||||
|
|
||||||
hmts.enable = true;
|
hmts.enable = true;
|
||||||
|
|
||||||
lsp-lines = {enable = true;};
|
lsp-lines = { enable = true; };
|
||||||
lsp-format = {enable = true;};
|
lsp-format = { enable = true; };
|
||||||
lsp = {
|
lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
inlayHints = true;
|
inlayHints = true;
|
||||||
servers = {
|
servers = {
|
||||||
clangd = {enable = true;};
|
clangd = { enable = true; };
|
||||||
html = {enable = true;};
|
html = { enable = true; };
|
||||||
lua_ls = {enable = true;};
|
lua_ls = { enable = true; };
|
||||||
nixd = {
|
nixd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -22,15 +22,15 @@
|
||||||
nixpkgs.expr = "import <nixpkgs> {}";
|
nixpkgs.expr = "import <nixpkgs> {}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
pyright = {enable = true;};
|
pyright = { enable = true; };
|
||||||
gopls = {enable = true;};
|
gopls = { enable = true; };
|
||||||
jsonls = {enable = true;};
|
jsonls = { enable = true; };
|
||||||
rust_analyzer = {
|
rust_analyzer = {
|
||||||
enable = true;
|
enable = true;
|
||||||
installCargo = true;
|
installCargo = true;
|
||||||
installRustc = true;
|
installRustc = true;
|
||||||
};
|
};
|
||||||
yamlls = {enable = true;};
|
yamlls = { enable = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
keymaps = {
|
keymaps = {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
plugins = {
|
plugins = {
|
||||||
neo-tree = {
|
neo-tree = {
|
||||||
enable = true;
|
enable = true;
|
||||||
sources = ["filesystem" "buffers" "git_status" "document_symbols"];
|
sources = [ "filesystem" "buffers" "git_status" "document_symbols" ];
|
||||||
addBlankLineAtTop = false;
|
addBlankLineAtTop = false;
|
||||||
|
|
||||||
filesystem = {
|
filesystem = {
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
untracked = " ";
|
untracked = " ";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
programs.nixvim.plugins = {
|
programs.nixvim.plugins = {
|
||||||
which-key = {
|
which-key = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ...}:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
@ -27,7 +27,7 @@ in
|
||||||
polarity = "dark";
|
polarity = "dark";
|
||||||
|
|
||||||
targets.plymouth.logo = plymouth_logo;
|
targets.plymouth.logo = plymouth_logo;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ in
|
||||||
|
|
||||||
devices = lib.mkOption {
|
devices = lib.mkOption {
|
||||||
type = lib.types.attrsOf (lib.types.submodule {
|
type = lib.types.attrsOf (lib.types.submodule {
|
||||||
|
|
||||||
options.id = lib.mkOption { type = lib.types.str; };
|
options.id = lib.mkOption { type = lib.types.str; };
|
||||||
options.autoAcceptFolders = lib.mkOption {
|
options.autoAcceptFolders = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
./shell
|
./shell
|
||||||
./tmux
|
./tmux
|
||||||
./utils
|
./utils
|
||||||
./git.nix
|
./git.nix
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
imports = [
|
imports = [
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
./niri
|
./niri
|
||||||
|
|
||||||
./options.nix
|
./options.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
./vscodium.nix
|
./vscodium.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
|
|
|
@ -4,18 +4,18 @@
|
||||||
|
|
||||||
|
|
||||||
#home-manager.users.willifan = {
|
#home-manager.users.willifan = {
|
||||||
imports = [
|
imports = [
|
||||||
./fuzzel.nix
|
./fuzzel.nix
|
||||||
./hyprexit.nix
|
./hyprexit.nix
|
||||||
./hypridle.nix
|
./hypridle.nix
|
||||||
./hyprlock.nix
|
./hyprlock.nix
|
||||||
./hyprpaper.nix
|
./hyprpaper.nix
|
||||||
./mako.nix
|
./mako.nix
|
||||||
./utils.nix
|
./utils.nix
|
||||||
./wlogout.nix
|
./wlogout.nix
|
||||||
./options.nix
|
./options.nix
|
||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
];
|
];
|
||||||
#};
|
#};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
programs.fuzzel = lib.mkIf config.desktop.fuzzel.enable {
|
programs.fuzzel = lib.mkIf config.desktop.fuzzel.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
main = {
|
main = {
|
||||||
lines = 12;
|
lines = 12;
|
||||||
width = 45;
|
width = 45;
|
||||||
line-height = 20;
|
line-height = 20;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
home.packages = lib.mkIf config.desktop.hyprexit.enable [
|
home.packages = lib.mkIf config.desktop.hyprexit.enable [
|
||||||
(pkgs.writeShellScriptBin "hyprexit" ''
|
(pkgs.writeShellScriptBin "hyprexit" ''
|
||||||
${pkgs.hyprland}/bin/hyprctl dispatch exit
|
${pkgs.hyprland}/bin/hyprctl dispatch exit
|
||||||
${pkgs.systemd}/bin/loginctl terminate-user willifan
|
${pkgs.systemd}/bin/loginctl terminate-user willifan
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,40 +1,40 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
services.hypridle = lib.mkIf config.desktop.hypridle.enable {
|
services.hypridle = lib.mkIf config.desktop.hypridle.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
||||||
general = {
|
|
||||||
lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances.
|
|
||||||
before_sleep_cmd = "loginctl lock-session && sleep 2"; # lock before suspend.
|
|
||||||
after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
|
|
||||||
};
|
|
||||||
|
|
||||||
listener = [
|
general = {
|
||||||
#{
|
lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances.
|
||||||
# timeout = 150; # 2.5min.
|
before_sleep_cmd = "loginctl lock-session && sleep 2"; # lock before suspend.
|
||||||
# on-timeout = brightnessctl -s set 10; # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
|
||||||
# on-resume = brightnessctl -r; # monitor backlight restor.
|
};
|
||||||
#}
|
|
||||||
|
|
||||||
{
|
listener = [
|
||||||
timeout = 300; # 5min
|
#{
|
||||||
on-timeout = "loginctl lock-session"; # lock screen when timeout has passed
|
# timeout = 150; # 2.5min.
|
||||||
}
|
# on-timeout = brightnessctl -s set 10; # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
||||||
|
# on-resume = brightnessctl -r; # monitor backlight restor.
|
||||||
|
#}
|
||||||
|
|
||||||
{
|
{
|
||||||
timeout = 380; # 5.5min
|
timeout = 300; # 5min
|
||||||
on-timeout = "hyprctl dispatch dpms off"; # screen off when timeout has passed
|
on-timeout = "loginctl lock-session"; # lock screen when timeout has passed
|
||||||
on-resume = "hyprctl dispatch dpms on"; # screen on when activity is detected after timeout has fired.
|
}
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
timeout = 600; # 30min
|
timeout = 380; # 5.5min
|
||||||
|
on-timeout = "hyprctl dispatch dpms off"; # screen off when timeout has passed
|
||||||
|
on-resume = "hyprctl dispatch dpms on"; # screen on when activity is detected after timeout has fired.
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
timeout = 600; # 30min
|
||||||
on-timeout = "systemctl suspend-then-hibernate"; # suspend pc
|
on-timeout = "systemctl suspend-then-hibernate"; # suspend pc
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,263 +1,263 @@
|
||||||
{ pkgs, lib, config, ...}:
|
{ pkgs, lib, config, ... }:
|
||||||
lib.mkIf config.desktop.hyprland.enable {
|
lib.mkIf config.desktop.hyprland.enable {
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd.variables = ["--all"];
|
systemd.variables = [ "--all" ];
|
||||||
package = pkgs.hyprland;
|
package = pkgs.hyprland;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
||||||
|
|
||||||
"$SCRIPTS" = "$XDG_CONFIG_HOME/desktop-utils/scripts";
|
"$SCRIPTS" = "$XDG_CONFIG_HOME/desktop-utils/scripts";
|
||||||
|
|
||||||
misc = {
|
misc = {
|
||||||
disable_hyprland_logo=true;
|
disable_hyprland_logo = true;
|
||||||
};
|
|
||||||
|
|
||||||
monitor = [
|
|
||||||
", preffered, auto, 1"
|
|
||||||
] ++ lib.optionals config.desktop.hyprland.hardware.Lenni.enable [
|
|
||||||
"eDP-1, preferred, 0x0, 1.6"
|
|
||||||
] ++ lib.optionals config.desktop.hyprland.hardware.Puenktchen.enable [
|
|
||||||
"desc:ViewSonic Corporation VX2705-2KP W6Z205100250, 2560x1440@144Hz, 0x384, 1.25"
|
|
||||||
"desc:ViewSonic Corporation VX2705-2KP W6Z210400766, 2560x1440@144Hz, 2048x384, 1.25"
|
|
||||||
"desc:BNQ BenQ BL2283 CAM01567019, 1920x1080@60Hz, 4096x0, 1.0, transform, 3"
|
|
||||||
];
|
|
||||||
# Execute your favorite apps at launch
|
|
||||||
exec-once = [
|
|
||||||
''hyprctl dispatch exec "[workspace 1 silent] zen"''
|
|
||||||
''hyprctl dispatch exec "[workspace 2 silent] kitty"''
|
|
||||||
#''hyprctl dispatch exec "[workspace 3 silent] "''
|
|
||||||
#''hyprctl dispatch exec "[workspace 4 silent] "''
|
|
||||||
#''hyprctl dispatch exec "[workspace 8 silent] "''
|
|
||||||
''hyprctl dispatch exec "[workspace 9 silent] vesktop"''
|
|
||||||
''hyprctl dispatch exec "[workspace special:ctrl silent] thunar"''
|
|
||||||
''hyprctl dispatch exec "[workspace special:alt silent] obsidian"''
|
|
||||||
#''hyprctl dispatch exec "[workspace special:altgr silent]"''
|
|
||||||
#''hyprctl dispatch exec "[workspace special:strg silent] "''
|
|
||||||
];
|
|
||||||
|
|
||||||
xwayland.force_zero_scaling = true;
|
|
||||||
|
|
||||||
input = {
|
|
||||||
kb_layout = "eu";
|
|
||||||
kb_variant = "";
|
|
||||||
kb_model = "";
|
|
||||||
kb_options = "";
|
|
||||||
kb_rules = "";
|
|
||||||
|
|
||||||
|
|
||||||
follow_mouse = 1;
|
|
||||||
|
|
||||||
touchdevice.transform = lib.mkIf config.desktop.hyprland.hardware.Lillie.enable 3;
|
|
||||||
|
|
||||||
touchpad.natural_scroll = "yes";
|
|
||||||
|
|
||||||
sensitivity = -0.8; # -1.0 - 1.0, 0 means no modification.
|
|
||||||
numlock_by_default = 1;
|
|
||||||
special_fallthrough = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
general = {
|
|
||||||
|
|
||||||
gaps_in = 2;
|
|
||||||
gaps_out = 5;
|
|
||||||
border_size = 2;
|
|
||||||
# "col.active_border" = "rgba(ffa44bee)";
|
|
||||||
# "col.inactive_border" = "rgba(595959aa)";
|
|
||||||
|
|
||||||
layout = "dwindle";
|
|
||||||
|
|
||||||
resize_on_border = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
decoration = {
|
|
||||||
|
|
||||||
rounding = 10;
|
|
||||||
|
|
||||||
blur = {
|
|
||||||
enabled = false;
|
|
||||||
size = 3;
|
|
||||||
passes = 1;
|
|
||||||
new_optimizations = 1;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
shadow.enabled = true;
|
monitor = [
|
||||||
shadow.range = 4;
|
", preffered, auto, 1"
|
||||||
shadow.render_power = 3;
|
] ++ lib.optionals config.desktop.hyprland.hardware.Lenni.enable [
|
||||||
# "col.shadow" = "rgba(1a1a1aee)";
|
"eDP-1, preferred, 0x0, 1.6"
|
||||||
};
|
] ++ lib.optionals config.desktop.hyprland.hardware.Puenktchen.enable [
|
||||||
|
"desc:ViewSonic Corporation VX2705-2KP W6Z205100250, 2560x1440@144Hz, 0x384, 1.25"
|
||||||
misc = {
|
"desc:ViewSonic Corporation VX2705-2KP W6Z210400766, 2560x1440@144Hz, 2048x384, 1.25"
|
||||||
vfr = true;
|
"desc:BNQ BenQ BL2283 CAM01567019, 1920x1080@60Hz, 4096x0, 1.0, transform, 3"
|
||||||
mouse_move_enables_dpms = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
animations = {
|
|
||||||
enabled = "yes";
|
|
||||||
|
|
||||||
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
|
||||||
|
|
||||||
animation = [
|
|
||||||
"windows, 1, 7, myBezier"
|
|
||||||
"windowsOut, 1, 7, default, popin 80%"
|
|
||||||
"border, 1, 10, default"
|
|
||||||
"borderangle, 1, 8, default"
|
|
||||||
"fade, 1, 7, default"
|
|
||||||
"workspaces, 1, 6, default"
|
|
||||||
"specialWorkspace, 1, 8, default, slidefadevert 20%"
|
|
||||||
];
|
];
|
||||||
|
# Execute your favorite apps at launch
|
||||||
|
exec-once = [
|
||||||
|
''hyprctl dispatch exec "[workspace 1 silent] zen"''
|
||||||
|
''hyprctl dispatch exec "[workspace 2 silent] kitty"''
|
||||||
|
#''hyprctl dispatch exec "[workspace 3 silent] "''
|
||||||
|
#''hyprctl dispatch exec "[workspace 4 silent] "''
|
||||||
|
#''hyprctl dispatch exec "[workspace 8 silent] "''
|
||||||
|
''hyprctl dispatch exec "[workspace 9 silent] vesktop"''
|
||||||
|
''hyprctl dispatch exec "[workspace special:ctrl silent] thunar"''
|
||||||
|
''hyprctl dispatch exec "[workspace special:alt silent] obsidian"''
|
||||||
|
#''hyprctl dispatch exec "[workspace special:altgr silent]"''
|
||||||
|
#''hyprctl dispatch exec "[workspace special:strg silent] "''
|
||||||
|
];
|
||||||
|
|
||||||
|
xwayland.force_zero_scaling = true;
|
||||||
|
|
||||||
|
input = {
|
||||||
|
kb_layout = "eu";
|
||||||
|
kb_variant = "";
|
||||||
|
kb_model = "";
|
||||||
|
kb_options = "";
|
||||||
|
kb_rules = "";
|
||||||
|
|
||||||
|
|
||||||
|
follow_mouse = 1;
|
||||||
|
|
||||||
|
touchdevice.transform = lib.mkIf config.desktop.hyprland.hardware.Lillie.enable 3;
|
||||||
|
|
||||||
|
touchpad.natural_scroll = "yes";
|
||||||
|
|
||||||
|
sensitivity = -0.8; # -1.0 - 1.0, 0 means no modification.
|
||||||
|
numlock_by_default = 1;
|
||||||
|
special_fallthrough = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
general = {
|
||||||
|
|
||||||
|
gaps_in = 2;
|
||||||
|
gaps_out = 5;
|
||||||
|
border_size = 2;
|
||||||
|
# "col.active_border" = "rgba(ffa44bee)";
|
||||||
|
# "col.inactive_border" = "rgba(595959aa)";
|
||||||
|
|
||||||
|
layout = "dwindle";
|
||||||
|
|
||||||
|
resize_on_border = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
decoration = {
|
||||||
|
|
||||||
|
rounding = 10;
|
||||||
|
|
||||||
|
blur = {
|
||||||
|
enabled = false;
|
||||||
|
size = 3;
|
||||||
|
passes = 1;
|
||||||
|
new_optimizations = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
shadow.enabled = true;
|
||||||
|
shadow.range = 4;
|
||||||
|
shadow.render_power = 3;
|
||||||
|
# "col.shadow" = "rgba(1a1a1aee)";
|
||||||
|
};
|
||||||
|
|
||||||
|
misc = {
|
||||||
|
vfr = true;
|
||||||
|
mouse_move_enables_dpms = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
animations = {
|
||||||
|
enabled = "yes";
|
||||||
|
|
||||||
|
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
||||||
|
|
||||||
|
animation = [
|
||||||
|
"windows, 1, 7, myBezier"
|
||||||
|
"windowsOut, 1, 7, default, popin 80%"
|
||||||
|
"border, 1, 10, default"
|
||||||
|
"borderangle, 1, 8, default"
|
||||||
|
"fade, 1, 7, default"
|
||||||
|
"workspaces, 1, 6, default"
|
||||||
|
"specialWorkspace, 1, 8, default, slidefadevert 20%"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
dwindle = {
|
||||||
|
pseudotile = "yes"; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||||
|
preserve_split = "yes"; # you probably want this
|
||||||
|
};
|
||||||
|
|
||||||
|
gestures = {
|
||||||
|
workspace_swipe = "on";
|
||||||
|
workspace_swipe_create_new = "false";
|
||||||
|
workspace_swipe_touch = lib.mkIf config.desktop.hyprland.hardware.Lillie.enable "true";
|
||||||
|
};
|
||||||
|
|
||||||
|
device = lib.mkIf config.desktop.hyprland.hardware.Lenni.enable {
|
||||||
|
name = "pixa3854:00-093a:0274-touchpad";
|
||||||
|
sensitivity = 0;
|
||||||
|
natural_scroll = "yes";
|
||||||
|
};
|
||||||
|
|
||||||
|
windowrule = [
|
||||||
|
"idleinhibit fullscreen, ^(firefox)$"
|
||||||
|
"float, ^(thunar)$"
|
||||||
|
"stayfocused, title:^(Enpass Assistant)$"
|
||||||
|
"pin, title:^(Enpass Assistant)$"
|
||||||
|
"center, title:^(Enpass Assistant)$"
|
||||||
|
"float, ^(Enpass)$"
|
||||||
|
"center, ^(Enpass)$"
|
||||||
|
];
|
||||||
|
|
||||||
|
windowrulev2 = [
|
||||||
|
"center, xwayland:(1)"
|
||||||
|
"nofocus,class:^jetbrains-(?!toolbox),floating:1,title:^win\d+$"
|
||||||
|
''workspace +0, workspace:name:special:ctrl, floating:0''
|
||||||
|
''float, workspace:name:special:altgr, onworkspace:w[2]''
|
||||||
|
''float, workspace:name:special:strg, onworkspace:w[1]''
|
||||||
|
''workspace +0, workspace:name:special:strg, floating:0''
|
||||||
|
];
|
||||||
|
|
||||||
|
"$mainMod" = "SUPER";
|
||||||
|
|
||||||
|
bind = [
|
||||||
|
''$mainMod, Q, exec, kitty''
|
||||||
|
''$mainMod, C, killactive, ''
|
||||||
|
''$mainMod, M, exit, ''
|
||||||
|
''$mainMod, E, exec, thunar''
|
||||||
|
''$mainMod, V, togglefloating, ''
|
||||||
|
''$mainMod, R, exec, fuzzel''
|
||||||
|
''$mainMod, P, exec, Enpass''
|
||||||
|
''$mainMod, F, fullscreen''
|
||||||
|
|
||||||
|
# Move focus with mainMod + arrow keys
|
||||||
|
''$mainMod, h, movefocus, l''
|
||||||
|
''$mainMod, l, movefocus, r''
|
||||||
|
''$mainMod, k, movefocus, u''
|
||||||
|
''$mainMod, j, movefocus, d''
|
||||||
|
|
||||||
|
'', XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle''
|
||||||
|
'', XF86AudioPrev, exec, playerctl previous''
|
||||||
|
'', XF86AudioPlay, exec, playerctl play-pause''
|
||||||
|
'', XF86AudioNext, exec, playerctl next''
|
||||||
|
'', print, exec, grim -g "$(slurp)" - | wl-copy -t image/png''
|
||||||
|
|
||||||
|
# Switch workspaces with mainMod + [0-9]
|
||||||
|
''$mainMod, 1, exec, $SCRIPTS/workspaces.sh 1''
|
||||||
|
''$mainMod, 2, exec, $SCRIPTS/workspaces.sh 2''
|
||||||
|
''$mainMod, 3, exec, $SCRIPTS/workspaces.sh 3''
|
||||||
|
''$mainMod, 4, exec, $SCRIPTS/workspaces.sh 4''
|
||||||
|
''$mainMod, 5, exec, $SCRIPTS/workspaces.sh 5''
|
||||||
|
''$mainMod, 6, exec, $SCRIPTS/workspaces.sh 6''
|
||||||
|
''$mainMod, 7, exec, $SCRIPTS/workspaces.sh 7''
|
||||||
|
''$mainMod, 8, exec, $SCRIPTS/workspaces.sh 8''
|
||||||
|
''$mainMod, 9, exec, $SCRIPTS/workspaces.sh 9''
|
||||||
|
|
||||||
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||||
|
''$mainMod SHIFT, 1, movetoworkspace, 1''
|
||||||
|
''$mainMod SHIFT, 2, movetoworkspace, 2''
|
||||||
|
''$mainMod SHIFT, 3, movetoworkspace, 3''
|
||||||
|
''$mainMod SHIFT, 4, movetoworkspace, 4''
|
||||||
|
''$mainMod SHIFT, 5, movetoworkspace, 5''
|
||||||
|
''$mainMod SHIFT, 6, movetoworkspace, 6''
|
||||||
|
''$mainMod SHIFT, 7, movetoworkspace, 7''
|
||||||
|
''$mainMod SHIFT, 8, movetoworkspace, 8''
|
||||||
|
''$mainMod SHIFT, 9, movetoworkspace, 9''
|
||||||
|
|
||||||
|
# Monitor focus
|
||||||
|
''$mainMod ALT, 1, focusmonitor, 0''
|
||||||
|
''$mainMod ALT, 2, focusmonitor, 1''
|
||||||
|
''$mainMod ALT, 3, focusmonitor, 2''
|
||||||
|
''$mainMod ALT, 4, focusmonitor, 3''
|
||||||
|
''$mainMod ALT, 5, focusmonitor, 4''
|
||||||
|
''$mainMod ALT, 6, focusmonitor, 5''
|
||||||
|
''$mainMod ALT, 7, focusmonitor, 6''
|
||||||
|
''$mainMod ALT, 8, focusmonitor, 7''
|
||||||
|
''$mainMod ALT, 9, focusmonitor, 8''
|
||||||
|
''$mainMod ALT, 0, focusmonitor, 9''
|
||||||
|
|
||||||
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
|
''$mainMod, mouse_down, workspace, e+1''
|
||||||
|
''$mainMod, mouse_up, workspace, e-1''
|
||||||
|
];
|
||||||
|
|
||||||
|
binde = [
|
||||||
|
'', XF86AudioLowerVolume, exec, $SCRIPTS/volume.sh -5''
|
||||||
|
'', XF86AudioRaiseVolume, exec, $SCRIPTS/volume.sh 5''
|
||||||
|
];
|
||||||
|
|
||||||
|
bindel = [
|
||||||
|
'', XF86MonBrightnessDown, exec, $SCRIPTS/brightness.sh -4800''
|
||||||
|
'', XF86MonBrightnessUp, exec, $SCRIPTS/brightness.sh 4800''
|
||||||
|
];
|
||||||
|
|
||||||
|
bindr = [
|
||||||
|
''SUPERCTRL, Control_L, togglespecialworkspace, ctrl''
|
||||||
|
''SUPERALT, Alt_L, togglespecialworkspace, alt''
|
||||||
|
''SUPERALT, ALT_R, togglespecialworkspace, altgr''
|
||||||
|
''SUPERCTRL, Control_R, togglespecialworkspace, strg''
|
||||||
|
];
|
||||||
|
|
||||||
|
bindm = [
|
||||||
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
''$mainMod, mouse:272, movewindow''
|
||||||
|
''$mainMod, mouse:273, resizewindow''
|
||||||
|
];
|
||||||
|
|
||||||
|
# ------------------------------------------
|
||||||
|
# ########################################
|
||||||
|
# ####### Workspaces ###########
|
||||||
|
# ########################################
|
||||||
|
# ------------------------------------------
|
||||||
|
|
||||||
|
workspace = [
|
||||||
|
"1, persistent:true"
|
||||||
|
"2, persistent:true"
|
||||||
|
"3, persistent:true"
|
||||||
|
"4, persistent:true"
|
||||||
|
"5, persistent:true"
|
||||||
|
"6, persistent:true"
|
||||||
|
"7, persistent:true"
|
||||||
|
"8, persistent:true"
|
||||||
|
"8, persistent:true"
|
||||||
|
"9, persistent:true"
|
||||||
|
|
||||||
|
"name:special:ctrl, persistent:true"
|
||||||
|
"name:special:alt, persistent:true"
|
||||||
|
"name:special:altgr, persistent:true"
|
||||||
|
"name:special:strg, persistent:true"
|
||||||
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
dwindle = {
|
|
||||||
pseudotile = "yes"; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = "yes"; # you probably want this
|
|
||||||
};
|
|
||||||
|
|
||||||
gestures = {
|
|
||||||
workspace_swipe = "on";
|
|
||||||
workspace_swipe_create_new = "false";
|
|
||||||
workspace_swipe_touch = lib.mkIf config.desktop.hyprland.hardware.Lillie.enable "true";
|
|
||||||
};
|
|
||||||
|
|
||||||
device = lib.mkIf config.desktop.hyprland.hardware.Lenni.enable {
|
|
||||||
name = "pixa3854:00-093a:0274-touchpad";
|
|
||||||
sensitivity = 0;
|
|
||||||
natural_scroll = "yes";
|
|
||||||
};
|
|
||||||
|
|
||||||
windowrule = [
|
|
||||||
"idleinhibit fullscreen, ^(firefox)$"
|
|
||||||
"float, ^(thunar)$"
|
|
||||||
"stayfocused, title:^(Enpass Assistant)$"
|
|
||||||
"pin, title:^(Enpass Assistant)$"
|
|
||||||
"center, title:^(Enpass Assistant)$"
|
|
||||||
"float, ^(Enpass)$"
|
|
||||||
"center, ^(Enpass)$"
|
|
||||||
];
|
|
||||||
|
|
||||||
windowrulev2 = [
|
|
||||||
"center, xwayland:(1)"
|
|
||||||
"nofocus,class:^jetbrains-(?!toolbox),floating:1,title:^win\d+$"
|
|
||||||
''workspace +0, workspace:name:special:ctrl, floating:0''
|
|
||||||
''float, workspace:name:special:altgr, onworkspace:w[2]''
|
|
||||||
''float, workspace:name:special:strg, onworkspace:w[1]''
|
|
||||||
''workspace +0, workspace:name:special:strg, floating:0''
|
|
||||||
];
|
|
||||||
|
|
||||||
"$mainMod" = "SUPER";
|
|
||||||
|
|
||||||
bind = [
|
|
||||||
''$mainMod, Q, exec, kitty''
|
|
||||||
''$mainMod, C, killactive, ''
|
|
||||||
''$mainMod, M, exit, ''
|
|
||||||
''$mainMod, E, exec, thunar''
|
|
||||||
''$mainMod, V, togglefloating, ''
|
|
||||||
''$mainMod, R, exec, fuzzel''
|
|
||||||
''$mainMod, P, exec, Enpass''
|
|
||||||
''$mainMod, F, fullscreen''
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
|
||||||
''$mainMod, h, movefocus, l''
|
|
||||||
''$mainMod, l, movefocus, r''
|
|
||||||
''$mainMod, k, movefocus, u''
|
|
||||||
''$mainMod, j, movefocus, d''
|
|
||||||
|
|
||||||
'', XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle''
|
|
||||||
'', XF86AudioPrev, exec, playerctl previous''
|
|
||||||
'', XF86AudioPlay, exec, playerctl play-pause''
|
|
||||||
'', XF86AudioNext, exec, playerctl next''
|
|
||||||
'', print, exec, grim -g "$(slurp)" - | wl-copy -t image/png''
|
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
|
||||||
''$mainMod, 1, exec, $SCRIPTS/workspaces.sh 1''
|
|
||||||
''$mainMod, 2, exec, $SCRIPTS/workspaces.sh 2''
|
|
||||||
''$mainMod, 3, exec, $SCRIPTS/workspaces.sh 3''
|
|
||||||
''$mainMod, 4, exec, $SCRIPTS/workspaces.sh 4''
|
|
||||||
''$mainMod, 5, exec, $SCRIPTS/workspaces.sh 5''
|
|
||||||
''$mainMod, 6, exec, $SCRIPTS/workspaces.sh 6''
|
|
||||||
''$mainMod, 7, exec, $SCRIPTS/workspaces.sh 7''
|
|
||||||
''$mainMod, 8, exec, $SCRIPTS/workspaces.sh 8''
|
|
||||||
''$mainMod, 9, exec, $SCRIPTS/workspaces.sh 9''
|
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
''$mainMod SHIFT, 1, movetoworkspace, 1''
|
|
||||||
''$mainMod SHIFT, 2, movetoworkspace, 2''
|
|
||||||
''$mainMod SHIFT, 3, movetoworkspace, 3''
|
|
||||||
''$mainMod SHIFT, 4, movetoworkspace, 4''
|
|
||||||
''$mainMod SHIFT, 5, movetoworkspace, 5''
|
|
||||||
''$mainMod SHIFT, 6, movetoworkspace, 6''
|
|
||||||
''$mainMod SHIFT, 7, movetoworkspace, 7''
|
|
||||||
''$mainMod SHIFT, 8, movetoworkspace, 8''
|
|
||||||
''$mainMod SHIFT, 9, movetoworkspace, 9''
|
|
||||||
|
|
||||||
# Monitor focus
|
|
||||||
''$mainMod ALT, 1, focusmonitor, 0''
|
|
||||||
''$mainMod ALT, 2, focusmonitor, 1''
|
|
||||||
''$mainMod ALT, 3, focusmonitor, 2''
|
|
||||||
''$mainMod ALT, 4, focusmonitor, 3''
|
|
||||||
''$mainMod ALT, 5, focusmonitor, 4''
|
|
||||||
''$mainMod ALT, 6, focusmonitor, 5''
|
|
||||||
''$mainMod ALT, 7, focusmonitor, 6''
|
|
||||||
''$mainMod ALT, 8, focusmonitor, 7''
|
|
||||||
''$mainMod ALT, 9, focusmonitor, 8''
|
|
||||||
''$mainMod ALT, 0, focusmonitor, 9''
|
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
|
||||||
''$mainMod, mouse_down, workspace, e+1''
|
|
||||||
''$mainMod, mouse_up, workspace, e-1''
|
|
||||||
];
|
|
||||||
|
|
||||||
binde = [
|
|
||||||
'', XF86AudioLowerVolume, exec, $SCRIPTS/volume.sh -5''
|
|
||||||
'', XF86AudioRaiseVolume, exec, $SCRIPTS/volume.sh 5''
|
|
||||||
];
|
|
||||||
|
|
||||||
bindel = [
|
|
||||||
'', XF86MonBrightnessDown, exec, $SCRIPTS/brightness.sh -4800''
|
|
||||||
'', XF86MonBrightnessUp, exec, $SCRIPTS/brightness.sh 4800''
|
|
||||||
];
|
|
||||||
|
|
||||||
bindr = [
|
|
||||||
''SUPERCTRL, Control_L, togglespecialworkspace, ctrl''
|
|
||||||
''SUPERALT, Alt_L, togglespecialworkspace, alt''
|
|
||||||
''SUPERALT, ALT_R, togglespecialworkspace, altgr''
|
|
||||||
''SUPERCTRL, Control_R, togglespecialworkspace, strg''
|
|
||||||
];
|
|
||||||
|
|
||||||
bindm = [
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
''$mainMod, mouse:272, movewindow''
|
|
||||||
''$mainMod, mouse:273, resizewindow''
|
|
||||||
];
|
|
||||||
|
|
||||||
# ------------------------------------------
|
|
||||||
# ########################################
|
|
||||||
# ####### Workspaces ###########
|
|
||||||
# ########################################
|
|
||||||
# ------------------------------------------
|
|
||||||
|
|
||||||
workspace = [
|
|
||||||
"1, persistent:true"
|
|
||||||
"2, persistent:true"
|
|
||||||
"3, persistent:true"
|
|
||||||
"4, persistent:true"
|
|
||||||
"5, persistent:true"
|
|
||||||
"6, persistent:true"
|
|
||||||
"7, persistent:true"
|
|
||||||
"8, persistent:true"
|
|
||||||
"8, persistent:true"
|
|
||||||
"9, persistent:true"
|
|
||||||
|
|
||||||
"name:special:ctrl, persistent:true"
|
|
||||||
"name:special:alt, persistent:true"
|
|
||||||
"name:special:altgr, persistent:true"
|
|
||||||
"name:special:strg, persistent:true"
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,56 +1,56 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
programs.hyprlock = lib.mkIf config.desktop.hyprlock.enable {
|
programs.hyprlock = lib.mkIf config.desktop.hyprlock.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
background = {
|
background = {
|
||||||
monitor = "";
|
monitor = "";
|
||||||
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
|
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
|
||||||
blur_passes = 3; # 0 disables blurring
|
blur_passes = 3; # 0 disables blurring
|
||||||
blur_size = 7;
|
blur_size = 7;
|
||||||
noise = 0.0117;
|
noise = 0.0117;
|
||||||
contrast = 0.8916;
|
contrast = 0.8916;
|
||||||
brightness = 0.8172;
|
brightness = 0.8172;
|
||||||
vibrancy = 0.1696;
|
vibrancy = 0.1696;
|
||||||
vibrancy_darkness = 0.0;
|
vibrancy_darkness = 0.0;
|
||||||
};
|
};
|
||||||
|
|
||||||
input-field = {
|
input-field = {
|
||||||
monitor = "";
|
monitor = "";
|
||||||
size = "300, 75";
|
size = "300, 75";
|
||||||
outline_thickness = 3;
|
outline_thickness = 3;
|
||||||
dots_size = 0.33; # Scale of input-field height, 0.2 - 0.8
|
dots_size = 0.33; # Scale of input-field height, 0.2 - 0.8
|
||||||
dots_spacing = 0.15; # Scale of dots' absolute size, 0.0 - 1.0
|
dots_spacing = 0.15; # Scale of dots' absolute size, 0.0 - 1.0
|
||||||
dots_center = false;
|
dots_center = false;
|
||||||
dots_rounding = -1; # -1 default circle, -2 follow input-field rounding
|
dots_rounding = -1; # -1 default circle, -2 follow input-field rounding
|
||||||
fade_on_empty = true;
|
fade_on_empty = true;
|
||||||
fade_timeout = 1000; # Milliseconds before fade_on_empty is triggered.
|
fade_timeout = 1000; # Milliseconds before fade_on_empty is triggered.
|
||||||
placeholder_text = "<i>Input Password...</i>"; # Text rendered in the input box when it's empty.
|
placeholder_text = "<i>Input Password...</i>"; # Text rendered in the input box when it's empty.
|
||||||
hide_input = false;
|
hide_input = false;
|
||||||
rounding = -1; # -1 means complete rounding (circle/oval)
|
rounding = -1; # -1 means complete rounding (circle/oval)
|
||||||
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>"; # can be set to empty
|
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>"; # can be set to empty
|
||||||
fail_transition = 300; # transition time in ms between normal outer_color and fail_color
|
fail_transition = 300; # transition time in ms between normal outer_color and fail_color
|
||||||
capslock_color = -1;
|
capslock_color = -1;
|
||||||
numlock_color = -1;
|
numlock_color = -1;
|
||||||
bothlock_color = -1; # when both locks are active. -1 means don't change outer color (same for above)
|
bothlock_color = -1; # when both locks are active. -1 means don't change outer color (same for above)
|
||||||
invert_numlock = false; # change color if numlock is off
|
invert_numlock = false; # change color if numlock is off
|
||||||
position = "0, -20";
|
position = "0, -20";
|
||||||
halign = "center";
|
halign = "center";
|
||||||
valign = "center";
|
valign = "center";
|
||||||
};
|
};
|
||||||
|
|
||||||
label = {
|
label = {
|
||||||
monitor = "";
|
monitor = "";
|
||||||
text = "Hi there, $USER";
|
text = "Hi there, $USER";
|
||||||
color = "rgba(200, 200, 200, 1.0)";
|
color = "rgba(200, 200, 200, 1.0)";
|
||||||
font_size = 25;
|
font_size = 25;
|
||||||
font_family = "Noto Sans";
|
font_family = "Noto Sans";
|
||||||
position = "0, 80";
|
position = "0, 80";
|
||||||
halign = "center";
|
halign = "center";
|
||||||
valign = "center";
|
valign = "center";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
services.hyprpaper = lib.mkIf config.desktop.hyprpaper.enable {
|
services.hyprpaper = lib.mkIf config.desktop.hyprpaper.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
||||||
splash = true;
|
splash = true;
|
||||||
|
|
||||||
ipc = "off";
|
ipc = "off";
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
services.mako = lib.mkIf config.desktop.mako.enable {
|
services.mako = lib.mkIf config.desktop.mako.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
borderRadius = 10;
|
borderRadius = 10;
|
||||||
borderSize = 2;
|
borderSize = 2;
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
default = false;
|
default = false;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
Lillie.enable = lib.mkOption{
|
Lillie.enable = lib.mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
home.packages = lib.mkIf config.desktop.utils.enable [
|
home.packages = lib.mkIf config.desktop.utils.enable [
|
||||||
|
|
||||||
pkgs.hyprpicker
|
|
||||||
pkgs.hyprcursor
|
|
||||||
|
|
||||||
pkgs.grim
|
pkgs.hyprpicker
|
||||||
pkgs.slurp
|
pkgs.hyprcursor
|
||||||
pkgs.wl-clipboard
|
|
||||||
pkgs.playerctl
|
|
||||||
|
|
||||||
pkgs.dconf
|
pkgs.grim
|
||||||
|
pkgs.slurp
|
||||||
pkgs.jq
|
pkgs.wl-clipboard
|
||||||
|
pkgs.playerctl
|
||||||
pkgs.pulseaudio
|
|
||||||
pkgs.inotify-tools
|
pkgs.dconf
|
||||||
pkgs.papirus-icon-theme
|
|
||||||
pkgs.eww
|
pkgs.jq
|
||||||
];
|
|
||||||
|
pkgs.pulseaudio
|
||||||
|
pkgs.inotify-tools
|
||||||
|
pkgs.papirus-icon-theme
|
||||||
|
pkgs.eww
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,83 +1,83 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
programs.wlogout = lib.mkIf config.desktop.wlogout.enable {
|
programs.wlogout = lib.mkIf config.desktop.wlogout.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
layout = [
|
layout = [
|
||||||
{
|
{
|
||||||
label = "shutdown";
|
label = "shutdown";
|
||||||
action = "systemctl poweroff";
|
action = "systemctl poweroff";
|
||||||
text = "Shutdown";
|
text = "Shutdown";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
label = "hyprland";
|
label = "hyprland";
|
||||||
action = "hyprctl dispatch exit";
|
action = "hyprctl dispatch exit";
|
||||||
text = "Exit Hyprland";
|
text = "Exit Hyprland";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
label = "whatever";
|
label = "whatever";
|
||||||
action = "";
|
action = "";
|
||||||
text = "whatever";
|
text = "whatever";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
label = "reboot";
|
label = "reboot";
|
||||||
action = "systemctl reboot";
|
action = "systemctl reboot";
|
||||||
text = "Reboot";
|
text = "Reboot";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
label = "suspend";
|
label = "suspend";
|
||||||
action = "systemctl suspend";
|
action = "systemctl suspend";
|
||||||
text = "Suspend";
|
text = "Suspend";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
label = "hibernate";
|
label = "hibernate";
|
||||||
action = "systemctl hibernate";
|
action = "systemctl hibernate";
|
||||||
text = "Hibernate";
|
text = "Hibernate";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
style = ''
|
style = ''
|
||||||
@import url("file:///home/willifan/.config/gtk-4.0/gtk.css");
|
@import url("file:///home/willifan/.config/gtk-4.0/gtk.css");
|
||||||
* {
|
* {
|
||||||
background-image: none;
|
background-image: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
window {
|
window {
|
||||||
background-color: rgba(12, 12, 12, 0.9);
|
background-color: rgba(12, 12, 12, 0.9);
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
border-color: #ffa44b;
|
border-color: #ffa44b;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: 25%;
|
background-size: 25%;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:focus, button:active, button:hover {
|
button:focus, button:active, button:hover {
|
||||||
/*background-color: #3700B3;*/
|
/*background-color: #3700B3;*/
|
||||||
outline-style: none;
|
outline-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#suspend {
|
#suspend {
|
||||||
background-image: image(url("/home/willifan/.config/desktop-utils/images/suspend.png"));
|
background-image: image(url("/home/willifan/.config/desktop-utils/images/suspend.png"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#hibernate {
|
#hibernate {
|
||||||
background-image: image(url("/home/willifan/.config/desktop-utils/images/hibernate.png"));
|
background-image: image(url("/home/willifan/.config/desktop-utils/images/hibernate.png"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#shutdown {
|
#shutdown {
|
||||||
background-image: image(url("/home/willifan/.config/desktop-utils/images/shutdown.png"));
|
background-image: image(url("/home/willifan/.config/desktop-utils/images/shutdown.png"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#reboot {
|
#reboot {
|
||||||
background-image: image(url("/home/willifan/.config/desktop-utils/images/reboot.png"));
|
background-image: image(url("/home/willifan/.config/desktop-utils/images/reboot.png"));
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
programs.kitty = lib.mkIf config.desktop.kitty.enable {
|
programs.kitty = lib.mkIf config.desktop.kitty.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
enable_audio_bell = false;
|
enable_audio_bell = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,10 +30,10 @@ lib.mkIf config.desktop.enable {
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
keyboard.xkb = {
|
keyboard.xkb = {
|
||||||
layout = "eu";
|
layout = "eu";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
window-rules = [
|
window-rules = [
|
||||||
{
|
{
|
||||||
geometry-corner-radius = {
|
geometry-corner-radius = {
|
||||||
|
|
|
@ -2,61 +2,61 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
programs.vscode = lib.mkIf config.desktop.vscodium.enable {
|
programs.vscode = lib.mkIf config.desktop.vscodium.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.vscodium;
|
package = pkgs.vscodium;
|
||||||
|
|
||||||
userSettings = {
|
userSettings = {
|
||||||
"[nix]"."editor.tabSize" = 2;
|
"[nix]"."editor.tabSize" = 2;
|
||||||
"explorer.confirmDragAndDrop" = false;
|
"explorer.confirmDragAndDrop" = false;
|
||||||
"cmake.showOptionsMovedNotification" = false;
|
"cmake.showOptionsMovedNotification" = false;
|
||||||
"extensions.autoUpdate" = false;
|
"extensions.autoUpdate" = false;
|
||||||
|
};
|
||||||
|
extensions = with pkgs.vscode-extensions; [
|
||||||
|
# System
|
||||||
|
arrterian.nix-env-selector
|
||||||
|
bbenoist.nix
|
||||||
|
#fireblast.hyprlang-vscode
|
||||||
|
#eww-yuck.yuck
|
||||||
|
|
||||||
|
#Rust
|
||||||
|
rust-lang.rust-analyzer
|
||||||
|
serayuzgur.crates
|
||||||
|
bungcip.better-toml
|
||||||
|
vadimcn.vscode-lldb
|
||||||
|
usernamehw.errorlens
|
||||||
|
|
||||||
|
#C/C++
|
||||||
|
ms-vscode.cpptools
|
||||||
|
twxs.cmake
|
||||||
|
ms-vscode.cmake-tools
|
||||||
|
|
||||||
|
#Shell
|
||||||
|
timonwong.shellcheck
|
||||||
|
mads-hartmann.bash-ide-vscode
|
||||||
|
|
||||||
|
#Git
|
||||||
|
#phil294.git-log--graph
|
||||||
|
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||||
|
{
|
||||||
|
name = "hyprlang-vscode";
|
||||||
|
publisher = "fireblast";
|
||||||
|
version = "0.0.1";
|
||||||
|
sha256 = "lSMihMIue0qu9+97EgT5dqjbzsey0TLZDpJby+Piip4=";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "yuck";
|
||||||
|
publisher = "eww-yuck";
|
||||||
|
version = "0.0.3";
|
||||||
|
sha256 = "DITgLedaO0Ifrttu+ZXkiaVA7Ua5RXc4jXQHPYLqrcM=";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "git-log--graph";
|
||||||
|
publisher = "phil294";
|
||||||
|
version = "0.1.15";
|
||||||
|
sha256 = "lvjDkvXSX7rw7HyyK3WWQLnGezvL6FPEgtjIi8KWkU0=";
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
extensions = with pkgs.vscode-extensions; [
|
|
||||||
# System
|
|
||||||
arrterian.nix-env-selector
|
|
||||||
bbenoist.nix
|
|
||||||
#fireblast.hyprlang-vscode
|
|
||||||
#eww-yuck.yuck
|
|
||||||
|
|
||||||
#Rust
|
|
||||||
rust-lang.rust-analyzer
|
|
||||||
serayuzgur.crates
|
|
||||||
bungcip.better-toml
|
|
||||||
vadimcn.vscode-lldb
|
|
||||||
usernamehw.errorlens
|
|
||||||
|
|
||||||
#C/C++
|
|
||||||
ms-vscode.cpptools
|
|
||||||
twxs.cmake
|
|
||||||
ms-vscode.cmake-tools
|
|
||||||
|
|
||||||
#Shell
|
|
||||||
timonwong.shellcheck
|
|
||||||
mads-hartmann.bash-ide-vscode
|
|
||||||
|
|
||||||
#Git
|
|
||||||
#phil294.git-log--graph
|
|
||||||
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
|
||||||
{
|
|
||||||
name = "hyprlang-vscode";
|
|
||||||
publisher = "fireblast";
|
|
||||||
version = "0.0.1";
|
|
||||||
sha256 = "lSMihMIue0qu9+97EgT5dqjbzsey0TLZDpJby+Piip4=";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "yuck";
|
|
||||||
publisher = "eww-yuck";
|
|
||||||
version = "0.0.3";
|
|
||||||
sha256 = "DITgLedaO0Ifrttu+ZXkiaVA7Ua5RXc4jXQHPYLqrcM=";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "git-log--graph";
|
|
||||||
publisher = "phil294";
|
|
||||||
version = "0.1.15";
|
|
||||||
sha256 = "lvjDkvXSX7rw7HyyK3WWQLnGezvL6FPEgtjIi8KWkU0=";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.gitAndTools.gitFull;
|
package = pkgs.gitAndTools.gitFull;
|
||||||
userName = "willifan";
|
userName = "willifan";
|
||||||
userEmail = "willifan@pm.me";
|
userEmail = "willifan@pm.me";
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,2 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{ }
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
bash = {
|
bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ls = "eza";
|
ls = "eza";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
starship = {
|
starship = {
|
||||||
enableBashIntegration = true;
|
enableBashIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# programs.bash.blesh.enable = true;
|
# programs.bash.blesh.enable = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,13 +10,13 @@
|
||||||
lightness = 0.69;
|
lightness = 0.69;
|
||||||
color_align = {
|
color_align = {
|
||||||
mode = "horizontal";
|
mode = "horizontal";
|
||||||
custom_colors = [];
|
custom_colors = [ ];
|
||||||
fore_back = null;
|
fore_back = null;
|
||||||
};
|
};
|
||||||
backend = "fastfetch";
|
backend = "fastfetch";
|
||||||
args = null;
|
args = null;
|
||||||
distro = null;
|
distro = null;
|
||||||
pride_month_shown = [];
|
pride_month_shown = [ ];
|
||||||
pride_month_disable = false;
|
pride_month_disable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -25,10 +25,10 @@
|
||||||
settings = {
|
settings = {
|
||||||
modules = [
|
modules = [
|
||||||
"title"
|
"title"
|
||||||
"separator"
|
"separator"
|
||||||
"os"
|
"os"
|
||||||
"host"
|
"host"
|
||||||
{
|
{
|
||||||
type = "localip";
|
type = "localip";
|
||||||
showIpv6 = false;
|
showIpv6 = false;
|
||||||
showMac = false;
|
showMac = false;
|
||||||
|
@ -36,18 +36,18 @@
|
||||||
showMtu = false;
|
showMtu = false;
|
||||||
showLoop = false;
|
showLoop = false;
|
||||||
showFlags = false;
|
showFlags = false;
|
||||||
}
|
}
|
||||||
"kernel"
|
"kernel"
|
||||||
"uptime"
|
"uptime"
|
||||||
"packages"
|
"packages"
|
||||||
"shell"
|
"shell"
|
||||||
"wm"
|
"wm"
|
||||||
"cpu"
|
"cpu"
|
||||||
"gpu"
|
"gpu"
|
||||||
"memory"
|
"memory"
|
||||||
"break"
|
"break"
|
||||||
"colors"
|
"colors"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{ }
|
||||||
}
|
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
format = lib.concatStrings [
|
format = lib.concatStrings [
|
||||||
"[ ](fg:twelve bg:trans_blue)"
|
"[ ](fg:twelve bg:trans_blue)"
|
||||||
"[ ](bg:trans_blue)[ ](fg:trans_blue bg:trans_pink)"
|
"[ ](bg:trans_blue)[ ](fg:trans_blue bg:trans_pink)"
|
||||||
"$hostname"
|
"$hostname"
|
||||||
"[ ](bg:trans_pink)[ ](fg:trans_pink bg:trans_white)"
|
"[ ](bg:trans_pink)[ ](fg:trans_pink bg:trans_white)"
|
||||||
"$directory"
|
"$directory"
|
||||||
"[ ](bg:trans_white)[ ](fg:trans_white bg:trans_pink)"
|
"[ ](bg:trans_white)[ ](fg:trans_white bg:trans_pink)"
|
||||||
"("
|
"("
|
||||||
"$git_branch"
|
"$git_branch"
|
||||||
"$git_status"
|
"$git_status"
|
||||||
")"
|
")"
|
||||||
"[ ](bg:trans_pink)[ ](fg:trans_pink bg:trans_blue)"
|
"[ ](bg:trans_pink)[ ](fg:trans_pink bg:trans_blue)"
|
||||||
"$character"
|
"$character"
|
||||||
|
@ -22,13 +22,13 @@
|
||||||
right_format = lib.concatStrings [
|
right_format = lib.concatStrings [
|
||||||
"$cmd_duration"
|
"$cmd_duration"
|
||||||
"("
|
"("
|
||||||
"$python"
|
"$python"
|
||||||
"$conda"
|
"$conda"
|
||||||
"$c"
|
"$c"
|
||||||
"$cmake"
|
"$cmake"
|
||||||
"$golang"
|
"$golang"
|
||||||
"$haskell"
|
"$haskell"
|
||||||
"$rust"
|
"$rust"
|
||||||
")"
|
")"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -42,28 +42,28 @@
|
||||||
first = config.lib.stylix.colors.withHashtag.base00;
|
first = config.lib.stylix.colors.withHashtag.base00;
|
||||||
second = config.lib.stylix.colors.withHashtag.base01;
|
second = config.lib.stylix.colors.withHashtag.base01;
|
||||||
third = config.lib.stylix.colors.withHashtag.base02;
|
third = config.lib.stylix.colors.withHashtag.base02;
|
||||||
fourth = config.lib.stylix.colors.withHashtag.base03;
|
fourth = config.lib.stylix.colors.withHashtag.base03;
|
||||||
fifth = config.lib.stylix.colors.withHashtag.base04;
|
fifth = config.lib.stylix.colors.withHashtag.base04;
|
||||||
sixth = config.lib.stylix.colors.withHashtag.base05;
|
sixth = config.lib.stylix.colors.withHashtag.base05;
|
||||||
seventh = config.lib.stylix.colors.withHashtag.base06;
|
seventh = config.lib.stylix.colors.withHashtag.base06;
|
||||||
eighth = config.lib.stylix.colors.withHashtag.base07;
|
eighth = config.lib.stylix.colors.withHashtag.base07;
|
||||||
baseeight = config.lib.stylix.colors.withHashtag.base08;
|
baseeight = config.lib.stylix.colors.withHashtag.base08;
|
||||||
basenine = config.lib.stylix.colors.withHashtag.base09;
|
basenine = config.lib.stylix.colors.withHashtag.base09;
|
||||||
ten = config.lib.stylix.colors.withHashtag.base0A;
|
ten = config.lib.stylix.colors.withHashtag.base0A;
|
||||||
eleven = config.lib.stylix.colors.withHashtag.base0B;
|
eleven = config.lib.stylix.colors.withHashtag.base0B;
|
||||||
twelve = config.lib.stylix.colors.withHashtag.base0C;
|
twelve = config.lib.stylix.colors.withHashtag.base0C;
|
||||||
thirteen = config.lib.stylix.colors.withHashtag.base0D;
|
thirteen = config.lib.stylix.colors.withHashtag.base0D;
|
||||||
fourteen = config.lib.stylix.colors.withHashtag.base0E;
|
fourteen = config.lib.stylix.colors.withHashtag.base0E;
|
||||||
fifteen = config.lib.stylix.colors.withHashtag.base0F;
|
fifteen = config.lib.stylix.colors.withHashtag.base0F;
|
||||||
trans_blue = "#55CDFD";
|
trans_blue = "#55CDFD";
|
||||||
trans_pink = "#F6AAB7";
|
trans_pink = "#F6AAB7";
|
||||||
trans_white = "#FFFFFF";
|
trans_white = "#FFFFFF";
|
||||||
pride_red = "#FF1E26";
|
pride_red = "#FF1E26";
|
||||||
pride_orange = "#FE941E";
|
pride_orange = "#FE941E";
|
||||||
pride_yellow = "#FFFF00";
|
pride_yellow = "#FFFF00";
|
||||||
pride_green = "#06BD00";
|
pride_green = "#06BD00";
|
||||||
pride_blue = "#001A98";
|
pride_blue = "#001A98";
|
||||||
pride_violet = "#760088";
|
pride_violet = "#760088";
|
||||||
# Text color:
|
# Text color:
|
||||||
black = "#272D37";
|
black = "#272D37";
|
||||||
white = "#CBF4F8";
|
white = "#CBF4F8";
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
format = "[ $path](bold $style)($style)[$read_only](bold $style)";
|
format = "[ $path](bold $style)($style)[$read_only](bold $style)";
|
||||||
truncation_symbol = "…/";
|
truncation_symbol = "…/";
|
||||||
truncate_to_repo = true;
|
truncate_to_repo = true;
|
||||||
read_only =" ";
|
read_only = " ";
|
||||||
};
|
};
|
||||||
|
|
||||||
c = {
|
c = {
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
symbol = " ";
|
symbol = " ";
|
||||||
version_format = "\${raw}";
|
version_format = "\${raw}";
|
||||||
style = "bg:fourth fg:white";
|
style = "bg:fourth fg:white";
|
||||||
python_binary = ["./venv/bin/python" "./env/Scripts/python" "python" "python3" "python2"];
|
python_binary = [ "./venv/bin/python" "./env/Scripts/python" "python" "python3" "python2" ];
|
||||||
format = "[$symbol($version)]($style)[ (\($virtualenv\)) ](bg:fourth fg:white)";
|
format = "[$symbol($version)]($style)[ (\($virtualenv\)) ](bg:fourth fg:white)";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -7,62 +7,62 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
home-manager.users.willifan = {
|
home-manager.users.willifan = {
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
|
||||||
|
|
||||||
autoEnable = true;
|
|
||||||
|
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/pasque.yaml";
|
|
||||||
override = {
|
|
||||||
base0D = "F3196E";
|
|
||||||
base0F = "CFAACF";
|
|
||||||
};
|
|
||||||
|
|
||||||
cursor = {
|
|
||||||
name = "Bibata-Modern-Classic";
|
|
||||||
package = pkgs.bibata-cursors;
|
|
||||||
size = 18;
|
|
||||||
};
|
|
||||||
|
|
||||||
fonts = {
|
|
||||||
# packages = [ pkgs.nerdfonts ];
|
|
||||||
# emoji = {
|
|
||||||
# package = pkgs.;
|
|
||||||
# name = "";
|
|
||||||
# };
|
|
||||||
monospace = {
|
|
||||||
package = pkgs.nerd-fonts.jetbrains-mono;
|
|
||||||
name = "JetBrainsMono Nerd Font";
|
|
||||||
};
|
|
||||||
# sansSerif = {
|
|
||||||
# package = pkgs.;
|
|
||||||
# name = "";
|
|
||||||
# };
|
|
||||||
# serif = {
|
|
||||||
# package = pkgs.;
|
|
||||||
# name = "";
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
|
|
||||||
image = wallpaper;
|
|
||||||
|
|
||||||
opacity = {
|
|
||||||
applications = 0.9;
|
|
||||||
desktop = 0.9;
|
|
||||||
popups = 0.9;
|
|
||||||
terminal = 0.9;
|
|
||||||
};
|
|
||||||
|
|
||||||
polarity = "dark";
|
|
||||||
|
|
||||||
iconTheme = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
dark = "Papirus-Dark";
|
|
||||||
package = pkgs.papirus-icon-theme;
|
autoEnable = true;
|
||||||
|
|
||||||
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/pasque.yaml";
|
||||||
|
override = {
|
||||||
|
base0D = "F3196E";
|
||||||
|
base0F = "CFAACF";
|
||||||
|
};
|
||||||
|
|
||||||
|
cursor = {
|
||||||
|
name = "Bibata-Modern-Classic";
|
||||||
|
package = pkgs.bibata-cursors;
|
||||||
|
size = 18;
|
||||||
|
};
|
||||||
|
|
||||||
|
fonts = {
|
||||||
|
# packages = [ pkgs.nerdfonts ];
|
||||||
|
# emoji = {
|
||||||
|
# package = pkgs.;
|
||||||
|
# name = "";
|
||||||
|
# };
|
||||||
|
monospace = {
|
||||||
|
package = pkgs.nerd-fonts.jetbrains-mono;
|
||||||
|
name = "JetBrainsMono Nerd Font";
|
||||||
|
};
|
||||||
|
# sansSerif = {
|
||||||
|
# package = pkgs.;
|
||||||
|
# name = "";
|
||||||
|
# };
|
||||||
|
# serif = {
|
||||||
|
# package = pkgs.;
|
||||||
|
# name = "";
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
|
||||||
|
image = wallpaper;
|
||||||
|
|
||||||
|
opacity = {
|
||||||
|
applications = 0.9;
|
||||||
|
desktop = 0.9;
|
||||||
|
popups = 0.9;
|
||||||
|
terminal = 0.9;
|
||||||
|
};
|
||||||
|
|
||||||
|
polarity = "dark";
|
||||||
|
|
||||||
|
iconTheme = {
|
||||||
|
enable = true;
|
||||||
|
dark = "Papirus-Dark";
|
||||||
|
package = pkgs.papirus-icon-theme;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{ appimageTools
|
||||||
appimageTools,
|
, fetchurl
|
||||||
fetchurl,
|
,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pname = "UVtools";
|
pname = "UVtools";
|
||||||
|
@ -22,6 +22,6 @@ appimageTools.wrapType2 {
|
||||||
install -m 444 -D ${appimageContents}/UVtools.desktop $out/share/applications/UVtools.desktop
|
install -m 444 -D ${appimageContents}/UVtools.desktop $out/share/applications/UVtools.desktop
|
||||||
install -m 444 -D ${appimageContents}/UVtools.png \
|
install -m 444 -D ${appimageContents}/UVtools.png \
|
||||||
$out/share/icons/hicolor/256x256/apps/UVtools.png
|
$out/share/icons/hicolor/256x256/apps/UVtools.png
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{ appimageTools
|
||||||
appimageTools,
|
, fetchurl
|
||||||
fetchurl,
|
,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pname = "yuzu";
|
pname = "yuzu";
|
||||||
|
|
Loading…
Add table
Reference in a new issue