mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-22 18:21:58 +01:00
chore: add more dotfiles, install clickup
This commit is contained in:
parent
5642b97943
commit
c1dc0469d0
15
TODO.md
15
TODO.md
@ -1,15 +0,0 @@
|
||||
# Todo
|
||||
|
||||
## desktop
|
||||
|
||||
* clickup (package https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-appimageTools)
|
||||
* curseforge (package)
|
||||
* gnupg copy
|
||||
* kubectl plugins: neat, oidc_login, realname_diff, whoami
|
||||
* mc config
|
||||
* netrc config
|
||||
* github token
|
||||
|
||||
## server
|
||||
|
||||
* coredns for private domain names
|
@ -24,7 +24,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
kernelModules = [ ];
|
||||
kernelModules = [ "coretemp" "thinkpad_acpi" ];
|
||||
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
||||
|
||||
initrd = {
|
||||
@ -32,4 +32,20 @@
|
||||
kernelModules = [ "dm-snapshot" ];
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
thinkfan = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
systemd = {
|
||||
services = {
|
||||
thinkfan = {
|
||||
preStart = "
|
||||
/run/current-system/sw/bin/modprobe -r thinkpad_acpi && /run/current-system/sw/bin/modprobe thinkpad_acpi
|
||||
";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
24
flake.lock
24
flake.lock
@ -80,11 +80,11 @@
|
||||
},
|
||||
"hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1669146234,
|
||||
"narHash": "sha256-HEby7EG1yaq1oT2Ze6Cvok9CFju1XHkSvVHmkptLW9U=",
|
||||
"lastModified": 1669650994,
|
||||
"narHash": "sha256-uwASLUfedIQ5q01TtMwZDEV2HCZr5nVPZjzVgCG+D5I=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "0099253ad0b5283f06ffe31cf010af3f9ad7837d",
|
||||
"rev": "7883883d135ce5b7eae5dce4bfa12262b85c1c46",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -101,11 +101,11 @@
|
||||
"utils": "utils_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1669071065,
|
||||
"narHash": "sha256-KBpgj3JkvlPsJ3duOZqFJe6tgr+wc75t8sFmgRbBSbw=",
|
||||
"lastModified": 1669825171,
|
||||
"narHash": "sha256-HxlZHSiRGXnWAFbIJMeujqBe2KgACYx5XDRY0EA9P+4=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "f7641a3ff398ccce952e19a199d775934e518c1d",
|
||||
"rev": "478610aa37c8339eacabfa03f07dacf5574edd47",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -116,11 +116,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1669052418,
|
||||
"narHash": "sha256-M1I4BKXBQm2gey1tScemEh5TpHHE3gKptL7BpWUvL8s=",
|
||||
"lastModified": 1669791787,
|
||||
"narHash": "sha256-KBfoA2fOI5+wCrm7PR+j7jHqXeTkVRPQ0m5fcKchyuU=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8",
|
||||
"rev": "e76c78d20685a043d23f5f9e0ccd2203997f1fb1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -132,11 +132,11 @@
|
||||
},
|
||||
"nur": {
|
||||
"locked": {
|
||||
"lastModified": 1669182177,
|
||||
"narHash": "sha256-U3Bp+pZN58lEqlk1hoTyCGUckFpZfXW2b14p1NGymyY=",
|
||||
"lastModified": 1669805596,
|
||||
"narHash": "sha256-g1CPQZ+1jGhY4bsjppk+gH5jfzzqmPlqGHg0zSYS3Hw=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NUR",
|
||||
"rev": "6ccbe180fc646a7672cede9fa008fd30d744d0c8",
|
||||
"rev": "c81b1e527f3a220abfa9bf8096153d52784c5007",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
19
overlays/clickup/default.nix
Normal file
19
overlays/clickup/default.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{ lib, fetchurl, appimageTools }:
|
||||
|
||||
appimageTools.wrapType2 rec {
|
||||
pname = "clickup";
|
||||
version = "3.1.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://desktop.clickup.com/linux";
|
||||
sha256 = "sha256-Qkvs01L9qfvZ5E9BnLdw2oWYaL5tYR3faFjlv6pAY2Y=";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "All of your work in one place: Tasks, Docs, Chat, Goals, & more.";
|
||||
homepage = "https://clickup.com/";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ tboerger ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -26,5 +26,7 @@ self: super:
|
||||
kubectl-resource-versions = super.callPackage ./kubectl-resource-versions { };
|
||||
kubectl-view-secret = super.callPackage ./kubectl-view-secret { };
|
||||
kubectl-whoami = super.callPackage ./kubectl-whoami { };
|
||||
|
||||
clickup = super.callPackage ./clickup { };
|
||||
tailscale-systray = super.callPackage ./tailscale-systray { };
|
||||
}
|
||||
|
26
profiles/programs/clickup.nix
Normal file
26
profiles/programs/clickup.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ pkgs, lib, config, options, ... }:
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.profile.programs.clickup;
|
||||
|
||||
in
|
||||
{
|
||||
options = {
|
||||
profile = {
|
||||
programs = {
|
||||
clickup = {
|
||||
enable = mkEnableOption "ClickUp";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
clickup
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
@ -4,6 +4,7 @@
|
||||
imports = [
|
||||
./authy.nix
|
||||
./browser.nix
|
||||
./clickup.nix
|
||||
./clockify.nix
|
||||
./develop.nix
|
||||
./direnv.nix
|
||||
|
@ -35,6 +35,9 @@ in
|
||||
browser = {
|
||||
enable = desktop;
|
||||
};
|
||||
clickup = {
|
||||
enable = desktop;
|
||||
};
|
||||
clockify = {
|
||||
enable = desktop;
|
||||
};
|
||||
@ -120,21 +123,24 @@ in
|
||||
enable = desktop;
|
||||
};
|
||||
|
||||
alacritty = {
|
||||
enable = desktop;
|
||||
};
|
||||
autorandr = {
|
||||
enable = desktop;
|
||||
};
|
||||
hacking = {
|
||||
enable = desktop;
|
||||
};
|
||||
ghtoken = {
|
||||
enable = desktop;
|
||||
};
|
||||
kustomize = {
|
||||
enable = desktop;
|
||||
};
|
||||
minio = {
|
||||
enable = desktop;
|
||||
};
|
||||
netrc = {
|
||||
enable = desktop;
|
||||
};
|
||||
ssh = {
|
||||
enable = desktop;
|
||||
};
|
||||
@ -144,18 +150,12 @@ in
|
||||
};
|
||||
|
||||
services = {
|
||||
blueman = {
|
||||
enable = desktop;
|
||||
};
|
||||
mopidy = {
|
||||
enable = desktop;
|
||||
};
|
||||
nextcloud = {
|
||||
enable = desktop;
|
||||
};
|
||||
nmapplet = {
|
||||
enable = desktop;
|
||||
};
|
||||
udiskie = {
|
||||
enable = desktop;
|
||||
};
|
||||
|
@ -75,6 +75,7 @@ in
|
||||
systemPackages = with pkgs; [
|
||||
gnome.adwaita-icon-theme
|
||||
gnome.gnome-tweaks
|
||||
xclip
|
||||
|
||||
gnomeExtensions.app-icons-taskbar
|
||||
gnomeExtensions.appindicator
|
||||
|
@ -7,8 +7,8 @@ let
|
||||
programs = {
|
||||
term = [
|
||||
{
|
||||
exec = "Alacritty";
|
||||
class = "Alacritty";
|
||||
exec = "wezterm";
|
||||
class = "WezTerm";
|
||||
}
|
||||
];
|
||||
|
||||
@ -94,12 +94,18 @@ in
|
||||
config = mkIf cfg.enable {
|
||||
profile = {
|
||||
services = {
|
||||
blueman = {
|
||||
enable = true;
|
||||
};
|
||||
caffeine = {
|
||||
enable = true;
|
||||
};
|
||||
flameshot = {
|
||||
enable = true;
|
||||
};
|
||||
nmapplet = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@ -126,6 +132,7 @@ in
|
||||
lxappearance
|
||||
playerctl
|
||||
scrot
|
||||
xclip
|
||||
];
|
||||
};
|
||||
|
||||
@ -134,7 +141,7 @@ in
|
||||
enable = true;
|
||||
|
||||
font = "DejaVu Sans Mono 14";
|
||||
terminal = "alacritty";
|
||||
terminal = "wezterm";
|
||||
theme = "solarized";
|
||||
|
||||
plugins = with pkgs; [
|
||||
@ -575,7 +582,7 @@ in
|
||||
"--release Ctrl+Print" = "exec --no-startup-id scrot -s";
|
||||
|
||||
"Mod4+d" = "exec --no-startup-id rofi -show drun";
|
||||
"Mod4+Return" = "exec alacritty";
|
||||
"Mod4+Return" = "exec wezterm";
|
||||
"Mod4+Shift+q" = "kill";
|
||||
|
||||
"Mod4+Left" = "focus left";
|
||||
|
@ -1,91 +0,0 @@
|
||||
{ pkgs, lib, config, options, ... }:
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.profile.programs.alacritty;
|
||||
|
||||
in
|
||||
{
|
||||
options = {
|
||||
profile = {
|
||||
programs = {
|
||||
alacritty = {
|
||||
enable = mkEnableOption "Alacritty";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users."${config.profile.username}" = { config, ... }: {
|
||||
programs = {
|
||||
alacritty = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
env = {
|
||||
TERM = "xterm-256color";
|
||||
WINIT_X11_SCALE_FACTOR = "1";
|
||||
};
|
||||
|
||||
window = {
|
||||
padding = {
|
||||
x = 5;
|
||||
y = 5;
|
||||
};
|
||||
};
|
||||
|
||||
scrolling = {
|
||||
history = 100000;
|
||||
};
|
||||
|
||||
font = {
|
||||
size = 14.0;
|
||||
|
||||
normal = {
|
||||
family = "DejaVu Sans Mono";
|
||||
};
|
||||
};
|
||||
|
||||
# key_bindings = [
|
||||
# {
|
||||
# key = "K";
|
||||
# mods = "Control";
|
||||
# action = "ClearHistory";
|
||||
# }
|
||||
# ];
|
||||
|
||||
colors = {
|
||||
primary = {
|
||||
background = "0x002b36";
|
||||
foreground = "0x839496";
|
||||
};
|
||||
|
||||
normal = {
|
||||
black = "0x073642";
|
||||
red = "0xdc322f";
|
||||
green = "0x859900";
|
||||
yellow = "0xb58900";
|
||||
blue = "0x268bd2";
|
||||
magenta = "0xd33682";
|
||||
cyan = "0x2aa198";
|
||||
white = "0xeee8d5";
|
||||
};
|
||||
|
||||
bright = {
|
||||
black = "0x002b36";
|
||||
red = "0xcb4b16";
|
||||
green = "0x586e75";
|
||||
yellow = "0x657b83";
|
||||
blue = "0x839496";
|
||||
magenta = "0x6c71c4";
|
||||
cyan = "0x93a1a1";
|
||||
white = "0xfdf6e3";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -2,13 +2,14 @@
|
||||
|
||||
{
|
||||
imports = [
|
||||
./alacritty.nix
|
||||
./autorandr.nix
|
||||
./dircolors.nix
|
||||
./ghtoken.nix
|
||||
./git.nix
|
||||
./hacking.nix
|
||||
./kustomize.nix
|
||||
./minio.nix
|
||||
./netrc.nix
|
||||
./ssh.nix
|
||||
./starship.nix
|
||||
./vscode.nix
|
||||
|
38
profiles/thomas/programs/ghtoken.nix
Normal file
38
profiles/thomas/programs/ghtoken.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ pkgs, lib, config, options, ... }:
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.profile.programs.ghtoken;
|
||||
|
||||
in
|
||||
{
|
||||
options = {
|
||||
profile = {
|
||||
programs = {
|
||||
ghtoken = {
|
||||
enable = mkEnableOption "GHToken";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# home-manager.users."${config.profile.username}" = let
|
||||
# ghtokenPath = config.age.secrets."users/thomas/ghtoken".path;
|
||||
# in { config, ... }: {
|
||||
# home = {
|
||||
# file = {
|
||||
# ".ghtoken" = {
|
||||
# source = ghtokenPath;
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
|
||||
# age.secrets."users/thomas/ghtoken" = {
|
||||
# file = ../../../secrets/users/thomas/ghtoken.age;
|
||||
# owner = "thomas";
|
||||
# group = "users";
|
||||
# };
|
||||
};
|
||||
}
|
38
profiles/thomas/programs/netrc.nix
Normal file
38
profiles/thomas/programs/netrc.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ pkgs, lib, config, options, ... }:
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.profile.programs.netrc;
|
||||
|
||||
in
|
||||
{
|
||||
options = {
|
||||
profile = {
|
||||
programs = {
|
||||
netrc = {
|
||||
enable = mkEnableOption "Netrc";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# home-manager.users."${config.profile.username}" = let
|
||||
# netrcPath = config.age.secrets."users/thomas/netrc".path;
|
||||
# in { config, ... }: {
|
||||
# home = {
|
||||
# file = {
|
||||
# "..netrc" = {
|
||||
# source = netrcPath;
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
|
||||
# age.secrets."users/thomas/netrc" = {
|
||||
# file = ../../../secrets/users/thomas/netrc.age;
|
||||
# owner = "thomas";
|
||||
# group = "users";
|
||||
# };
|
||||
};
|
||||
}
|
@ -30,6 +30,8 @@ in
|
||||
"users/adrian/password.age".publicKeys = users ++ systems;
|
||||
"users/tabea/password.age".publicKeys = users ++ systems;
|
||||
|
||||
"users/thomas/ghtoken.age".publicKeys = users ++ systems;
|
||||
"users/thomas/hackthebox.age".publicKeys = users ++ systems;
|
||||
"users/thomas/minio.age".publicKeys = users ++ systems;
|
||||
"users/thomas/netrc.age".publicKeys = users ++ systems;
|
||||
}
|
||||
|
20
secrets/users/thomas/ghtoken.age
Normal file
20
secrets/users/thomas/ghtoken.age
Normal file
@ -0,0 +1,20 @@
|
||||
age-encryption.org/v1
|
||||
-> ssh-ed25519 ptT1OQ N0SG4hZITJc34D4tZFgg82TEzXCK+8nfro8BFjGi4DU
|
||||
TiGnvKTAZOXCHVF+YNWvkj2FnSWk1X5k7ioy3bShl6I
|
||||
-> ssh-ed25519 dHPgHQ Eqwtjxmu71huTkIrV1ECdfdXvabIB+pO0e+kewikf1g
|
||||
x8/sdBsOTJEuu/s8etMM20ukhOgIwKLqeYcbeGlxY4I
|
||||
-> ssh-ed25519 RlXbCA yNS0bi6+meWIzRj+tFtCUuHwmjkeWPwXlArmOjWebXw
|
||||
E/tbdq0n705YnMIdo3mX7Sta+OF8ibmHqo7badxl6rA
|
||||
-> ssh-ed25519 g6Zebw z2shLxfe/twM4VD1XGabmJ7xsE4VZrl7dRAV62b6CTA
|
||||
Cf7LbuvEWbZRxaZziipkARYT4t1qBkZELSC4PPjfIIE
|
||||
-> ssh-ed25519 vDK6kA Kw8XEw6AJeKWNUY1lQFE6hEVvmZ9U8oClBxRVU64egU
|
||||
WGArD8Q2MZmAvHN/3KDXJp3OEZ/AeAfra+ug7J7PIr0
|
||||
-> ssh-ed25519 mO4+dg 0Vx3LWwUO+NfZmy6j7VMcbsk2iYoYZ7ovmq/1yU+vlw
|
||||
T9Rn9bTGthOupqe7OFFdsDXP8d7FN7Bsh7LIpY0J3BA
|
||||
-> ssh-ed25519 IYHv1g gPCj2vrGJclvnc40nRFVCQYCuT3avEn4H9NDQJ/rF1M
|
||||
g/FWvUilBo9dxns0+m9yhxsUK0/GdhlSJyo1oC8+crE
|
||||
-> O+Z[-grease xb$/z9 '^A ":,Z d`
|
||||
h/rc0Q18HlagH6fS/2trvPnPNxTnnw70jGXvCi5VgaOVebRRMkD7QFxm3MTZN/r/
|
||||
EapZsw
|
||||
--- IM2U+WrG4+RnabE8m237GquAHwo7pecEpTnDTX5nxsg
|
||||
…ðØ×?)ÆfþŒ
•w¤z,^ë$J¼°tmEú™¯‡[fÿñA^¦V ”Ä&³'ÊÈè°Æã—î'¼J¯ŸÀBý6ÊÂJj
|
19
secrets/users/thomas/netrc.age
Normal file
19
secrets/users/thomas/netrc.age
Normal file
@ -0,0 +1,19 @@
|
||||
age-encryption.org/v1
|
||||
-> ssh-ed25519 ptT1OQ YbyC+DC6FgqrAC95SCw8jAo8DLaGkbyLJI0hxxhGWQ8
|
||||
Nbd2l3saoGYlxQ9o3W8asjs8K8yP5yO0y71vunaZQ4I
|
||||
-> ssh-ed25519 dHPgHQ PnlCMhZY8roW1DizJTD4XQpGY1HU8Y4a/zDXibsj1nI
|
||||
prkGRLDO+IEeSjzlL9avFBa3NqWixUMhgKY3Q3clKlQ
|
||||
-> ssh-ed25519 RlXbCA gBistiXVEPBzyl0LhYHTjYM+9MMRWAZeAkvvY2eao2w
|
||||
wVneBdA33vpiYVfI8QUFvL+Sl3ieqWpci9JJtduiWOE
|
||||
-> ssh-ed25519 g6Zebw wfOZjdT1xlBFSku+H/I9eh42GlcP+645Oso8MV4d+xI
|
||||
GZUGUc+Hdc7/xIhHyUFTq7JjaIA8LV9eNVAykYWzSHY
|
||||
-> ssh-ed25519 vDK6kA rDCnqNANoQ+Ly+RsModfCGpkWVceSa6YmBTdmhvbMGM
|
||||
Lc9qv4ut5McGbMwYzbDWNqudIulfUgiSQKU4HOKm/ww
|
||||
-> ssh-ed25519 mO4+dg ll5EjiAOBSLT6roZmpk2xBBANQVB5d1aLK/rZBIG7zA
|
||||
L4WRFMloBb80V9wFMor1szmZnoI6IAGFDM78wpmdRCw
|
||||
-> ssh-ed25519 IYHv1g serS7TzHDJNmR2q5T6bkA2+VMFLCv/2/TX21RkMltQg
|
||||
jlDFwEfeJVlXPkZrZXaik/g7CHU+8DDNPtBRWfBr+Is
|
||||
-> NmPzG*^B-grease 1 {K
|
||||
grGuTEaLNqXOePkwLd/1fuwwbb3YyJzjxA
|
||||
--- ZQEO/5MNTOHQUyYeeE6GisRA96U1bw7+xxCJQJwmxRQ
|
||||
kXR¡g‡+õ*ï¾ù*=]r¶‚«Ø[ß“Þ{ÐÒ´t!±¿ãÁ·ËKw›¡´é®a‹½a5^|†HZóåëq+"'Gê£q’zÔ‚tÊÝû
€ÉÒôbNmLÿrào«´'.«Ð}—⯠Ÿ§Ti2þÏÔ<C38F>±þ¼Dn²ÙzÙ(gMt<\c+×€<C397>Ësÿ†ºfŘ¡-Bo\@ ä.Óì¬._¸¶ôÓø<C393>“âþWïY ;ÕÓÈŸ0™¤P ¦?Á„<C381>±9R6<52><36>•>av–Lªéjé0A}˜ª#°‡AL®g•5ù} ¾Æ‘’1<E28099>c@ Š¬°ÃG<C383>WtWÒH™&àowA{HrK¢“ß| Ë=1ÿhdè]e“NÚo™G,Ã÷áÖ(š§Ú4Ì%[ïþé£çXœ }Dyq³r<>dBJfš‘.|Ñ’Ñ•¥/Üïu”Ù¯Ò|óÈÔu,ÆbË÷ôkt¾S¤à™ê¬ÍÇgœ<67>¹2Š÷lÑŸã Õâ"ã)Èò’˜WþÍ„ìqa0…ú&¤ÙÅ:<A±T<C2B1>î7sÕúùUv22´‰Ø4z ÏS½`àÌÇùʲ†é¹ïtØ7RhÃâoK´Ëi, ><›XI—¹±šc)J†Œ0j^ûÒ_óÑÞ±<C39E>ˆ‹²µYpÛÙGºZÀ
|
@ -65,9 +65,10 @@ in
|
||||
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
cpuFreqGovernor = "powersave";
|
||||
|
||||
powertop = {
|
||||
enable = false;
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user