Integrated plasma-manager config
This commit is contained in:
parent
35360563be
commit
67decdc3c8
31
flake.lock
31
flake.lock
@ -251,16 +251,15 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1715930644,
|
||||
"narHash": "sha256-W9pyM3/vePxrffHtzlJI6lDS3seANQ+Nqp+i58O46LI=",
|
||||
"lastModified": 1716711219,
|
||||
"narHash": "sha256-TnZETiQPXbyT5mdCHMOyrJnx2+BwroMBRrguciz1vEo=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "e3ad5108f54177e6520535768ddbf1e6af54b59d",
|
||||
"rev": "05e6ba83eb3585ce0aff7b41e4bd0e317d05ad4a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"ref": "master",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
@ -447,6 +446,29 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"plasma-manager": {
|
||||
"inputs": {
|
||||
"home-manager": [
|
||||
"home-manager"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1716670933,
|
||||
"narHash": "sha256-E5GqDM3cPvPNyfzt1qF7T0Wei1azp1DwLF9qA0X+5M8=",
|
||||
"owner": "pjones",
|
||||
"repo": "plasma-manager",
|
||||
"rev": "4d38fc602e01cc8d1e93e51677aade86febf3295",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "pjones",
|
||||
"repo": "plasma-manager",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"pre-commit-hooks": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat_2",
|
||||
@ -483,6 +505,7 @@
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||
"nixvim": "nixvim",
|
||||
"plasma-manager": "plasma-manager",
|
||||
"ros": "ros"
|
||||
}
|
||||
},
|
||||
|
18
flake.nix
18
flake.nix
@ -9,9 +9,16 @@
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
# Also see the 'unstable-packages' overlay at 'overlays/default.nix'.
|
||||
|
||||
# Home manager
|
||||
home-manager.url = "github:nix-community/home-manager/master";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
plasma-manager = {
|
||||
url = "github:pjones/plasma-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.home-manager.follows = "home-manager";
|
||||
};
|
||||
|
||||
ros.url = "github:lopsided98/nix-ros-overlay";
|
||||
agenix.url = "github:ryantm/agenix";
|
||||
@ -28,6 +35,7 @@
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
plasma-manager,
|
||||
ros,
|
||||
agenix,
|
||||
...
|
||||
@ -148,12 +156,12 @@
|
||||
# Standalone home-manager configuration entrypoint
|
||||
# Available through 'home-manager --flake .#your-username@your-hostname'
|
||||
homeConfigurations = {
|
||||
"traverseda@athame" = home-manager.lib.homeManagerConfiguration {
|
||||
"traverseda@generic" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
|
||||
extraSpecialArgs = {inherit inputs outputs;};
|
||||
modules = [
|
||||
# > Our main home-manager configuration file <
|
||||
./home-manager/home.nix
|
||||
./home-manager/traverseda/home.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -73,6 +73,12 @@
|
||||
credential = {
|
||||
helper = "cache --timeout=3600"; # Cache credentials for 1 hour (3600 seconds)
|
||||
};
|
||||
oh-my-zsh = {
|
||||
"hide-dirty" = "1";
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@ -128,19 +134,13 @@
|
||||
pkgs.wget
|
||||
pkgs.wl-clipboard
|
||||
pkgs.atool
|
||||
pkgs.zig
|
||||
|
||||
(pkgs.nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" "Hack"]; })
|
||||
|
||||
(pkgs.writeShellScriptBin "nvr-edit" ''
|
||||
nvr --remote-wait $@
|
||||
'')
|
||||
(pkgs.writeShellScriptBin "nvidia-offload" ''
|
||||
export __NV_PRIME_RENDER_OFFLOAD=1
|
||||
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
|
||||
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
||||
export __VK_LAYER_NV_optimus=NVIDIA_only
|
||||
exec "$@"
|
||||
'')
|
||||
];
|
||||
|
||||
programs.zsh = {
|
64
home-manager/traverseda/kde-desktop.nix
Normal file
64
home-manager/traverseda/kde-desktop.nix
Normal file
@ -0,0 +1,64 @@
|
||||
|
||||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
inputs.plasma-manager.homeManagerModules.plasma-manager
|
||||
];
|
||||
|
||||
programs.plasma = {
|
||||
enable = true;
|
||||
# workspace = {
|
||||
# theme = "breeze-dark";
|
||||
# colorScheme = "BreezeDark";
|
||||
# };
|
||||
shortcuts = {
|
||||
"services.org.kde.konsole.desktop"."NewWindow" = "Meta+Return";
|
||||
"kwin"."Window Close" = ["Meta+Shift+C" "Alt+F4"];
|
||||
"kwin"."Cube" = "Meta+C";
|
||||
};
|
||||
shortcuts.plasmashell = {
|
||||
"activate task manager entry 1" = "";
|
||||
"activate task manager entry 2" = "";
|
||||
"activate task manager entry 3" = "";
|
||||
"activate task manager entry 4" = "";
|
||||
"activate task manager entry 5" = "";
|
||||
"activate task manager entry 6" = "";
|
||||
"activate task manager entry 7" = "";
|
||||
"activate task manager entry 8" = "";
|
||||
"activate task manager entry 9" = "";
|
||||
};
|
||||
shortcuts.kwin = {
|
||||
"Switch to Desktop 1" = "Meta+1";
|
||||
"Window to Desktop 1" = "Meta+!";
|
||||
"Switch to Desktop 2" = "Meta+2";
|
||||
"Window to Desktop 2" = "Meta+@";
|
||||
"Switch to Desktop 3" = "Meta+3";
|
||||
"Window to Desktop 3" = "Meta+#";
|
||||
"Switch to Desktop 4" = "Meta+4";
|
||||
"Window to Desktop 4" = "Meta+$";
|
||||
"Switch to Desktop 5" = "Meta+5";
|
||||
"Window to Desktop 5" = "Meta+%";
|
||||
"Switch to Desktop 6" = "Meta+6";
|
||||
"Window to Desktop 6" = "Meta+^";
|
||||
"Switch to Desktop 7" = "Meta+7";
|
||||
"Window to Desktop 7" = "Meta+&";
|
||||
"Switch to Desktop 8" = "Meta+8";
|
||||
"Window to Desktop 8" = "Meta+*";
|
||||
"Switch to Desktop 9" = "Meta+9";
|
||||
"Window to Desktop 9" = "Meta+(";
|
||||
"Switch to Desktop 10" = "Meta+0";
|
||||
"Window to Desktop 10" = "Meta+)";
|
||||
};
|
||||
configFile = {
|
||||
"kwinrc"."Desktops"."Number"."value" = 10;
|
||||
"kwinrc"."Desktops"."Rows"."value" = 2;
|
||||
};
|
||||
};
|
||||
}
|
@ -133,7 +133,7 @@
|
||||
extraSpecialArgs = { inherit inputs outputs; };
|
||||
backupFileExtension = ".bak";
|
||||
users = {
|
||||
traverseda = import ../home-manager/home.nix;
|
||||
traverseda = import ../home-manager/traverseda/home.nix;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{ inputs, outputs, lib, config, pkgs, hostname, specialArgs, options, ... }:
|
||||
|
||||
{
|
||||
# Enable the KDE Desktop Environment.
|
||||
@ -79,6 +79,14 @@ programs.dconf.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs outputs; };
|
||||
backupFileExtension = ".bak";
|
||||
users = {
|
||||
traverseda = import ../home-manager/traverseda/kde-desktop.nix;
|
||||
};
|
||||
};
|
||||
|
||||
#Enable support for my logitech bluetooth peripherals
|
||||
hardware.logitech.wireless.enable = true;
|
||||
hardware.logitech.wireless.enableGraphical = true;
|
||||
|
Loading…
Reference in New Issue
Block a user