initial setup of plasma-manager
This commit is contained in:
parent
eff9d545e0
commit
9033e01b07
6 changed files with 113 additions and 6 deletions
24
flake.lock
generated
24
flake.lock
generated
|
@ -405,12 +405,36 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"plasma-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"home-manager": [
|
||||||
|
"home-manager"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1723391864,
|
||||||
|
"narHash": "sha256-nX/aloqD8ZHcuPS7sk7fx1txTaXCi+o6iYm0mIX4uIE=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "plasma-manager",
|
||||||
|
"rev": "f843f4258eea57c5ba60f6ce1d96d12d6494b56e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "plasma-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"firefox": "firefox",
|
"firefox": "firefox",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
|
"plasma-manager": "plasma-manager",
|
||||||
"rust": "rust",
|
"rust": "rust",
|
||||||
"stylix": "stylix"
|
"stylix": "stylix"
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,12 @@
|
||||||
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";
|
||||||
|
};
|
||||||
|
|
||||||
firefox.url = "github:nix-community/flake-firefox-nightly";
|
firefox.url = "github:nix-community/flake-firefox-nightly";
|
||||||
|
|
||||||
stylix.url = "github:danth/stylix";
|
stylix.url = "github:danth/stylix";
|
||||||
|
|
|
@ -14,23 +14,40 @@ in
|
||||||
|
|
||||||
config = mkIf cfg.enable
|
config = mkIf cfg.enable
|
||||||
{
|
{
|
||||||
user.packages = attrValues {
|
# user.packages = attrValues {
|
||||||
inherit (pkgs) thunderbird;
|
# inherit (pkgs) thunderbird;
|
||||||
|
# };
|
||||||
|
|
||||||
|
programs.thunderbird = {
|
||||||
|
enable = true;
|
||||||
|
# profiles.chris = {
|
||||||
|
# isDefault = true;
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
hm.accounts.email.accounts = {
|
hm.accounts.email.accounts = {
|
||||||
kruining = {
|
kruining = {
|
||||||
primary = true;
|
primary = true;
|
||||||
address = "chris@kruinin.eu";
|
address = "chris@kruinin.eu";
|
||||||
thunderbird.enable = true;
|
|
||||||
realName = "Chris Kruining";
|
realName = "Chris Kruining";
|
||||||
|
imap = {
|
||||||
|
host = "imap.kruining.eu";
|
||||||
|
port = 993;
|
||||||
|
};
|
||||||
|
thunderbird = {
|
||||||
|
enable = true;
|
||||||
|
profiles = [ "chris" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
cgames = {
|
cgames = {
|
||||||
primary = false;
|
primary = false;
|
||||||
address = "chris@cgames.nl";
|
address = "chris@cgames.nl";
|
||||||
thunderbird.enable = true;
|
|
||||||
realName = "Chris P Bacon";
|
realName = "Chris P Bacon";
|
||||||
|
imap = {
|
||||||
|
host = "imap.cgames.nl";
|
||||||
|
port = 993;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
21
modules/desktop/applications/passwords.nix
Normal file
21
modules/desktop/applications/passwords.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ options, config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib.modules) mkIf mkForce mkMerge;
|
||||||
|
inherit (lib.attrsets) attrValues;
|
||||||
|
|
||||||
|
cfg = config.modules.desktop.applications.passwords;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.desktop.applications.passwords = let
|
||||||
|
inherit (lib.options) mkEnableOption;
|
||||||
|
in {
|
||||||
|
enable = mkEnableOption "Enable password manager (bitwarden)";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable
|
||||||
|
{
|
||||||
|
user.packages = attrValues {
|
||||||
|
inherit (pkgs) bitwarden-desktop;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -34,5 +34,42 @@ in
|
||||||
|
|
||||||
# should enable theme integration with gtk apps (i.e. firefox, thunderbird)
|
# should enable theme integration with gtk apps (i.e. firefox, thunderbird)
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
|
hm.programs.plasma = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# panels = [
|
||||||
|
# {
|
||||||
|
# location = "bottom";
|
||||||
|
# widgets = [
|
||||||
|
# {
|
||||||
|
# name = "org.kde.plasma.kickoff";
|
||||||
|
# config = {
|
||||||
|
# General = {
|
||||||
|
# icon = "nix-snowflake-white";
|
||||||
|
# alphaSort = true;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# }
|
||||||
|
#
|
||||||
|
# {
|
||||||
|
# kickoff = {
|
||||||
|
# sortAlphabetically = true;
|
||||||
|
# icon = "nix-snowflake-white";
|
||||||
|
# };
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
|
|
||||||
|
kwin = {
|
||||||
|
edgeBarrier = 0;
|
||||||
|
cornerBarrier = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
spectacle.shortcuts = {
|
||||||
|
captureRectangularRegion = "Meta+Shift+S";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, options, lib, pkgs, ... }:
|
{ inputs, config, options, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
inherit (builtins) elem isList pathExists toString;
|
inherit (builtins) elem isList pathExists toString;
|
||||||
inherit (lib.attrsets) mapAttrs mapAttrsToList;
|
inherit (lib.attrsets) mapAttrs mapAttrsToList;
|
||||||
|
@ -35,7 +35,8 @@ in
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
inherit name;
|
inherit name;
|
||||||
description = "Primary user account";
|
# description = "Primary user account";
|
||||||
|
description = "Chris Kruining";
|
||||||
extraGroups = [ "wheel" ];
|
extraGroups = [ "wheel" ];
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
home = "/home/${name}";
|
home = "/home/${name}";
|
||||||
|
@ -46,6 +47,7 @@ in
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
|
sharedModules = [ inputs.plasma-manager.homeManagerModules.plasma-manager ];
|
||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue