Compare commits
10 Commits
k3s
...
a13676311a
| Author | SHA1 | Date | |
|---|---|---|---|
| a13676311a | |||
| ec57592715 | |||
| 051c223eb7 | |||
| 6030f6ea42 | |||
| df77fd5c74 | |||
| 458bcb4cdf | |||
| 40e10bab34 | |||
| 3477a3480f | |||
| d2ae7f8e11 | |||
| ff3a0a4738 |
24
flake.lock
generated
24
flake.lock
generated
@@ -52,10 +52,34 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"plasma-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"home-manager": [
|
||||||
|
"home-manager"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1728750492,
|
||||||
|
"narHash": "sha256-9IHlIsH4gLqQjS2lFbEnsl/ItdqzBBLWLsyXS0k0jf8=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "plasma-manager",
|
||||||
|
"rev": "c6d4b6f3e0138c08f37d66fcfbcbe37dab08f108",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "plasma-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
"plasma-manager": "plasma-manager",
|
||||||
"sops-nix": "sops-nix"
|
"sops-nix": "sops-nix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
29
flake.nix
29
flake.nix
@@ -13,6 +13,12 @@
|
|||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plasma-manager = {
|
||||||
|
url = "github:nix-community/plasma-manager";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.home-manager.follows = "home-manager";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... } @ inputs: let
|
outputs = { self, nixpkgs, ... } @ inputs: let
|
||||||
@@ -23,6 +29,7 @@
|
|||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.sharedModules = [ inputs.plasma-manager.homeManagerModules.plasma-manager ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
@@ -55,22 +62,12 @@
|
|||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = baseModules ++ [
|
modules = baseModules ++ [
|
||||||
./machines/boxy/configuration.nix
|
./machines/boxy/configuration.nix
|
||||||
# inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
# {
|
{
|
||||||
# home-manager.users.johno = import ./home/home-default.nix;
|
home-manager.users.johno = import ./home/home-default.nix;
|
||||||
# home-manager.extraSpecialArgs.customPkgs =
|
home-manager.extraSpecialArgs.customPkgs =
|
||||||
# nixpkgs.legacyPackages."${system}".callPackage ./packages {};
|
nixpkgs.legacyPackages."${system}".callPackage ./packages {};
|
||||||
# customPkgs = nixpkgs.legacyPackages."${system}".callPackage ./packages {};
|
}
|
||||||
# }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
nixosConfigurations.k3s-nix = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
modules = [
|
|
||||||
./roles
|
|
||||||
inputs.sops-nix.nixosModules.sops
|
|
||||||
./machines/k3s-nix/configuration.nix
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -104,8 +104,9 @@
|
|||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./modules/emacs
|
./modules/emacs
|
||||||
./modules/lutris
|
|
||||||
./modules/i3+sway
|
./modules/i3+sway
|
||||||
|
./modules/lutris
|
||||||
|
./modules/plasma-manager
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.bash.enable = true;
|
programs.bash.enable = true;
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ let
|
|||||||
cfg = config.home.i3_sway;
|
cfg = config.home.i3_sway;
|
||||||
i3_cfg = config.xsession.windowManager.i3.config;
|
i3_cfg = config.xsession.windowManager.i3.config;
|
||||||
|
|
||||||
shared_config = recursiveUpdate {
|
shared_config = recursiveUpdate rec {
|
||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
terminal = "kitty";
|
terminal = "kitty";
|
||||||
defaultWorkspace = "workspace number 1";
|
defaultWorkspace = "workspace number 1";
|
||||||
|
|
||||||
keybindings = {
|
keybindings = {
|
||||||
"${shared_config.modifier}+Return" = "exec ${i3_cfg.terminal}";
|
"${shared_config.modifier}+Return" = "exec ${terminal}";
|
||||||
"${shared_config.modifier}+Shift+q" = "kill";
|
"${shared_config.modifier}+Shift+q" = "kill";
|
||||||
"${shared_config.modifier}+d" = "exec ${i3_cfg.menu}";
|
"${shared_config.modifier}+d" = "exec ${i3_cfg.menu}";
|
||||||
|
|
||||||
@@ -129,6 +129,13 @@ in {
|
|||||||
"type:keyboard" = {
|
"type:keyboard" = {
|
||||||
xkb_options = "caps:escape";
|
xkb_options = "caps:escape";
|
||||||
};
|
};
|
||||||
|
"type:touchpad" = {
|
||||||
|
tap = "enabled";
|
||||||
|
tap_button_map = "lrm";
|
||||||
|
drag = "enabled";
|
||||||
|
natural_scroll = "disabled";
|
||||||
|
dwt = "enabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|||||||
301
home/modules/plasma-manager/default.nix
Normal file
301
home/modules/plasma-manager/default.nix
Normal file
@@ -0,0 +1,301 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
|
||||||
|
# The following can be generated with the command:
|
||||||
|
# nix run github:nix-community/plasma-manager
|
||||||
|
#
|
||||||
|
# Plasma-manager options documentation
|
||||||
|
# https://nix-community.github.io/plasma-manager/options.xhtml
|
||||||
|
#
|
||||||
|
# Polonium usage
|
||||||
|
# https://github.com/zeroxoneafour/polonium/blob/master/docs/usage.md
|
||||||
|
#
|
||||||
|
# TODO: Extract this configuration into something that's a bit easier to manage
|
||||||
|
# TODO: Update shortcuts for better window/tiling/desktop management akin to i3wm
|
||||||
|
# TODO(ambitious): Add Kmail support to plasma-manager
|
||||||
|
{
|
||||||
|
programs.plasma = {
|
||||||
|
enable = true;
|
||||||
|
shortcuts = {
|
||||||
|
"ActivityManager"."switch-to-activity-3756b222-d0a9-4f71-827b-62d27908d7cb" = [ ];
|
||||||
|
"KDE Keyboard Layout Switcher"."Switch to Last-Used Keyboard Layout" = "Meta+Alt+L";
|
||||||
|
"KDE Keyboard Layout Switcher"."Switch to Next Keyboard Layout" = "Meta+Alt+K";
|
||||||
|
"kaccess"."Toggle Screen Reader On and Off" = "Meta+Alt+S";
|
||||||
|
"kcm_touchpad"."Disable Touchpad" = "Touchpad Off";
|
||||||
|
"kcm_touchpad"."Enable Touchpad" = "Touchpad On";
|
||||||
|
"kcm_touchpad"."Toggle Touchpad" = ["Touchpad Toggle" "Meta+Ctrl+Zenkaku Hankaku,Touchpad Toggle" "Meta+Ctrl+Zenkaku Hankaku,Toggle Touchpad"];
|
||||||
|
"kmix"."decrease_microphone_volume" = "Microphone Volume Down";
|
||||||
|
"kmix"."decrease_volume" = "Volume Down";
|
||||||
|
"kmix"."decrease_volume_small" = "Shift+Volume Down";
|
||||||
|
"kmix"."increase_microphone_volume" = "Microphone Volume Up";
|
||||||
|
"kmix"."increase_volume" = "Volume Up";
|
||||||
|
"kmix"."increase_volume_small" = "Shift+Volume Up";
|
||||||
|
"kmix"."mic_mute" = ["Microphone Mute" "Meta+Volume Mute,Microphone Mute" "Meta+Volume Mute,Mute Microphone"];
|
||||||
|
"kmix"."mute" = "Volume Mute";
|
||||||
|
"ksmserver"."Halt Without Confirmation" = "none,,Shut Down Without Confirmation";
|
||||||
|
"ksmserver"."Lock Session" = ["Meta+L" "Screensaver,Meta+L" "Screensaver,Lock Session"];
|
||||||
|
"ksmserver"."Log Out" = "Ctrl+Alt+Del";
|
||||||
|
"ksmserver"."Log Out Without Confirmation" = "none,,Log Out Without Confirmation";
|
||||||
|
"ksmserver"."LogOut" = "none,,Log Out";
|
||||||
|
"ksmserver"."Reboot" = "none,,Reboot";
|
||||||
|
"ksmserver"."Reboot Without Confirmation" = "none,,Reboot Without Confirmation";
|
||||||
|
"ksmserver"."Shut Down" = "none,,Shut Down";
|
||||||
|
"kwin"."Activate Window Demanding Attention" = "Meta+Ctrl+A";
|
||||||
|
"kwin"."Cycle Overview" = [ ];
|
||||||
|
"kwin"."Cycle Overview Opposite" = [ ];
|
||||||
|
"kwin"."Decrease Opacity" = "none,,Decrease Opacity of Active Window by 5%";
|
||||||
|
"kwin"."Edit Tiles" = "Meta+T";
|
||||||
|
"kwin"."Expose" = "Ctrl+F9";
|
||||||
|
"kwin"."ExposeAll" = ["Ctrl+F10" "Launch (C),Ctrl+F10" "Launch (C),Toggle Present Windows (All desktops)"];
|
||||||
|
"kwin"."ExposeClass" = "Ctrl+F7";
|
||||||
|
"kwin"."ExposeClassCurrentDesktop" = [ ];
|
||||||
|
"kwin"."Grid View" = "Meta+G";
|
||||||
|
"kwin"."Increase Opacity" = "none,,Increase Opacity of Active Window by 5%";
|
||||||
|
"kwin"."Kill Window" = "Meta+Ctrl+Esc";
|
||||||
|
"kwin"."Move Tablet to Next Output" = [ ];
|
||||||
|
"kwin"."MoveMouseToCenter" = "Meta+F6";
|
||||||
|
"kwin"."MoveMouseToFocus" = "Meta+F5";
|
||||||
|
"kwin"."MoveZoomDown" = [ ];
|
||||||
|
"kwin"."MoveZoomLeft" = [ ];
|
||||||
|
"kwin"."MoveZoomRight" = [ ];
|
||||||
|
"kwin"."MoveZoomUp" = [ ];
|
||||||
|
"kwin"."Overview" = "Meta+W";
|
||||||
|
"kwin"."Setup Window Shortcut" = "none,,Setup Window Shortcut";
|
||||||
|
"kwin"."Show Desktop" = "Meta+D";
|
||||||
|
"kwin"."Suspend Compositing" = "Alt+Shift+F12";
|
||||||
|
"kwin"."Switch One Desktop Down" = "Meta+Ctrl+Down";
|
||||||
|
"kwin"."Switch One Desktop Up" = "Meta+Ctrl+Up";
|
||||||
|
"kwin"."Switch One Desktop to the Left" = "Meta+Ctrl+Left";
|
||||||
|
"kwin"."Switch One Desktop to the Right" = "Meta+Ctrl+Right";
|
||||||
|
"kwin"."Switch Window Down" = "Meta+Alt+Down";
|
||||||
|
"kwin"."Switch Window Left" = "Meta+Alt+Left";
|
||||||
|
"kwin"."Switch Window Right" = "Meta+Alt+Right";
|
||||||
|
"kwin"."Switch Window Up" = "Meta+Alt+Up";
|
||||||
|
"kwin"."Switch to Desktop 1" = "Ctrl+F1";
|
||||||
|
"kwin"."Switch to Desktop 10" = "none,,Switch to Desktop 10";
|
||||||
|
"kwin"."Switch to Desktop 11" = "none,,Switch to Desktop 11";
|
||||||
|
"kwin"."Switch to Desktop 12" = "none,,Switch to Desktop 12";
|
||||||
|
"kwin"."Switch to Desktop 13" = "none,,Switch to Desktop 13";
|
||||||
|
"kwin"."Switch to Desktop 14" = "none,,Switch to Desktop 14";
|
||||||
|
"kwin"."Switch to Desktop 15" = "none,,Switch to Desktop 15";
|
||||||
|
"kwin"."Switch to Desktop 16" = "none,,Switch to Desktop 16";
|
||||||
|
"kwin"."Switch to Desktop 17" = "none,,Switch to Desktop 17";
|
||||||
|
"kwin"."Switch to Desktop 18" = "none,,Switch to Desktop 18";
|
||||||
|
"kwin"."Switch to Desktop 19" = "none,,Switch to Desktop 19";
|
||||||
|
"kwin"."Switch to Desktop 2" = "Ctrl+F2";
|
||||||
|
"kwin"."Switch to Desktop 20" = "none,,Switch to Desktop 20";
|
||||||
|
"kwin"."Switch to Desktop 3" = "Ctrl+F3";
|
||||||
|
"kwin"."Switch to Desktop 4" = "Ctrl+F4";
|
||||||
|
"kwin"."Switch to Desktop 5" = "none,,Switch to Desktop 5";
|
||||||
|
"kwin"."Switch to Desktop 6" = "none,,Switch to Desktop 6";
|
||||||
|
"kwin"."Switch to Desktop 7" = "none,,Switch to Desktop 7";
|
||||||
|
"kwin"."Switch to Desktop 8" = "none,,Switch to Desktop 8";
|
||||||
|
"kwin"."Switch to Desktop 9" = "none,,Switch to Desktop 9";
|
||||||
|
"kwin"."Switch to Next Desktop" = "none,,Switch to Next Desktop";
|
||||||
|
"kwin"."Switch to Next Screen" = "none,,Switch to Next Screen";
|
||||||
|
"kwin"."Switch to Previous Desktop" = "none,,Switch to Previous Desktop";
|
||||||
|
"kwin"."Switch to Previous Screen" = "none,,Switch to Previous Screen";
|
||||||
|
"kwin"."Switch to Screen 0" = "none,,Switch to Screen 0";
|
||||||
|
"kwin"."Switch to Screen 1" = "none,,Switch to Screen 1";
|
||||||
|
"kwin"."Switch to Screen 2" = "none,,Switch to Screen 2";
|
||||||
|
"kwin"."Switch to Screen 3" = "none,,Switch to Screen 3";
|
||||||
|
"kwin"."Switch to Screen 4" = "none,,Switch to Screen 4";
|
||||||
|
"kwin"."Switch to Screen 5" = "none,,Switch to Screen 5";
|
||||||
|
"kwin"."Switch to Screen 6" = "none,,Switch to Screen 6";
|
||||||
|
"kwin"."Switch to Screen 7" = "none,,Switch to Screen 7";
|
||||||
|
"kwin"."Switch to Screen Above" = "none,,Switch to Screen Above";
|
||||||
|
"kwin"."Switch to Screen Below" = "none,,Switch to Screen Below";
|
||||||
|
"kwin"."Switch to Screen to the Left" = "none,,Switch to Screen to the Left";
|
||||||
|
"kwin"."Switch to Screen to the Right" = "none,,Switch to Screen to the Right";
|
||||||
|
"kwin"."Toggle Night Color" = [ ];
|
||||||
|
"kwin"."Toggle Window Raise/Lower" = "none,,Toggle Window Raise/Lower";
|
||||||
|
"kwin"."Walk Through Windows" = "Alt+Tab";
|
||||||
|
"kwin"."Walk Through Windows (Reverse)" = "Alt+Shift+Tab";
|
||||||
|
"kwin"."Walk Through Windows Alternative" = "none,,Walk Through Windows Alternative";
|
||||||
|
"kwin"."Walk Through Windows Alternative (Reverse)" = "none,,Walk Through Windows Alternative (Reverse)";
|
||||||
|
"kwin"."Walk Through Windows of Current Application" = "Alt+`";
|
||||||
|
"kwin"."Walk Through Windows of Current Application (Reverse)" = "Alt+~";
|
||||||
|
"kwin"."Walk Through Windows of Current Application Alternative" = "none,,Walk Through Windows of Current Application Alternative";
|
||||||
|
"kwin"."Walk Through Windows of Current Application Alternative (Reverse)" = "none,,Walk Through Windows of Current Application Alternative (Reverse)";
|
||||||
|
"kwin"."Window Above Other Windows" = "none,,Keep Window Above Others";
|
||||||
|
"kwin"."Window Below Other Windows" = "none,,Keep Window Below Others";
|
||||||
|
"kwin"."Window Close" = "Alt+F4";
|
||||||
|
"kwin"."Window Fullscreen" = "none,,Make Window Fullscreen";
|
||||||
|
"kwin"."Window Grow Horizontal" = "none,,Expand Window Horizontally";
|
||||||
|
"kwin"."Window Grow Vertical" = "none,,Expand Window Vertically";
|
||||||
|
"kwin"."Window Lower" = "none,,Lower Window";
|
||||||
|
"kwin"."Window Maximize" = "Meta+PgUp";
|
||||||
|
"kwin"."Window Maximize Horizontal" = "none,,Maximize Window Horizontally";
|
||||||
|
"kwin"."Window Maximize Vertical" = "none,,Maximize Window Vertically";
|
||||||
|
"kwin"."Window Minimize" = "Meta+PgDown";
|
||||||
|
"kwin"."Window Move" = "none,,Move Window";
|
||||||
|
"kwin"."Window Move Center" = "none,,Move Window to the Center";
|
||||||
|
"kwin"."Window No Border" = "none,,Toggle Window Titlebar and Frame";
|
||||||
|
"kwin"."Window On All Desktops" = "none,,Keep Window on All Desktops";
|
||||||
|
"kwin"."Window One Desktop Down" = "Meta+Ctrl+Shift+Down";
|
||||||
|
"kwin"."Window One Desktop Up" = "Meta+Ctrl+Shift+Up";
|
||||||
|
"kwin"."Window One Desktop to the Left" = "Meta+Ctrl+Shift+Left";
|
||||||
|
"kwin"."Window One Desktop to the Right" = "Meta+Ctrl+Shift+Right";
|
||||||
|
"kwin"."Window One Screen Down" = "none,,Move Window One Screen Down";
|
||||||
|
"kwin"."Window One Screen Up" = "none,,Move Window One Screen Up";
|
||||||
|
"kwin"."Window One Screen to the Left" = "none,,Move Window One Screen to the Left";
|
||||||
|
"kwin"."Window One Screen to the Right" = "none,,Move Window One Screen to the Right";
|
||||||
|
"kwin"."Window Operations Menu" = "Alt+F3";
|
||||||
|
"kwin"."Window Pack Down" = "none,,Move Window Down";
|
||||||
|
"kwin"."Window Pack Left" = "none,,Move Window Left";
|
||||||
|
"kwin"."Window Pack Right" = "none,,Move Window Right";
|
||||||
|
"kwin"."Window Pack Up" = "none,,Move Window Up";
|
||||||
|
"kwin"."Window Quick Tile Bottom" = "Meta+Down";
|
||||||
|
"kwin"."Window Quick Tile Bottom Left" = "none,,Quick Tile Window to the Bottom Left";
|
||||||
|
"kwin"."Window Quick Tile Bottom Right" = "none,,Quick Tile Window to the Bottom Right";
|
||||||
|
"kwin"."Window Quick Tile Left" = "Meta+Left";
|
||||||
|
"kwin"."Window Quick Tile Right" = "Meta+Right";
|
||||||
|
"kwin"."Window Quick Tile Top" = "Meta+Up";
|
||||||
|
"kwin"."Window Quick Tile Top Left" = "none,,Quick Tile Window to the Top Left";
|
||||||
|
"kwin"."Window Quick Tile Top Right" = "none,,Quick Tile Window to the Top Right";
|
||||||
|
"kwin"."Window Raise" = "none,,Raise Window";
|
||||||
|
"kwin"."Window Resize" = "none,,Resize Window";
|
||||||
|
"kwin"."Window Shade" = "none,,Shade Window";
|
||||||
|
"kwin"."Window Shrink Horizontal" = "none,,Shrink Window Horizontally";
|
||||||
|
"kwin"."Window Shrink Vertical" = "none,,Shrink Window Vertically";
|
||||||
|
"kwin"."Window to Desktop 1" = "none,,Window to Desktop 1";
|
||||||
|
"kwin"."Window to Desktop 10" = "none,,Window to Desktop 10";
|
||||||
|
"kwin"."Window to Desktop 11" = "none,,Window to Desktop 11";
|
||||||
|
"kwin"."Window to Desktop 12" = "none,,Window to Desktop 12";
|
||||||
|
"kwin"."Window to Desktop 13" = "none,,Window to Desktop 13";
|
||||||
|
"kwin"."Window to Desktop 14" = "none,,Window to Desktop 14";
|
||||||
|
"kwin"."Window to Desktop 15" = "none,,Window to Desktop 15";
|
||||||
|
"kwin"."Window to Desktop 16" = "none,,Window to Desktop 16";
|
||||||
|
"kwin"."Window to Desktop 17" = "none,,Window to Desktop 17";
|
||||||
|
"kwin"."Window to Desktop 18" = "none,,Window to Desktop 18";
|
||||||
|
"kwin"."Window to Desktop 19" = "none,,Window to Desktop 19";
|
||||||
|
"kwin"."Window to Desktop 2" = "none,,Window to Desktop 2";
|
||||||
|
"kwin"."Window to Desktop 20" = "none,,Window to Desktop 20";
|
||||||
|
"kwin"."Window to Desktop 3" = "none,,Window to Desktop 3";
|
||||||
|
"kwin"."Window to Desktop 4" = "none,,Window to Desktop 4";
|
||||||
|
"kwin"."Window to Desktop 5" = "none,,Window to Desktop 5";
|
||||||
|
"kwin"."Window to Desktop 6" = "none,,Window to Desktop 6";
|
||||||
|
"kwin"."Window to Desktop 7" = "none,,Window to Desktop 7";
|
||||||
|
"kwin"."Window to Desktop 8" = "none,,Window to Desktop 8";
|
||||||
|
"kwin"."Window to Desktop 9" = "none,,Window to Desktop 9";
|
||||||
|
"kwin"."Window to Next Desktop" = "none,,Window to Next Desktop";
|
||||||
|
"kwin"."Window to Next Screen" = "Meta+Shift+Right";
|
||||||
|
"kwin"."Window to Previous Desktop" = "none,,Window to Previous Desktop";
|
||||||
|
"kwin"."Window to Previous Screen" = "Meta+Shift+Left";
|
||||||
|
"kwin"."Window to Screen 0" = "none,,Move Window to Screen 0";
|
||||||
|
"kwin"."Window to Screen 1" = "none,,Move Window to Screen 1";
|
||||||
|
"kwin"."Window to Screen 2" = "none,,Move Window to Screen 2";
|
||||||
|
"kwin"."Window to Screen 3" = "none,,Move Window to Screen 3";
|
||||||
|
"kwin"."Window to Screen 4" = "none,,Move Window to Screen 4";
|
||||||
|
"kwin"."Window to Screen 5" = "none,,Move Window to Screen 5";
|
||||||
|
"kwin"."Window to Screen 6" = "none,,Move Window to Screen 6";
|
||||||
|
"kwin"."Window to Screen 7" = "none,,Move Window to Screen 7";
|
||||||
|
"kwin"."view_actual_size" = "Meta+0";
|
||||||
|
"kwin"."view_zoom_in" = ["Meta++" "Meta+=,Meta++" "Meta+=,Zoom In"];
|
||||||
|
"kwin"."view_zoom_out" = "Meta+-";
|
||||||
|
"mediacontrol"."mediavolumedown" = "none,,Media volume down";
|
||||||
|
"mediacontrol"."mediavolumeup" = "none,,Media volume up";
|
||||||
|
"mediacontrol"."nextmedia" = "Media Next";
|
||||||
|
"mediacontrol"."pausemedia" = "Media Pause";
|
||||||
|
"mediacontrol"."playmedia" = "none,,Play media playback";
|
||||||
|
"mediacontrol"."playpausemedia" = "Media Play";
|
||||||
|
"mediacontrol"."previousmedia" = "Media Previous";
|
||||||
|
"mediacontrol"."stopmedia" = "Media Stop";
|
||||||
|
"org_kde_powerdevil"."Decrease Keyboard Brightness" = "Keyboard Brightness Down";
|
||||||
|
"org_kde_powerdevil"."Decrease Screen Brightness" = "Monitor Brightness Down";
|
||||||
|
"org_kde_powerdevil"."Decrease Screen Brightness Small" = "Shift+Monitor Brightness Down";
|
||||||
|
"org_kde_powerdevil"."Hibernate" = "Hibernate";
|
||||||
|
"org_kde_powerdevil"."Increase Keyboard Brightness" = "Keyboard Brightness Up";
|
||||||
|
"org_kde_powerdevil"."Increase Screen Brightness" = "Monitor Brightness Up";
|
||||||
|
"org_kde_powerdevil"."Increase Screen Brightness Small" = "Shift+Monitor Brightness Up";
|
||||||
|
"org_kde_powerdevil"."PowerDown" = "Power Down";
|
||||||
|
"org_kde_powerdevil"."PowerOff" = "Power Off";
|
||||||
|
"org_kde_powerdevil"."Sleep" = "Sleep";
|
||||||
|
"org_kde_powerdevil"."Toggle Keyboard Backlight" = "Keyboard Light On/Off";
|
||||||
|
"org_kde_powerdevil"."Turn Off Screen" = [ ];
|
||||||
|
"org_kde_powerdevil"."powerProfile" = ["Battery" "Meta+B,Battery" "Meta+B,Switch Power Profile"];
|
||||||
|
"plasmashell"."activate application launcher" = ["Meta,Meta" "Alt+F1,Activate Application Launcher"];
|
||||||
|
"plasmashell"."activate task manager entry 1" = "Meta+1";
|
||||||
|
"plasmashell"."activate task manager entry 10" = "none,Meta+0,Activate Task Manager Entry 10";
|
||||||
|
"plasmashell"."activate task manager entry 2" = "Meta+2";
|
||||||
|
"plasmashell"."activate task manager entry 3" = "Meta+3";
|
||||||
|
"plasmashell"."activate task manager entry 4" = "Meta+4";
|
||||||
|
"plasmashell"."activate task manager entry 5" = "Meta+5";
|
||||||
|
"plasmashell"."activate task manager entry 6" = "Meta+6";
|
||||||
|
"plasmashell"."activate task manager entry 7" = "Meta+7";
|
||||||
|
"plasmashell"."activate task manager entry 8" = "Meta+8";
|
||||||
|
"plasmashell"."activate task manager entry 9" = "Meta+9";
|
||||||
|
"plasmashell"."clear-history" = "none,,Clear Clipboard History";
|
||||||
|
"plasmashell"."clipboard_action" = "Meta+Ctrl+X";
|
||||||
|
"plasmashell"."cycle-panels" = "Meta+Alt+P";
|
||||||
|
"plasmashell"."cycleNextAction" = "none,,Next History Item";
|
||||||
|
"plasmashell"."cyclePrevAction" = "none,,Previous History Item";
|
||||||
|
"plasmashell"."manage activities" = "Meta+Q";
|
||||||
|
"plasmashell"."next activity" = "Meta+A,none,Walk through activities";
|
||||||
|
"plasmashell"."previous activity" = "Meta+Shift+A,none,Walk through activities (Reverse)";
|
||||||
|
"plasmashell"."repeat_action" = "none,Meta+Ctrl+R,Manually Invoke Action on Current Clipboard";
|
||||||
|
"plasmashell"."show dashboard" = "Ctrl+F12";
|
||||||
|
"plasmashell"."show-barcode" = "none,,Show Barcode…";
|
||||||
|
"plasmashell"."show-on-mouse-pos" = "Meta+V";
|
||||||
|
"plasmashell"."stop current activity" = "Meta+S";
|
||||||
|
"plasmashell"."switch to next activity" = "none,,Switch to Next Activity";
|
||||||
|
"plasmashell"."switch to previous activity" = "none,,Switch to Previous Activity";
|
||||||
|
"plasmashell"."toggle do not disturb" = "none,,Toggle do not disturb";
|
||||||
|
};
|
||||||
|
configFile = {
|
||||||
|
"baloofilerc"."General"."dbVersion" = 2;
|
||||||
|
"baloofilerc"."General"."exclude filters" = "*~,*.part,*.o,*.la,*.lo,*.loT,*.moc,moc_*.cpp,qrc_*.cpp,ui_*.h,cmake_install.cmake,CMakeCache.txt,CTestTestfile.cmake,libtool,config.status,confdefs.h,autom4te,conftest,confstat,Makefile.am,*.gcode,.ninja_deps,.ninja_log,build.ninja,*.csproj,*.m4,*.rej,*.gmo,*.pc,*.omf,*.aux,*.tmp,*.po,*.vm*,*.nvram,*.rcore,*.swp,*.swap,lzo,litmain.sh,*.orig,.histfile.*,.xsession-errors*,*.map,*.so,*.a,*.db,*.qrc,*.ini,*.init,*.img,*.vdi,*.vbox*,vbox.log,*.qcow2,*.vmdk,*.vhd,*.vhdx,*.sql,*.sql.gz,*.ytdl,*.tfstate*,*.class,*.pyc,*.pyo,*.elc,*.qmlc,*.jsc,*.fastq,*.fq,*.gb,*.fasta,*.fna,*.gbff,*.faa,po,CVS,.svn,.git,_darcs,.bzr,.hg,CMakeFiles,CMakeTmp,CMakeTmpQmake,.moc,.obj,.pch,.uic,.npm,.yarn,.yarn-cache,__pycache__,node_modules,node_packages,nbproject,.terraform,.venv,venv,core-dumps,lost+found";
|
||||||
|
"baloofilerc"."General"."exclude filters version" = 9;
|
||||||
|
"dolphinrc"."General"."ViewPropsTimestamp" = "2024,7,20,20,13,20.857";
|
||||||
|
"dolphinrc"."KFileDialog Settings"."Places Icons Auto-resize" = false;
|
||||||
|
"dolphinrc"."KFileDialog Settings"."Places Icons Static Size" = 22;
|
||||||
|
"kactivitymanagerdrc"."activities"."3756b222-d0a9-4f71-827b-62d27908d7cb" = "Default";
|
||||||
|
"kactivitymanagerdrc"."main"."currentActivity" = "3756b222-d0a9-4f71-827b-62d27908d7cb";
|
||||||
|
"kcminputrc"."Mouse"."X11LibInputXAccelProfileFlat" = true;
|
||||||
|
"kded5rc"."Module-browserintegrationreminder"."autoload" = false;
|
||||||
|
"kded5rc"."Module-device_automounter"."autoload" = false;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Allow Expansion" = false;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Automatically select filename extension" = true;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Breadcrumb Navigation" = true;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Decoration position" = 2;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."LocationCombo Completionmode" = 5;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."PathCombo Completionmode" = 5;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Show Bookmarks" = false;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Show Full Path" = false;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Show Inline Previews" = true;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Show Preview" = false;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Show Speedbar" = true;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Show hidden files" = false;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Sort by" = "Name";
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Sort directories first" = true;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Sort hidden files last" = false;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Sort reversed" = false;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."Speedbar Width" = 131;
|
||||||
|
"kdeglobals"."KFileDialog Settings"."View Style" = "DetailTree";
|
||||||
|
"kdeglobals"."KScreen"."ScaleFactor" = 1.5;
|
||||||
|
"kdeglobals"."KScreen"."ScreenScaleFactors" = "eDP-1=1.5;";
|
||||||
|
"kdeglobals"."KScreen"."XwaylandClientsScale" = false;
|
||||||
|
"kdeglobals"."KShortcutsDialog Settings"."Dialog Size" = "600,480";
|
||||||
|
"kdeglobals"."WM"."activeBackground" = "227,229,231";
|
||||||
|
"kdeglobals"."WM"."activeBlend" = "227,229,231";
|
||||||
|
"kdeglobals"."WM"."activeForeground" = "35,38,41";
|
||||||
|
"kdeglobals"."WM"."inactiveBackground" = "239,240,241";
|
||||||
|
"kdeglobals"."WM"."inactiveBlend" = "239,240,241";
|
||||||
|
"kdeglobals"."WM"."inactiveForeground" = "112,125,138";
|
||||||
|
"kwalletrc"."Wallet"."First Use" = false;
|
||||||
|
"kwinrc"."Desktops"."Id_1" = "6d3243a1-8d34-46d5-8a68-ec54c336699e";
|
||||||
|
"kwinrc"."Desktops"."Number" = 1;
|
||||||
|
"kwinrc"."Desktops"."Rows" = 1;
|
||||||
|
"kwinrc"."Tiling"."padding" = 4;
|
||||||
|
"kwinrc"."Tiling/0fbdf624-be14-53ad-b76a-600f4af55e9c"."tiles" = "{\"layoutDirection\":\"horizontal\",\"tiles\":[{\"width\":0.25},{\"width\":0.5},{\"width\":0.25}]}";
|
||||||
|
"kwinrc"."Tiling/4f1a969f-6d7e-5170-903d-eb64a676c434"."tiles" = "{\"layoutDirection\":\"horizontal\",\"tiles\":[{\"width\":0.25},{\"width\":0.5},{\"width\":0.25}]}";
|
||||||
|
"kwinrc"."Tiling/640d8520-d104-58ba-9402-051a364d7b72"."tiles" = "{\"layoutDirection\":\"horizontal\",\"tiles\":[{\"width\":0.25},{\"width\":0.5},{\"width\":0.25}]}";
|
||||||
|
"kwinrc"."Tiling/f89e3d0e-d233-5a93-aaff-c6ecf9b010b4"."tiles" = "{\"layoutDirection\":\"horizontal\",\"tiles\":[{\"width\":0.25},{\"width\":0.5},{\"width\":0.25}]}";
|
||||||
|
"plasma-localerc"."Formats"."LANG" = "en_US.UTF-8";
|
||||||
|
"plasmanotifyrc"."Applications/firefox"."Seen" = true;
|
||||||
|
};
|
||||||
|
dataFile = {
|
||||||
|
"dolphin/view_properties/global/.directory"."Dolphin"."ViewMode" = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -17,8 +17,9 @@ with lib;
|
|||||||
kodi = {
|
kodi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autologin = true;
|
autologin = true;
|
||||||
wayland = false;
|
wayland = true;
|
||||||
};
|
};
|
||||||
|
users.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
@@ -29,7 +30,7 @@ with lib;
|
|||||||
|
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics.enable = true;
|
||||||
|
|
||||||
#services.displayManager.enable = mkForce false;
|
services.displayManager.enable = mkForce false;
|
||||||
|
|
||||||
# This option defines the first version of NixOS you have installed on this particular machine,
|
# This option defines the first version of NixOS you have installed on this particular machine,
|
||||||
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
||||||
|
|||||||
@@ -1,131 +0,0 @@
|
|||||||
# Edit this configuration file to define what should be installed on
|
|
||||||
# your system. Help is available in the configuration.nix(5) man page, on
|
|
||||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
|
||||||
|
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ # Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
#boot.loader.systemd-boot.enable = true;
|
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
|
||||||
boot.loader.grub.enable = true;
|
|
||||||
#boot.loader.grub.device = "/dev/sda3";
|
|
||||||
boot.loader.grub.useOSProber = true;
|
|
||||||
boot.loader.grub.efiSupport = true;
|
|
||||||
boot.loader.grub.efiInstallAsRemovable = true;
|
|
||||||
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
|
||||||
|
|
||||||
# Define on which hard drive you want to install Grub.
|
|
||||||
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
|
||||||
|
|
||||||
networking.hostName = "k3s-nix"; # Define your hostname.
|
|
||||||
# Pick only one of the below networking options.
|
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
# networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
# time.timeZone = "Europe/Amsterdam";
|
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
||||||
|
|
||||||
# Select internationalisation properties.
|
|
||||||
# i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
# console = {
|
|
||||||
# font = "Lat2-Terminus16";
|
|
||||||
# keyMap = "us";
|
|
||||||
# useXkbConfig = true; # use xkb.options in tty.
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
|
||||||
# services.xserver.enable = true;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Configure keymap in X11
|
|
||||||
# services.xserver.xkb.layout = "us";
|
|
||||||
# services.xserver.xkb.options = "eurosign:e,caps:escape";
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
# services.printing.enable = true;
|
|
||||||
|
|
||||||
# Enable sound.
|
|
||||||
# hardware.pulseaudio.enable = true;
|
|
||||||
# OR
|
|
||||||
# services.pipewire = {
|
|
||||||
# enable = true;
|
|
||||||
# pulse.enable = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
|
||||||
# services.libinput.enable = true;
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
# users.users.alice = {
|
|
||||||
# isNormalUser = true;
|
|
||||||
# extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
|
||||||
# packages = with pkgs; [
|
|
||||||
# firefox
|
|
||||||
# tree
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
|
||||||
# $ nix search wget
|
|
||||||
# environment.systemPackages = with pkgs; [
|
|
||||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
|
||||||
# wget
|
|
||||||
# ];
|
|
||||||
|
|
||||||
# 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;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# List services that you want to enable:
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
# services.openssh.enable = true;
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
|
||||||
# (/run/current-system/configuration.nix). This is useful in case you
|
|
||||||
# accidentally delete configuration.nix.
|
|
||||||
# system.copySystemConfiguration = true;
|
|
||||||
|
|
||||||
# This option defines the first version of NixOS you have installed on this particular machine,
|
|
||||||
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
|
||||||
#
|
|
||||||
# Most users should NEVER change this value after the initial install, for any reason,
|
|
||||||
# even if you've upgraded your system to a new NixOS release.
|
|
||||||
#
|
|
||||||
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
|
|
||||||
# so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
|
|
||||||
# to actually do that.
|
|
||||||
#
|
|
||||||
# This value being lower than the current NixOS release does NOT mean your system is
|
|
||||||
# out of date, out of support, or vulnerable.
|
|
||||||
#
|
|
||||||
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
|
|
||||||
# and migrated your data accordingly.
|
|
||||||
#
|
|
||||||
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
|
||||||
system.stateVersion = "24.05"; # Did you read the comment?
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
# 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 + "/profiles/qemu-guest.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
fileSystems."/" =
|
|
||||||
{ device = "/dev/disk/by-uuid/25d7ede1-7a1e-4fe8-beaa-cddb89253814";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/var" =
|
|
||||||
{ device = "/dev/disk/by-uuid/e1514fa7-b757-4c7c-8d7f-cbd49060eb15";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-uuid/1777-E690";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
}
|
|
||||||
@@ -15,6 +15,7 @@
|
|||||||
desktop.enable = true;
|
desktop.enable = true;
|
||||||
nfs-mounts.enable = true;
|
nfs-mounts.enable = true;
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
|
spotifyd.enable = true;
|
||||||
users = {
|
users = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraGroups = [ "video" ];
|
extraGroups = [ "video" ];
|
||||||
|
|||||||
@@ -48,6 +48,14 @@
|
|||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
services.beesd.filesystems = {
|
||||||
|
root = {
|
||||||
|
spec = "LABEL=nixos";
|
||||||
|
hashTableSizeMB = 4096;
|
||||||
|
verbosity = "crit";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ in
|
|||||||
enable = mkEnableOption "Enable the audio role";
|
enable = mkEnableOption "Enable the audio role";
|
||||||
};
|
};
|
||||||
|
|
||||||
config =
|
config = mkIf cfg.enable
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
paprefs
|
paprefs
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ in
|
|||||||
enable = mkEnableOption "Enable the bluetooth role";
|
enable = mkEnableOption "Enable the bluetooth role";
|
||||||
};
|
};
|
||||||
|
|
||||||
config =
|
config = mkIf cfg.enable
|
||||||
{
|
{
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
hardware.bluetooth.powerOnBoot = true;
|
hardware.bluetooth.powerOnBoot = true;
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.roles;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./audio
|
./audio
|
||||||
@@ -19,10 +16,6 @@ in
|
|||||||
./virtualisation
|
./virtualisation
|
||||||
];
|
];
|
||||||
|
|
||||||
options.roles = {
|
|
||||||
enable = mkEnableOption "Enable roles";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
i18n.extraLocaleSettings = {
|
i18n.extraLocaleSettings = {
|
||||||
@@ -65,9 +58,6 @@ in
|
|||||||
substituters = [
|
substituters = [
|
||||||
"https://hyprland.cachix.org"
|
"https://hyprland.cachix.org"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
|
||||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
{ lib, config, pkgs, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.roles.k3s;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.roles.k3s = {
|
|
||||||
enable = mkEnableOption "Enable the k3s role";
|
|
||||||
};
|
|
||||||
|
|
||||||
config =
|
|
||||||
{
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
|
||||||
6443 # k3s: required so that pods can reach the API server (running on port 6443 by default)
|
|
||||||
2379 # k3s, etcd clients: required if using a "High Availability Embedded etcd" configuration
|
|
||||||
2380 # k3s, etcd peers: required if using a "High Availability Embedded etcd" configuration
|
|
||||||
];
|
|
||||||
networking.firewall.allowedUDPPorts = [
|
|
||||||
8472 # k3s, flannel: required if using multi-node for inter-node networking
|
|
||||||
];
|
|
||||||
services.k3s.enable = true;
|
|
||||||
services.k3s.role = "server";
|
|
||||||
sops.secrets.k3s_cluster_token = {};
|
|
||||||
services.k3s.tokenFile = "/run/secrets/k3s_cluster_token";
|
|
||||||
services.k3s.serverAddr = "https://10.0.0.222:6443";
|
|
||||||
services.k3s.extraFlags = toString [
|
|
||||||
# "--debug" # Optionally add additional args to k3s
|
|
||||||
];
|
|
||||||
services.k3s.gracefulNodeShutdown.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -25,39 +25,47 @@ in
|
|||||||
steam-library
|
steam-library
|
||||||
youtube
|
youtube
|
||||||
]);
|
]);
|
||||||
in {
|
in mkIf cfg.enable
|
||||||
users.extraUsers.kodi.isNormalUser = true;
|
{
|
||||||
|
users.extraUsers.kodi.isNormalUser = true;
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [ 8080 ];
|
allowedTCPPorts = [ 8080 ];
|
||||||
allowedUDPPorts = [ 8080 ];
|
allowedUDPPorts = [ 8080 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
services = if cfg.autologin then mkMerge [
|
||||||
|
(mkIf cfg.wayland {
|
||||||
|
cage = mkIf cfg.wayland {
|
||||||
|
user = "kodi";
|
||||||
|
program = "${kodiPkg}/bin/kodi-standalone";
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
xserver = {
|
||||||
|
enable = false;
|
||||||
|
autorun = false;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
|
(mkIf (!cfg.wayland) {
|
||||||
|
xserver = {
|
||||||
|
enable = true;
|
||||||
|
desktopManager.kodi = {
|
||||||
|
enable = true;
|
||||||
|
package = kodiPkg;
|
||||||
|
};
|
||||||
|
displayManager.lightdm = {
|
||||||
|
enable = true;
|
||||||
|
greeter.enable = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
displayManager = {
|
||||||
|
autoLogin.enable = true;
|
||||||
|
autoLogin.user = "kodi";
|
||||||
|
defaultSession = "kodi";
|
||||||
|
sessionData.autologinSession = "kodi";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
] else {};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = mkIf cfg.autologin {
|
|
||||||
cage = mkIf cfg.wayland {
|
|
||||||
user = "kodi";
|
|
||||||
program = "${kodiPkg}/bin/kodi-standalone";
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
xserver = mkIf (!cfg.wayland) {
|
|
||||||
enable = true;
|
|
||||||
desktopManager.kodi = {
|
|
||||||
enable = true;
|
|
||||||
package = kodiPkg;
|
|
||||||
};
|
|
||||||
displayManager.lightdm = {
|
|
||||||
enable = true;
|
|
||||||
greeter.enable = false;
|
|
||||||
};
|
|
||||||
displayManager.sddm.enable = mkForce false;
|
|
||||||
};
|
|
||||||
displayManager = mkIf (!cfg.wayland) {
|
|
||||||
autoLogin.enable = true;
|
|
||||||
autoLogin.user = "kodi";
|
|
||||||
defaultSession = "kodi";
|
|
||||||
sessionData.autologinSession = "kodi";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,15 +16,16 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = mkIf cfg.enable
|
||||||
fileSystems."/media" = {
|
{
|
||||||
device = "10.0.0.43:/media";
|
fileSystems."/media" = {
|
||||||
fsType = "nfs";
|
device = "10.0.0.43:/media";
|
||||||
options = [
|
fsType = "nfs";
|
||||||
"defaults"
|
options = [
|
||||||
"nofail"
|
"defaults"
|
||||||
"softreval"
|
"nofail"
|
||||||
];
|
"softreval"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,18 +2,22 @@
|
|||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.roles.printing;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
options.roles.printing = {
|
options.roles.printing = {
|
||||||
enable = mkEnableOption "Enable default printing setup";
|
enable = mkEnableOption "Enable default printing setup";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = mkIf cfg.enable
|
||||||
services.printing.enable = true;
|
{
|
||||||
|
services.printing.enable = true;
|
||||||
|
|
||||||
services.avahi = {
|
services.avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns4 = true;
|
nssmdns4 = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,30 +10,31 @@ in
|
|||||||
enable = mkEnableOption "Enable the spotifyd role";
|
enable = mkEnableOption "Enable the spotifyd role";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = mkIf cfg.enable
|
||||||
roles.audio.enable = true;
|
{
|
||||||
|
roles.audio.enable = true;
|
||||||
|
|
||||||
services.spotifyd = {
|
services.spotifyd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
global = {
|
global = {
|
||||||
use_mpris = false;
|
use_mpris = false;
|
||||||
backend = "alsa";
|
backend = "alsa";
|
||||||
device = "sysdefault";
|
device = "sysdefault";
|
||||||
bitrate = 320;
|
bitrate = 320;
|
||||||
cache_path = "";
|
cache_path = "";
|
||||||
zeroconf_port = 1234;
|
zeroconf_port = 1234;
|
||||||
autoplay = false;
|
autoplay = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
1234
|
1234
|
||||||
57621
|
57621
|
||||||
];
|
];
|
||||||
networking.firewall.allowedUDPPorts = [
|
networking.firewall.allowedUDPPorts = [
|
||||||
5353
|
5353
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ in
|
|||||||
kidsPackages = with pkgs; [
|
kidsPackages = with pkgs; [
|
||||||
firefox
|
firefox
|
||||||
];
|
];
|
||||||
in {
|
in mkIf cfg.enable {
|
||||||
users.users.johno = {
|
users.users.johno = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "John Ogle";
|
description = "John Ogle";
|
||||||
|
|||||||
@@ -2,13 +2,17 @@
|
|||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.roles.virtualisation;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
options.roles.virtualisation = {
|
options.roles.virtualisation = {
|
||||||
enable = mkEnableOption "Enable virtualisation";
|
enable = mkEnableOption "Enable virtualisation";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = mkIf cfg.enable
|
||||||
virtualisation.libvirtd.enable = true;
|
{
|
||||||
programs.virt-manager.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
};
|
programs.virt-manager.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ example_number: ENC[AES256_GCM,data:jmLoVC+8YIlB2A==,iv:u9GztD/aE9UN5zWq3Am2nhYw
|
|||||||
example_booleans:
|
example_booleans:
|
||||||
- ENC[AES256_GCM,data:ZacILA==,iv:xo+7aFFQXzbJzKDY0mYTeFLf10AlnHkywDRAMHeprEM=,tag:F/OnJdqjrZP02sTLWLmnbg==,type:bool]
|
- ENC[AES256_GCM,data:ZacILA==,iv:xo+7aFFQXzbJzKDY0mYTeFLf10AlnHkywDRAMHeprEM=,tag:F/OnJdqjrZP02sTLWLmnbg==,type:bool]
|
||||||
- ENC[AES256_GCM,data:NaFrvrs=,iv:kKDmGs9u/w5qrZ/379Jlx8AotUVADvH+eHwHCqykmkE=,tag:nD9TsmkXUm4ABaT1ABWmcg==,type:bool]
|
- ENC[AES256_GCM,data:NaFrvrs=,iv:kKDmGs9u/w5qrZ/379Jlx8AotUVADvH+eHwHCqykmkE=,tag:nD9TsmkXUm4ABaT1ABWmcg==,type:bool]
|
||||||
k3s_cluster_token: ENC[AES256_GCM,data:JsfPOT6I1zViyfFkXchFSzCgsB0jRVj3ZxcHQ7GV7xMRfYWkquQcDYy5TWotWXl2YvUM8Fc2sbzHwsoq1kECS47AIbKO+Mz9Y7FbQnZHxTHDfbQTYmmkDGkHGDkBxWB+N1e1bdP5Dkuc3LlN,iv:PdOi6hOFXoaYVuBSuje0lYmUVCsW0f1lS5rL3quiDH8=,tag:3Tb+rLx7j7HE8BCDevfMxw==,type:str]
|
|
||||||
sops:
|
sops:
|
||||||
kms: []
|
kms: []
|
||||||
gcp_kms: []
|
gcp_kms: []
|
||||||
@@ -42,8 +41,8 @@ sops:
|
|||||||
aU1IQzdTMVhnbHhsNENwMG05dXhOU2MK8fEJea9sL5JLgltVlTI6mRDb+Tl83Iz7
|
aU1IQzdTMVhnbHhsNENwMG05dXhOU2MK8fEJea9sL5JLgltVlTI6mRDb+Tl83Iz7
|
||||||
4wPYvo68cn8vimXqSk45ldHRrNa3zhYai3CalQaGtDT3fkWGvSq0zQ==
|
4wPYvo68cn8vimXqSk45ldHRrNa3zhYai3CalQaGtDT3fkWGvSq0zQ==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2024-10-06T00:23:29Z"
|
lastmodified: "2024-09-28T15:44:39Z"
|
||||||
mac: ENC[AES256_GCM,data:adzK7q2CJOcurpaZHmNDe8O9EqdCuwopmSS2ysFHDkJ8GtXdFQQBabwwlYz/zi0jIHBBUP4JIqnffg+rsM2R0fAvGMnIZvwbD9Yo6efiEK5kVgbwze6O9SaqOpgXr8R8zxsgm9gJWtjrAqwOdKTqb9tIN24cMKnhFr6UVXZen0U=,iv:MTTavZ9eq9ibWwBFiJ1OHRQswHXwLacc2PBMSztMZ+w=,tag:X8mz2hX1cTKdWPlEQTyzHA==,type:str]
|
mac: ENC[AES256_GCM,data:YUi+AbS6DQTmrSyOXsbkZWfWaMyKGR8fYm/MHcxmqChi8hng+UWHBZjsLBe6ef/FLH3rnP6bhfwK8KYnVS6fHvHahoqIq/BHydTsqrclnSgRAGl8Lh0yuhwISNRvP1AuW5pd50sdQaS0uGOtzOCharI/pZ9H+cmt2SB5WOCdeLs=,iv:2nBG6it3tNSLSia8hGzCcesuK9QwzB9EzfjWegjQ2kw=,tag:RGGPAPw/rQKhWA2OqLjTJw==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.9.0
|
version: 3.9.0
|
||||||
|
|||||||
Reference in New Issue
Block a user