simplify some things and remove some unused code
367
flake.lock
generated
|
@ -1,47 +1,5 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"authentik-nix": {
|
|
||||||
"inputs": {
|
|
||||||
"authentik-src": "authentik-src",
|
|
||||||
"flake-compat": "flake-compat",
|
|
||||||
"flake-parts": "flake-parts",
|
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"napalm": "napalm",
|
|
||||||
"nixpkgs": "nixpkgs",
|
|
||||||
"poetry2nix": "poetry2nix",
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1732215451,
|
|
||||||
"narHash": "sha256-P2VVlzRGKBNsiHsN1yMZcSMXpwtIx9ysMFZAqKFJ14o=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "authentik-nix",
|
|
||||||
"rev": "9d9c0a3a94a91cfed654a18239e27cf56970daa4",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "authentik-nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"authentik-src": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1732213300,
|
|
||||||
"narHash": "sha256-4Pv35cnZGiTxe6j2O0F9L9sHzxVIC1SazeAUD5kWeBs=",
|
|
||||||
"owner": "goauthentik",
|
|
||||||
"repo": "authentik",
|
|
||||||
"rev": "527e584699abc93712114b05f70f59c5187caa66",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "goauthentik",
|
|
||||||
"ref": "version/2024.10.4",
|
|
||||||
"repo": "authentik",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"base16": {
|
"base16": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"fromYaml": "fromYaml"
|
"fromYaml": "fromYaml"
|
||||||
|
@ -132,7 +90,7 @@
|
||||||
},
|
},
|
||||||
"firefox-addons": {
|
"firefox-addons": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_2",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
|
@ -202,22 +160,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_4": {
|
"flake-compat_4": {
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1696426674,
|
|
||||||
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-compat_5": {
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1696426674,
|
"lastModified": 1696426674,
|
||||||
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
||||||
|
@ -231,7 +173,7 @@
|
||||||
"url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"
|
"url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_6": {
|
"flake-compat_5": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1696426674,
|
"lastModified": 1696426674,
|
||||||
|
@ -248,24 +190,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1727826117,
|
|
||||||
"narHash": "sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"rev": "3d04084d54bedc3d6b8b736c70ef449225c361b1",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-parts_2": {
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
|
@ -285,7 +209,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts_3": {
|
"flake-parts_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
"nvim-nix",
|
"nvim-nix",
|
||||||
|
@ -308,27 +232,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"inputs": {
|
|
||||||
"systems": [
|
|
||||||
"authentik-nix",
|
|
||||||
"systems"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1726560853,
|
|
||||||
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils_2": {
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1629284811,
|
"lastModified": 1629284811,
|
||||||
"narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=",
|
"narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=",
|
||||||
|
@ -343,9 +246,9 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_3": {
|
"flake-utils_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_2"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731533236,
|
"lastModified": 1731533236,
|
||||||
|
@ -361,9 +264,9 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_4": {
|
"flake-utils_3": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_3"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710146030,
|
"lastModified": 1710146030,
|
||||||
|
@ -379,9 +282,9 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_5": {
|
"flake-utils_4": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_4"
|
"systems": "systems_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726560853,
|
"lastModified": 1726560853,
|
||||||
|
@ -397,6 +300,24 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-utils_5": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_4"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731533236,
|
||||||
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-utils_6": {
|
"flake-utils_6": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_5"
|
"systems": "systems_5"
|
||||||
|
@ -416,24 +337,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_7": {
|
"flake-utils_7": {
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_6"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1731533236,
|
|
||||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils_8": {
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": [
|
"systems": [
|
||||||
"stylix",
|
"stylix",
|
||||||
|
@ -558,26 +461,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"haumea": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1708375098,
|
|
||||||
"narHash": "sha256-DaFJp3wDHgOqx98U0SF57bXaH2Orp106c+jSdPCVu1E=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "haumea",
|
|
||||||
"rev": "ec6350fd9353e7f27ce0e85d31f82e3ed73e4d70",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "haumea",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -673,7 +556,7 @@
|
||||||
},
|
},
|
||||||
"microvm": {
|
"microvm": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_3",
|
"flake-utils": "flake-utils_2",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
|
@ -693,32 +576,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"napalm": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": [
|
|
||||||
"authentik-nix",
|
|
||||||
"flake-utils"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"authentik-nix",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1725806412,
|
|
||||||
"narHash": "sha256-lGZjkjds0p924QEhm/r0BhAxbHBJE1xMOldB/HmQH04=",
|
|
||||||
"owner": "willibutz",
|
|
||||||
"repo": "napalm",
|
|
||||||
"rev": "b492440d9e64ae20736d3bec5c7715ffcbde83f5",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "willibutz",
|
|
||||||
"ref": "avoid-foldl-stack-overflow",
|
|
||||||
"repo": "napalm",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nix-darwin": {
|
"nix-darwin": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -741,28 +598,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nix-github-actions": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"authentik-nix",
|
|
||||||
"poetry2nix",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1729742964,
|
|
||||||
"narHash": "sha256-B4mzTcQ0FZHdpeWcpDYPERtyjJd/NIuaQ9+BV1h+MpA=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nix-github-actions",
|
|
||||||
"rev": "e04df33f62cdcf93d73e9a04142464753a16db67",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nix-github-actions",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nix-index-database": {
|
"nix-index-database": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -785,8 +620,8 @@
|
||||||
},
|
},
|
||||||
"nix-vscode-extensions": {
|
"nix-vscode-extensions": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat",
|
||||||
"flake-utils": "flake-utils_4",
|
"flake-utils": "flake-utils_3",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
|
@ -807,8 +642,8 @@
|
||||||
},
|
},
|
||||||
"nixos-wsl": {
|
"nixos-wsl": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_3",
|
"flake-compat": "flake-compat_2",
|
||||||
"flake-utils": "flake-utils_5",
|
"flake-utils": "flake-utils_4",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
|
@ -829,34 +664,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
|
||||||
"lastModified": 1730200266,
|
|
||||||
"narHash": "sha256-l253w0XMT8nWHGXuXqyiIC/bMvh1VRszGXgdpQlfhvU=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "807e9154dcb16384b1b765ebe9cd2bba2ac287fd",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs-lib": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1727825735,
|
|
||||||
"narHash": "sha256-0xHYkMkeLVQAMa7gvkddbPqpxph+hDzdu1XdGPJR+Os=",
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_2": {
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733392399,
|
"lastModified": 1733392399,
|
||||||
"narHash": "sha256-kEsTJTUQfQFIJOcLYFt/RvNxIK653ZkTBIs4DG+cBns=",
|
"narHash": "sha256-kEsTJTUQfQFIJOcLYFt/RvNxIK653ZkTBIs4DG+cBns=",
|
||||||
|
@ -872,7 +679,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1728538411,
|
"lastModified": 1728538411,
|
||||||
"narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=",
|
"narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=",
|
||||||
|
@ -888,7 +695,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732238832,
|
"lastModified": 1732238832,
|
||||||
"narHash": "sha256-sQxuJm8rHY20xq6Ah+GwIUkF95tWjGRd1X8xF+Pkk38=",
|
"narHash": "sha256-sQxuJm8rHY20xq6Ah+GwIUkF95tWjGRd1X8xF+Pkk38=",
|
||||||
|
@ -907,8 +714,8 @@
|
||||||
"nixvim": {
|
"nixvim": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"devshell": "devshell",
|
"devshell": "devshell",
|
||||||
"flake-compat": "flake-compat_5",
|
"flake-compat": "flake-compat_4",
|
||||||
"flake-parts": "flake-parts_3",
|
"flake-parts": "flake-parts_2",
|
||||||
"git-hooks": "git-hooks",
|
"git-hooks": "git-hooks",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
|
@ -917,7 +724,7 @@
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"nuschtosSearch": "nuschtosSearch",
|
"nuschtosSearch": "nuschtosSearch",
|
||||||
"treefmt-nix": "treefmt-nix_2"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733498727,
|
"lastModified": 1733498727,
|
||||||
|
@ -935,7 +742,7 @@
|
||||||
},
|
},
|
||||||
"nuschtosSearch": {
|
"nuschtosSearch": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_7",
|
"flake-utils": "flake-utils_6",
|
||||||
"ixx": "ixx",
|
"ixx": "ixx",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nvim-nix",
|
"nvim-nix",
|
||||||
|
@ -959,8 +766,8 @@
|
||||||
},
|
},
|
||||||
"nvfetcher": {
|
"nvfetcher": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_4",
|
"flake-compat": "flake-compat_3",
|
||||||
"flake-utils": "flake-utils_6",
|
"flake-utils": "flake-utils_5",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
|
@ -1000,50 +807,17 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"poetry2nix": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": [
|
|
||||||
"authentik-nix",
|
|
||||||
"flake-utils"
|
|
||||||
],
|
|
||||||
"nix-github-actions": "nix-github-actions",
|
|
||||||
"nixpkgs": [
|
|
||||||
"authentik-nix",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": [
|
|
||||||
"authentik-nix",
|
|
||||||
"systems"
|
|
||||||
],
|
|
||||||
"treefmt-nix": "treefmt-nix"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1730284601,
|
|
||||||
"narHash": "sha256-eHYcKVLIRRv3J1vjmxurS6HVdGphB53qxUeAkylYrZY=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "poetry2nix",
|
|
||||||
"rev": "43a898b4d76f7f3f70df77a2cc2d40096bc9d75e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "poetry2nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"authentik-nix": "authentik-nix",
|
|
||||||
"firefox-addons": "firefox-addons",
|
"firefox-addons": "firefox-addons",
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts",
|
||||||
"hardware": "hardware",
|
"hardware": "hardware",
|
||||||
"haumea": "haumea",
|
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"microvm": "microvm",
|
"microvm": "microvm",
|
||||||
"nix-index-database": "nix-index-database",
|
"nix-index-database": "nix-index-database",
|
||||||
"nix-vscode-extensions": "nix-vscode-extensions",
|
"nix-vscode-extensions": "nix-vscode-extensions",
|
||||||
"nixos-wsl": "nixos-wsl",
|
"nixos-wsl": "nixos-wsl",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs",
|
||||||
"nvfetcher": "nvfetcher",
|
"nvfetcher": "nvfetcher",
|
||||||
"nvim-nix": "nvim-nix",
|
"nvim-nix": "nvim-nix",
|
||||||
"sobercookie": "sobercookie",
|
"sobercookie": "sobercookie",
|
||||||
|
@ -1054,7 +828,7 @@
|
||||||
},
|
},
|
||||||
"sobercookie": {
|
"sobercookie": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731438009,
|
"lastModified": 1731438009,
|
||||||
|
@ -1112,12 +886,12 @@
|
||||||
"base16-fish": "base16-fish",
|
"base16-fish": "base16-fish",
|
||||||
"base16-helix": "base16-helix",
|
"base16-helix": "base16-helix",
|
||||||
"base16-vim": "base16-vim",
|
"base16-vim": "base16-vim",
|
||||||
"flake-compat": "flake-compat_6",
|
"flake-compat": "flake-compat_5",
|
||||||
"flake-utils": "flake-utils_8",
|
"flake-utils": "flake-utils_7",
|
||||||
"gnome-shell": "gnome-shell",
|
"gnome-shell": "gnome-shell",
|
||||||
"home-manager": "home-manager_3",
|
"home-manager": "home-manager_3",
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"systems": "systems_7",
|
"systems": "systems_6",
|
||||||
"tinted-foot": "tinted-foot",
|
"tinted-foot": "tinted-foot",
|
||||||
"tinted-kitty": "tinted-kitty",
|
"tinted-kitty": "tinted-kitty",
|
||||||
"tinted-tmux": "tinted-tmux"
|
"tinted-tmux": "tinted-tmux"
|
||||||
|
@ -1138,16 +912,16 @@
|
||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689347949,
|
"lastModified": 1681028828,
|
||||||
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
"owner": "nix-systems",
|
"owner": "nix-systems",
|
||||||
"repo": "default-linux",
|
"repo": "default",
|
||||||
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-systems",
|
"owner": "nix-systems",
|
||||||
"repo": "default-linux",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1226,21 +1000,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_7": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tinted-foot": {
|
"tinted-foot": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -1292,28 +1051,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"authentik-nix",
|
|
||||||
"poetry2nix",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1730120726,
|
|
||||||
"narHash": "sha256-LqHYIxMrl/1p3/kvm2ir925tZ8DkI0KA10djk8wecSk=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "treefmt-nix",
|
|
||||||
"rev": "9ef337e492a5555d8e17a51c911ff1f02635be15",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "treefmt-nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"treefmt-nix_2": {
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nvim-nix",
|
"nvim-nix",
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./home/profiles
|
./home/profiles
|
||||||
./nix/machines
|
./nix/machines
|
||||||
./home-modules
|
|
||||||
];
|
];
|
||||||
|
|
||||||
flake = {
|
flake = {
|
||||||
|
@ -62,11 +61,6 @@
|
||||||
microvm.url = "github:astro/microvm.nix";
|
microvm.url = "github:astro/microvm.nix";
|
||||||
vpn-confinement.url = "github:Maroka-chan/VPN-Confinement";
|
vpn-confinement.url = "github:Maroka-chan/VPN-Confinement";
|
||||||
sobercookie.url = "github:xunuwu/sobercookie";
|
sobercookie.url = "github:xunuwu/sobercookie";
|
||||||
haumea = {
|
|
||||||
url = "github:nix-community/haumea";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
authentik-nix.url = "github:nix-community/authentik-nix";
|
|
||||||
## deduplication
|
## deduplication
|
||||||
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
|
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
flake.homeManagerModules = {
|
|
||||||
xun = import ./xun;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./develop
|
|
||||||
./gaming
|
|
||||||
./programs
|
|
||||||
./desktop
|
|
||||||
./school
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.xun.desktop;
|
|
||||||
in {
|
|
||||||
options.xun.desktop = {
|
|
||||||
xdg.enable = lib.mkEnableOption "xdg env vars";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.xdg.enable {
|
|
||||||
xdg = let
|
|
||||||
home = config.home.homeDirectory;
|
|
||||||
in {
|
|
||||||
enable = true;
|
|
||||||
cacheHome = config.home.homeDirectory + "/.local/cache";
|
|
||||||
|
|
||||||
userDirs = {
|
|
||||||
enable = true;
|
|
||||||
desktop = home + "/desktop";
|
|
||||||
documents = home + "/docs";
|
|
||||||
download = home + "/down";
|
|
||||||
music = home + "/music";
|
|
||||||
pictures = home + "/pics";
|
|
||||||
publicShare = home + "/share";
|
|
||||||
videos = home + "/vids";
|
|
||||||
extraConfig = {
|
|
||||||
XDG_SCREENSHOTS_DIR = config.xdg.userDirs.pictures + "/screenshots";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = [pkgs.xdg-utils];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,91 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.xun.develop;
|
|
||||||
in {
|
|
||||||
options.xun.develop = let
|
|
||||||
enableOption = default:
|
|
||||||
lib.mkOption {
|
|
||||||
inherit default;
|
|
||||||
type = lib.types.bool;
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
enable = enableOption false;
|
|
||||||
git.enable = enableOption true;
|
|
||||||
nix.enable = enableOption true;
|
|
||||||
tools.enable = enableOption true;
|
|
||||||
docs.enable = enableOption false;
|
|
||||||
devenv.enable = enableOption true;
|
|
||||||
lang = {
|
|
||||||
c.enable = enableOption false;
|
|
||||||
shell.enable = enableOption false;
|
|
||||||
zig.enable = enableOption false;
|
|
||||||
lua.enable = enableOption false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable (
|
|
||||||
lib.mkMerge [
|
|
||||||
(lib.mkIf cfg.nix.enable {
|
|
||||||
home.packages = with pkgs; [nil nixd alejandra nixfmt-rfc-style];
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.tools.enable {
|
|
||||||
home.packages = with pkgs; [tokei];
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.devenv.enable {
|
|
||||||
home.packages = with pkgs; [devenv];
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.git.enable {
|
|
||||||
home.packages = with pkgs; [lazygit];
|
|
||||||
programs.gh.enable = true;
|
|
||||||
programs.gh-dash.enable = true;
|
|
||||||
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
delta.enable = true;
|
|
||||||
lfs.enable = true;
|
|
||||||
|
|
||||||
ignores = ["*~" ".direnv"];
|
|
||||||
|
|
||||||
signing = {
|
|
||||||
key = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
|
||||||
signByDefault = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = {
|
|
||||||
gpg.format = "ssh";
|
|
||||||
push.autoSetupRemote = true;
|
|
||||||
pull.rebase = true;
|
|
||||||
rebase.autostash = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
userEmail = "xunuwu@gmail.com";
|
|
||||||
userName = "xunuwu";
|
|
||||||
};
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.lang.c.enable {
|
|
||||||
home.packages = with pkgs; [clang-tools buckle gdb lldb];
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.lang.lua.enable {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
stylua
|
|
||||||
lua-language-server
|
|
||||||
];
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.lang.shell.enable {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
shellcheck
|
|
||||||
];
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.lang.zig.enable {
|
|
||||||
home.packages = with pkgs; [zig zls];
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.docs.enable {
|
|
||||||
programs.man.generateCaches = true;
|
|
||||||
})
|
|
||||||
]
|
|
||||||
);
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
inputs,
|
|
||||||
self,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.xun.gaming;
|
|
||||||
in {
|
|
||||||
options.xun.gaming = {
|
|
||||||
krunker.enable = lib.mkEnableOption "krunker";
|
|
||||||
roblox.sobercookie.enable = lib.mkEnableOption "sobercookie";
|
|
||||||
};
|
|
||||||
config = lib.mkMerge [
|
|
||||||
(lib.mkIf cfg.krunker.enable {
|
|
||||||
home.packages = [
|
|
||||||
self.packages.${pkgs.system}.krunker
|
|
||||||
];
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.roblox.sobercookie.enable {
|
|
||||||
home.packages = [
|
|
||||||
inputs.sobercookie.packages.${pkgs.system}.default
|
|
||||||
];
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./terminal
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,155 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.xun.programs.terminal;
|
|
||||||
in {
|
|
||||||
imports = [
|
|
||||||
inputs.nix-index-database.hmModules.nix-index
|
|
||||||
];
|
|
||||||
|
|
||||||
options.xun.programs.terminal = {
|
|
||||||
direnv.enable = lib.mkEnableOption "direnv";
|
|
||||||
comma.enable = lib.mkEnableOption "comma";
|
|
||||||
tmux.enable = lib.mkEnableOption "tmux";
|
|
||||||
irssi.enable = lib.mkEnableOption "irssi";
|
|
||||||
shell.zsh = {
|
|
||||||
enable = lib.mkEnableOption "zsh";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkMerge [
|
|
||||||
(lib.mkIf cfg.shell.zsh.enable {
|
|
||||||
programs.fzf.enable = true;
|
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
autocd = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
autosuggestion.enable = true;
|
|
||||||
dotDir = ".config/zsh";
|
|
||||||
defaultKeymap = "emacs";
|
|
||||||
|
|
||||||
history = {
|
|
||||||
expireDuplicatesFirst = true;
|
|
||||||
extended = true;
|
|
||||||
save = 100 * 1000;
|
|
||||||
path = "${config.xdg.dataHome}/zsh_history";
|
|
||||||
};
|
|
||||||
initExtra = ''
|
|
||||||
unsetopt beep
|
|
||||||
|
|
||||||
## KEYBINDS ##
|
|
||||||
bindkey "^[[1;5D" backward-word
|
|
||||||
bindkey "^[[1;5C" forward-word
|
|
||||||
|
|
||||||
# improve ^w behaviour
|
|
||||||
WORDCHARS=
|
|
||||||
|
|
||||||
# pretty completion menu
|
|
||||||
zstyle ':completion:*' menu select
|
|
||||||
|
|
||||||
# shift-tab in completion menu
|
|
||||||
bindkey '^[[Z' reverse-menu-complete
|
|
||||||
|
|
||||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' # Case insensitive completion
|
|
||||||
|
|
||||||
|
|
||||||
## MISC ##
|
|
||||||
setopt extendedglob
|
|
||||||
|
|
||||||
|
|
||||||
# Show completion categories
|
|
||||||
zstyle ':completion:*:*:*:*:descriptions' format '%F{magenta}<-%d->%f'
|
|
||||||
|
|
||||||
|
|
||||||
## PROMPT ##
|
|
||||||
function preexec() {
|
|
||||||
timer=$(date +%s%3N)
|
|
||||||
}
|
|
||||||
|
|
||||||
function precmd_timer() {
|
|
||||||
if [ $timer ]; then
|
|
||||||
now=$(date +%s%3N)
|
|
||||||
elapsed=$(($now-$timer))
|
|
||||||
|
|
||||||
if [[ elapsed -gt 100 ]]; then
|
|
||||||
export RPROMPT="%F{cyan}''${elapsed}ms %f"
|
|
||||||
else
|
|
||||||
unset RPROMPT
|
|
||||||
fi
|
|
||||||
unset timer
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
autoload -Uz vcs_info
|
|
||||||
precmd_vcs_info() { vcs_info }
|
|
||||||
precmd_functions+=( precmd_vcs_info precmd_timer )
|
|
||||||
zstyle ':vcs_info:git:*' formats ' %b '
|
|
||||||
setopt prompt_subst
|
|
||||||
|
|
||||||
PROMPT='%F{blue}[%F{magenta}%n%F{blue}@%F{magenta}%M%F{blue}] %~%f %F{green}$vcs_info_msg_0_%f%(?..%F{red}| %? )%#%f '
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.direnv.enable {
|
|
||||||
programs.direnv = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
nix-direnv.enable = true;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.comma.enable {
|
|
||||||
programs.nix-index-database.comma.enable = true;
|
|
||||||
programs.nix-index = {
|
|
||||||
enableBashIntegration = false;
|
|
||||||
enableFishIntegration = false;
|
|
||||||
enableZshIntegration = false;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.tmux.enable {
|
|
||||||
programs.tmux = {
|
|
||||||
enable = true;
|
|
||||||
baseIndex = 1;
|
|
||||||
clock24 = true;
|
|
||||||
mouse = true;
|
|
||||||
escapeTime = 0;
|
|
||||||
extraConfig = ''
|
|
||||||
bind '"' split-window -c "#{pane_current_path}"
|
|
||||||
bind % split-window -h -c "#{pane_current_path}"
|
|
||||||
bind c new-window -c "#{pane_current_path}";
|
|
||||||
|
|
||||||
set -g status-style bg=default
|
|
||||||
setw -g window-status-current-style fg=#be95ff
|
|
||||||
set -g status-justify absolute-centre
|
|
||||||
set -g status-interval 5
|
|
||||||
set -g status-right "#[fg=#25be6a]#(free -h | awk 'NR==2{print $3\"/\"$2}')"
|
|
||||||
set -ag status-right "#[fg=default] %a %d %b %H:%M"
|
|
||||||
|
|
||||||
set-option -g default-terminal "xterm-256color"
|
|
||||||
set-option -ga terminal-overrides ",xterm-256color:Tc"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
})
|
|
||||||
(lib.mkIf cfg.irssi.enable {
|
|
||||||
# TODO: make more customizable maybe
|
|
||||||
programs.irssi = {
|
|
||||||
enable = true;
|
|
||||||
networks = {
|
|
||||||
liberachat = {
|
|
||||||
nick = "wheat";
|
|
||||||
server = {
|
|
||||||
address = "irc.libera.chat";
|
|
||||||
port = 6697;
|
|
||||||
autoConnect = true;
|
|
||||||
};
|
|
||||||
channels = {
|
|
||||||
nixos.autoJoin = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,19 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.xun.school;
|
|
||||||
in {
|
|
||||||
options.xun.school = {
|
|
||||||
geogebra.enable = lib.mkEnableOption "geogebra";
|
|
||||||
};
|
|
||||||
config = lib.mkMerge [
|
|
||||||
(lib.mkIf cfg.geogebra.enable {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
geogebra6
|
|
||||||
];
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
|
3
home/develop/devenv.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [devenv];
|
||||||
|
}
|
3
home/develop/langs/c.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [clang-tools buckle gdb lldb];
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
nil
|
stylua
|
||||||
alejandra
|
lua-language-server
|
||||||
];
|
];
|
||||||
}
|
}
|
3
home/develop/langs/nix.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [nil nixd alejandra nixfmt-rfc-style];
|
||||||
|
}
|
3
home/develop/langs/zig.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [zig zls];
|
||||||
|
}
|
|
@ -10,7 +10,6 @@
|
||||||
"xun@kidney" = [
|
"xun@kidney" = [
|
||||||
../.
|
../.
|
||||||
./kidney
|
./kidney
|
||||||
# inputs.nix-index-database.hmModules.nix-index
|
|
||||||
{home.stateVersion = "24.05";}
|
{home.stateVersion = "24.05";}
|
||||||
];
|
];
|
||||||
"xun@nixdesk" = [
|
"xun@nixdesk" = [
|
||||||
|
@ -19,11 +18,6 @@
|
||||||
inputs.sops-nix.homeManagerModules.sops
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
{home.stateVersion = "23.11";}
|
{home.stateVersion = "23.11";}
|
||||||
];
|
];
|
||||||
"xun@hopper" = [
|
|
||||||
../.
|
|
||||||
./hopper
|
|
||||||
{home.stateVersion = "23.11";}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (inputs.home-manager.lib) homeManagerConfiguration;
|
inherit (inputs.home-manager.lib) homeManagerConfiguration;
|
||||||
|
@ -37,10 +31,6 @@ in {
|
||||||
modules = homeImports."xun@nixdesk";
|
modules = homeImports."xun@nixdesk";
|
||||||
inherit pkgs extraSpecialArgs;
|
inherit pkgs extraSpecialArgs;
|
||||||
};
|
};
|
||||||
"xun@hopper" = homeManagerConfiguration {
|
|
||||||
modules = homeImports."xun@hopper";
|
|
||||||
inherit pkgs extraSpecialArgs;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
{...}: {
|
|
||||||
imports = [
|
|
||||||
../../editors/nvim.nix
|
|
||||||
../../terminal/shell/zsh.nix
|
|
||||||
../../terminal/emulator/wezterm.nix
|
|
||||||
|
|
||||||
../../programs/browsers/firefox
|
|
||||||
|
|
||||||
../../programs/desktop
|
|
||||||
../../programs/desktop/awesome
|
|
||||||
|
|
||||||
../../programs/media
|
|
||||||
../../programs/media/jellyfin.nix
|
|
||||||
|
|
||||||
../../services/media/playerctl.nix
|
|
||||||
|
|
||||||
../../services/system/polkit-agent.nix
|
|
||||||
../../services/system/udiskie.nix
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -4,29 +4,22 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
self.homeManagerModules.xun
|
|
||||||
../../editors/emacs.nix
|
../../editors/emacs.nix
|
||||||
../../editors/nvim.nix
|
../../editors/nvim.nix
|
||||||
# ../../terminal/shell/zsh.nix
|
|
||||||
# ../../terminal/programs
|
|
||||||
# ../../terminal/programs/lazygit.nix
|
|
||||||
# ../../develop
|
|
||||||
# ../../develop/small-misc.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
xun = {
|
../../terminal/shell/zsh.nix
|
||||||
develop = {
|
../../terminal/programs/xdg.nix
|
||||||
enable = true;
|
../../terminal/programs/direnv.nix
|
||||||
};
|
../../terminal/programs/comma.nix
|
||||||
desktop = {
|
../../terminal/programs/tmux.nix
|
||||||
xdg.enable = true;
|
../../terminal/programs/irssi.nix
|
||||||
};
|
|
||||||
programs.terminal = {
|
../../develop/langs/nix.nix
|
||||||
shell.zsh.enable = true;
|
../../develop/tools.nix
|
||||||
direnv.enable = true;
|
../../develop/devenv.nix
|
||||||
comma.enable = true;
|
|
||||||
tmux.enable = true;
|
../../terminal/programs/git.nix
|
||||||
irssi.enable = true;
|
../../terminal/programs/github.nix
|
||||||
};
|
../../terminal/programs/lazygit.nix
|
||||||
};
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,44 +4,53 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
self.homeManagerModules.xun
|
|
||||||
# ./kanshi.nix
|
|
||||||
./defaults.nix
|
./defaults.nix
|
||||||
|
|
||||||
../../secrets
|
../../secrets
|
||||||
|
|
||||||
# ../../terminal
|
../../terminal/shell/zsh.nix
|
||||||
# ../../terminal/programs/zellij.nix
|
|
||||||
|
../../terminal/programs/xdg.nix
|
||||||
|
../../terminal/programs/direnv.nix
|
||||||
|
../../terminal/programs/tmux.nix
|
||||||
|
../../terminal/programs/comma.nix
|
||||||
../../terminal/programs/zoxide.nix
|
../../terminal/programs/zoxide.nix
|
||||||
../../terminal/programs/tdf.nix
|
../../terminal/programs/tdf.nix
|
||||||
# ../../terminal/programs/irssi.nix
|
../../terminal/programs/irssi.nix
|
||||||
|
../../terminal/programs/git.nix
|
||||||
|
../../terminal/programs/github.nix
|
||||||
../../terminal/programs/lazygit.nix
|
../../terminal/programs/lazygit.nix
|
||||||
# ../../terminal/programs/beets.nix
|
|
||||||
../../editors/emacs.nix
|
../../editors/emacs.nix
|
||||||
../../editors/nvim.nix
|
../../editors/nvim.nix
|
||||||
../../editors/vscode.nix
|
../../editors/vscode.nix
|
||||||
../../editors/jetbrains
|
../../editors/jetbrains
|
||||||
../../editors/jetbrains/android-studio.nix
|
../../editors/jetbrains/android-studio.nix
|
||||||
|
|
||||||
../../programs/browsers/firefox
|
../../programs/browsers/firefox
|
||||||
../../programs/browsers/tor.nix
|
../../programs/browsers/tor.nix
|
||||||
../../programs/browsers/chromium.nix
|
../../programs/browsers/chromium.nix
|
||||||
|
|
||||||
../../terminal/emulator/wezterm.nix
|
../../terminal/emulator/wezterm.nix
|
||||||
../../terminal/emulator/foot.nix
|
../../terminal/emulator/foot.nix
|
||||||
|
|
||||||
# desktop
|
# desktop
|
||||||
../../programs/desktop
|
../../programs/desktop
|
||||||
# ../../programs/desktop/theme.nix
|
|
||||||
../../programs/desktop/awesome
|
|
||||||
#../../programs/desktop/hyprland
|
|
||||||
../../programs/desktop/sway
|
../../programs/desktop/sway
|
||||||
|
|
||||||
# development
|
# development
|
||||||
../../develop/common.nix
|
../../develop/common.nix
|
||||||
|
../../develop/tools.nix
|
||||||
|
../../develop/docs.nix
|
||||||
|
../../develop/devenv.nix
|
||||||
|
|
||||||
../../develop/langs/haskell.nix
|
../../develop/langs/haskell.nix
|
||||||
../../develop/langs/rust.nix
|
../../develop/langs/rust.nix
|
||||||
../../develop/langs/uiua.nix
|
../../develop/langs/uiua.nix
|
||||||
#../../develop
|
../../develop/langs/nix.nix
|
||||||
#../../develop/small-misc.nix
|
../../develop/langs/zig.nix
|
||||||
|
../../develop/langs/lua.nix
|
||||||
|
../../develop/langs/c.nix
|
||||||
|
|
||||||
# programs
|
# programs
|
||||||
../../programs/misc/keepassxc.nix
|
../../programs/misc/keepassxc.nix
|
||||||
|
@ -64,14 +73,14 @@
|
||||||
../../programs/music/cmus.nix
|
../../programs/music/cmus.nix
|
||||||
../../programs/media
|
../../programs/media
|
||||||
../../programs/media/jellyfin.nix
|
../../programs/media/jellyfin.nix
|
||||||
|
|
||||||
# gaming
|
# gaming
|
||||||
../../programs/games
|
../../programs/games
|
||||||
# ../../programs/games/roblox.nix
|
../../programs/games/roblox.nix
|
||||||
# ../../programs/games/krunker.nix
|
../../programs/games/krunker.nix
|
||||||
#../../programs/games/ludusavi.nix
|
#../../programs/games/ludusavi.nix
|
||||||
|
|
||||||
# ./dark.nix
|
# ./dark.nix
|
||||||
# ./xundark.nix
|
|
||||||
|
|
||||||
# media services
|
# media services
|
||||||
../../services/media/playerctl.nix
|
../../services/media/playerctl.nix
|
||||||
|
@ -79,34 +88,6 @@
|
||||||
../../services/system/polkit-agent.nix
|
../../services/system/polkit-agent.nix
|
||||||
../../services/system/udiskie.nix # although i dont need this for usb memory, it is quite convenient for flashing qmk
|
../../services/system/udiskie.nix # although i dont need this for usb memory, it is quite convenient for flashing qmk
|
||||||
];
|
];
|
||||||
xun = let
|
|
||||||
enabled = {enable = true;};
|
|
||||||
in {
|
|
||||||
desktop = {
|
|
||||||
xdg = enabled;
|
|
||||||
};
|
|
||||||
programs.terminal = {
|
|
||||||
shell.zsh = enabled;
|
|
||||||
direnv = enabled;
|
|
||||||
comma = enabled;
|
|
||||||
tmux = enabled;
|
|
||||||
irssi = enabled;
|
|
||||||
};
|
|
||||||
develop = {
|
|
||||||
enable = true;
|
|
||||||
docs = enabled;
|
|
||||||
lang = {
|
|
||||||
c = enabled;
|
|
||||||
zig = enabled;
|
|
||||||
lua = enabled;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
gaming = {
|
|
||||||
krunker = enabled;
|
|
||||||
roblox.sobercookie = enabled;
|
|
||||||
};
|
|
||||||
# school.geogebra = enabled;
|
|
||||||
};
|
|
||||||
|
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
services.kanshi = {
|
services.kanshi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# systemdTarget = "hyprland-session.target"; # default is sway
|
|
||||||
settings = [
|
settings = [
|
||||||
{
|
{
|
||||||
profile.name = "default";
|
profile.name = "default";
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
{pkgs, ...}: {
|
|
||||||
gtk = {
|
|
||||||
enable = true;
|
|
||||||
iconTheme = {
|
|
||||||
name = "WhiteSur-dark";
|
|
||||||
package = pkgs.whitesur-icon-theme;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
qt.enable = true;
|
|
||||||
}
|
|
|
@ -1,30 +0,0 @@
|
||||||
-- {{{ Error handling
|
|
||||||
-- Check if awesome encountered an error during startup and fell back to
|
|
||||||
-- another config (This code will only ever execute for the fallback config)
|
|
||||||
if awesome.startup_errors then
|
|
||||||
naughty.notify({
|
|
||||||
preset = naughty.config.presets.critical,
|
|
||||||
title = "Oops, there were errors during startup!",
|
|
||||||
text = awesome.startup_errors,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Handle runtime errors after startup
|
|
||||||
do
|
|
||||||
local in_error = false
|
|
||||||
awesome.connect_signal("debug::error", function(err)
|
|
||||||
-- Make sure we don't go into an endless error loop
|
|
||||||
if in_error then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
in_error = true
|
|
||||||
|
|
||||||
naughty.notify({
|
|
||||||
preset = naughty.config.presets.critical,
|
|
||||||
title = "Oops, an error happened!",
|
|
||||||
text = tostring(err),
|
|
||||||
})
|
|
||||||
in_error = false
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
-- }}}
|
|
|
@ -1,23 +0,0 @@
|
||||||
local awful = require('awful')
|
|
||||||
|
|
||||||
-- Table of layouts to cover with awful.layout.inc, order matters.
|
|
||||||
awful.layout.layouts = {
|
|
||||||
awful.layout.suit.tile,
|
|
||||||
awful.layout.suit.fair,
|
|
||||||
awful.layout.suit.floating,
|
|
||||||
awful.layout.suit.tile.left,
|
|
||||||
awful.layout.suit.tile.bottom,
|
|
||||||
awful.layout.suit.tile.top,
|
|
||||||
-- awful.layout.suit.fair,
|
|
||||||
awful.layout.suit.fair.horizontal,
|
|
||||||
awful.layout.suit.spiral,
|
|
||||||
awful.layout.suit.spiral.dwindle,
|
|
||||||
awful.layout.suit.max,
|
|
||||||
awful.layout.suit.max.fullscreen,
|
|
||||||
awful.layout.suit.magnifier,
|
|
||||||
awful.layout.suit.corner.nw,
|
|
||||||
-- awful.layout.suit.corner.ne,
|
|
||||||
-- awful.layout.suit.corner.sw,
|
|
||||||
-- awful.layout.suit.corner.se,
|
|
||||||
}
|
|
||||||
-- }}}
|
|
|
@ -1,614 +0,0 @@
|
||||||
-- If LuaRocks is installed, make sure that packages installed through it are
|
|
||||||
-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
|
|
||||||
pcall(require, "luarocks.loader")
|
|
||||||
-- Standard awesome library
|
|
||||||
local gears = require("gears")
|
|
||||||
local awful = require("awful")
|
|
||||||
require("awful.autofocus")
|
|
||||||
-- Widget and layout library
|
|
||||||
local wibox = require("wibox")
|
|
||||||
-- Theme handling library
|
|
||||||
local beautiful = require("beautiful")
|
|
||||||
-- Notification library
|
|
||||||
local naughty = require("naughty")
|
|
||||||
local menubar = require("menubar")
|
|
||||||
local hotkeys_popup = require("awful.hotkeys_popup")
|
|
||||||
-- Enable hotkeys help widget for VIM and other apps
|
|
||||||
-- when client with a matching name is opened:
|
|
||||||
|
|
||||||
require("awful.hotkeys_popup.keys")
|
|
||||||
|
|
||||||
require('main.error-handling')
|
|
||||||
|
|
||||||
HOME = os.getenv"HOME"
|
|
||||||
|
|
||||||
-- {{{ Variable definitions
|
|
||||||
-- Themes define colours, icons, font and wallpapers.
|
|
||||||
beautiful.init(string.format("%s/.config/awesome/themes/%s/theme.lua",
|
|
||||||
HOME,
|
|
||||||
"custom")
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
-- This is used later as the default terminal and editor to run.
|
|
||||||
terminal = "wezterm"
|
|
||||||
editor = os.getenv("EDITOR") or "nvim"
|
|
||||||
editor_cmd = terminal .. " -e " .. editor
|
|
||||||
|
|
||||||
-- Default modkey.
|
|
||||||
-- Usually, Mod4 is the key with a logo between Control and Alt.
|
|
||||||
-- If you do not like this or do not have such a key,
|
|
||||||
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
|
|
||||||
-- However, you can use another modifier like Mod1, but it may interact with others.
|
|
||||||
modkey = "Mod4"
|
|
||||||
|
|
||||||
-- load layouts
|
|
||||||
require('main.layouts')
|
|
||||||
|
|
||||||
|
|
||||||
-- {{{ Menu
|
|
||||||
-- Create a launcher widget and a main menu
|
|
||||||
myawesomemenu = {
|
|
||||||
{
|
|
||||||
"hotkeys",
|
|
||||||
function()
|
|
||||||
hotkeys_popup.show_help(nil, awful.screen.focused())
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{ "manual", terminal .. " -e man awesome" },
|
|
||||||
{ "edit config", editor_cmd .. " " .. awesome.conffile },
|
|
||||||
{ "restart", awesome.restart },
|
|
||||||
{
|
|
||||||
"quit",
|
|
||||||
function()
|
|
||||||
awesome.quit()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
mymainmenu = awful.menu({
|
|
||||||
items = {
|
|
||||||
{ "awesome", myawesomemenu, beautiful.awesome_icon },
|
|
||||||
{ "open terminal", terminal },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Menubar configuration
|
|
||||||
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
-- {{{ Wibar
|
|
||||||
-- Create a textclock widget
|
|
||||||
mytextclock = wibox.widget.textclock(' %a %m-%d %H:%M ', 1)
|
|
||||||
|
|
||||||
-- Create a wibox for each screen and add it
|
|
||||||
local taglist_buttons = gears.table.join(
|
|
||||||
awful.button({}, 1, function(t)
|
|
||||||
t:view_only()
|
|
||||||
end),
|
|
||||||
awful.button({ modkey }, 1, function(t)
|
|
||||||
if client.focus then
|
|
||||||
client.focus:move_to_tag(t)
|
|
||||||
end
|
|
||||||
end),
|
|
||||||
awful.button({}, 3, awful.tag.viewtoggle),
|
|
||||||
awful.button({ modkey }, 3, function(t)
|
|
||||||
if client.focus then
|
|
||||||
client.focus:toggle_tag(t)
|
|
||||||
end
|
|
||||||
end),
|
|
||||||
awful.button({}, 4, function(t)
|
|
||||||
awful.tag.viewnext(t.screen)
|
|
||||||
end),
|
|
||||||
awful.button({}, 5, function(t)
|
|
||||||
awful.tag.viewprev(t.screen)
|
|
||||||
end)
|
|
||||||
)
|
|
||||||
|
|
||||||
local tasklist_buttons = gears.table.join(
|
|
||||||
awful.button({}, 1, function(c)
|
|
||||||
if c == client.focus then
|
|
||||||
c.minimized = true
|
|
||||||
else
|
|
||||||
c:emit_signal("request::activate", "tasklist", { raise = true })
|
|
||||||
end
|
|
||||||
end),
|
|
||||||
awful.button({}, 3, function()
|
|
||||||
awful.menu.client_list({ theme = { width = 250 } })
|
|
||||||
end),
|
|
||||||
awful.button({}, 4, function()
|
|
||||||
awful.client.focus.byidx(1)
|
|
||||||
end),
|
|
||||||
awful.button({}, 5, function()
|
|
||||||
awful.client.focus.byidx(-1)
|
|
||||||
end)
|
|
||||||
)
|
|
||||||
|
|
||||||
local function set_wallpaper(s)
|
|
||||||
-- Wallpaper
|
|
||||||
if beautiful.wallpaper then
|
|
||||||
local wallpaper = beautiful.wallpaper
|
|
||||||
-- If wallpaper is a function, call it with the screen
|
|
||||||
if type(wallpaper) == "function" then
|
|
||||||
wallpaper = wallpaper(s)
|
|
||||||
end
|
|
||||||
gears.wallpaper.maximized(wallpaper, s, true)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
|
|
||||||
screen.connect_signal("property::geometry", set_wallpaper)
|
|
||||||
|
|
||||||
awful.screen.connect_for_each_screen(function(s)
|
|
||||||
-- Wallpaper
|
|
||||||
set_wallpaper(s)
|
|
||||||
|
|
||||||
-- Each screen has its own tag table.
|
|
||||||
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1])
|
|
||||||
|
|
||||||
-- Create a promptbox for each screen
|
|
||||||
s.mypromptbox = awful.widget.prompt()
|
|
||||||
-- Create an imagebox widget which will contain an icon indicating which layout we're using.
|
|
||||||
-- We need one layoutbox per screen.
|
|
||||||
s.mylayoutbox = awful.widget.layoutbox(s)
|
|
||||||
s.mylayoutbox:buttons(gears.table.join(
|
|
||||||
awful.button({}, 1, function()
|
|
||||||
awful.layout.inc(1)
|
|
||||||
end),
|
|
||||||
awful.button({}, 3, function()
|
|
||||||
awful.layout.inc(-1)
|
|
||||||
end),
|
|
||||||
awful.button({}, 4, function()
|
|
||||||
awful.layout.inc(1)
|
|
||||||
end),
|
|
||||||
awful.button({}, 5, function()
|
|
||||||
awful.layout.inc(-1)
|
|
||||||
end)
|
|
||||||
))
|
|
||||||
-- Create a taglist widget
|
|
||||||
s.mytaglist = awful.widget.taglist({
|
|
||||||
screen = s,
|
|
||||||
filter = awful.widget.taglist.filter.all,
|
|
||||||
buttons = taglist_buttons,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Create a tasklist widget
|
|
||||||
s.mytasklist = awful.widget.tasklist{
|
|
||||||
screen = s,
|
|
||||||
filter = awful.widget.tasklist.filter.currenttags,
|
|
||||||
buttons = tasklist_buttons,
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Create the wibox
|
|
||||||
s.mywibox = awful.wibar({ position = "top", screen = s })
|
|
||||||
|
|
||||||
-- Add widgets to the wibox
|
|
||||||
s.mywibox:setup({
|
|
||||||
layout = wibox.layout.align.horizontal,
|
|
||||||
{ -- Left widgets
|
|
||||||
layout = wibox.layout.fixed.horizontal,
|
|
||||||
s.mytaglist,
|
|
||||||
s.mypromptbox,
|
|
||||||
},
|
|
||||||
s.mytasklist, -- Middle widget
|
|
||||||
{ -- Right widgets
|
|
||||||
layout = wibox.layout.fixed.horizontal,
|
|
||||||
wibox.widget.systray(),
|
|
||||||
mytextclock,
|
|
||||||
s.mylayoutbox,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end)
|
|
||||||
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
-- {{{ Mouse bindings
|
|
||||||
root.buttons(gears.table.join(
|
|
||||||
awful.button({}, 3, function()
|
|
||||||
mymainmenu:toggle()
|
|
||||||
end)
|
|
||||||
--awful.button({}, 4, awful.tag.viewnext),
|
|
||||||
--awful.button({}, 5, awful.tag.viewprev)
|
|
||||||
))
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
local function save_screenshot(args)
|
|
||||||
local ss = awful.screenshot(args)
|
|
||||||
|
|
||||||
local function notify(self)
|
|
||||||
naughty.notification {
|
|
||||||
title = self.file_name,
|
|
||||||
message = "Screenshot saved",
|
|
||||||
icon = self.surface,
|
|
||||||
icon_size = 128,
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
if args.auto_save_delay > 0 then
|
|
||||||
ss:connect_signal("file::saved", notify)
|
|
||||||
else
|
|
||||||
notify(ss)
|
|
||||||
end
|
|
||||||
|
|
||||||
return ss
|
|
||||||
end
|
|
||||||
|
|
||||||
-- {{{ Key bindings
|
|
||||||
|
|
||||||
globalkeys = gears.table.join(
|
|
||||||
-- awful.key({}, "Print", function ()
|
|
||||||
-- save_screenshot{
|
|
||||||
-- auto_save_delay = 0,
|
|
||||||
-- screen = awful.screen.focused(),
|
|
||||||
-- directory = string.format("%s/Pictures/Screenshots", HOME),
|
|
||||||
-- }
|
|
||||||
-- end),
|
|
||||||
-- awful.key({'Control'}, "Print", function ()
|
|
||||||
-- save_screenshot {
|
|
||||||
-- auto_save_delay = 0,
|
|
||||||
-- directory = string.format("%s/Pictures/Screenshots", HOME),
|
|
||||||
-- }
|
|
||||||
-- end),
|
|
||||||
-- awful.key({'Shift'}, 'Print', function ()
|
|
||||||
-- save_screenshot {
|
|
||||||
-- auto_save_delay = 0,
|
|
||||||
-- interactive = true,
|
|
||||||
-- directory = string.format("%s/Pictures/Screenshots", HOME),
|
|
||||||
-- }
|
|
||||||
-- end),
|
|
||||||
-- disable ctrl + ;
|
|
||||||
-- because it for some reason crashes firefox and electron
|
|
||||||
awful.key({ 'Control' }, ";", function() end),
|
|
||||||
-- multimedia keys
|
|
||||||
awful.key({}, "XF86AudioMute", function() awful.spawn('wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle') end),
|
|
||||||
awful.key({ modkey }, "XF86AudioMute", function() awful.spawn('wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle') end),
|
|
||||||
awful.key({}, "XF86AudioRaiseVolume", function() awful.spawn('wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 3%+') end),
|
|
||||||
awful.key({}, "XF86AudioLowerVolume", function() awful.spawn('wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 3%-') end),
|
|
||||||
--mpris (playerctl)
|
|
||||||
awful.key({}, "XF86AudioPlay", function() awful.spawn('playerctl play-pause') end),
|
|
||||||
awful.key({}, "XF86AudioStop", function() awful.spawn('playerctl stop') end),
|
|
||||||
awful.key({}, "XF86AudioNext", function() awful.spawn('playerctl next') end),
|
|
||||||
awful.key({}, "XF86AudioPrev", function() awful.spawn('playerctl previous') end),
|
|
||||||
--mpd (mpc)
|
|
||||||
awful.key({ modkey }, "XF86AudioPlay", function() awful.spawn('mpc toggle') end),
|
|
||||||
awful.key({ modkey }, "XF86AudioStop", function() awful.spawn('mpc stop') end),
|
|
||||||
awful.key({ modkey }, "XF86AudioNext", function() awful.spawn('mpc next') end),
|
|
||||||
awful.key({ modkey }, "XF86AudioPrev", function() awful.spawn('mpc prev') end),
|
|
||||||
|
|
||||||
awful.key({ modkey }, "s", hotkeys_popup.show_help, { description = "show help", group = "awesome" }),
|
|
||||||
awful.key({ modkey }, "Left", awful.tag.viewprev, { description = "view previous", group = "tag" }),
|
|
||||||
awful.key({ modkey }, "Right", awful.tag.viewnext, { description = "view next", group = "tag" }),
|
|
||||||
awful.key({ modkey }, "Escape", awful.tag.history.restore, { description = "go back", group = "tag" }),
|
|
||||||
|
|
||||||
awful.key({ modkey }, "j", function()
|
|
||||||
awful.client.focus.byidx(1)
|
|
||||||
end, { description = "focus next by index", group = "client" }),
|
|
||||||
awful.key({ modkey }, "k", function()
|
|
||||||
awful.client.focus.byidx(-1)
|
|
||||||
end, { description = "focus previous by index", group = "client" }),
|
|
||||||
awful.key({ modkey }, "w", function()
|
|
||||||
mymainmenu:show()
|
|
||||||
end, { description = "show main menu", group = "awesome" }),
|
|
||||||
|
|
||||||
-- Layout manipulation
|
|
||||||
awful.key({ modkey, "Shift" }, "j", function()
|
|
||||||
awful.client.swap.byidx(1)
|
|
||||||
end, { description = "swap with next client by index", group = "client" }),
|
|
||||||
awful.key({ modkey, "Shift" }, "k", function()
|
|
||||||
awful.client.swap.byidx(-1)
|
|
||||||
end, { description = "swap with previous client by index", group = "client" }),
|
|
||||||
awful.key({ modkey, "Control" }, "j", function()
|
|
||||||
awful.screen.focus_relative(1)
|
|
||||||
end, { description = "focus the next screen", group = "screen" }),
|
|
||||||
awful.key({ modkey, "Control" }, "k", function()
|
|
||||||
awful.screen.focus_relative(-1)
|
|
||||||
end, { description = "focus the previous screen", group = "screen" }),
|
|
||||||
awful.key({ modkey }, "u", awful.client.urgent.jumpto, { description = "jump to urgent client", group = "client" }),
|
|
||||||
awful.key({ modkey }, "Tab", function()
|
|
||||||
awful.client.focus.history.previous()
|
|
||||||
if client.focus then
|
|
||||||
client.focus:raise()
|
|
||||||
end
|
|
||||||
end, { description = "go back", group = "client" }),
|
|
||||||
|
|
||||||
-- Standard program
|
|
||||||
awful.key({ modkey }, "Return", function()
|
|
||||||
awful.spawn(terminal)
|
|
||||||
end, { description = "open a terminal", group = "launcher" }),
|
|
||||||
awful.key({ modkey, "Control" }, "r", awesome.restart, { description = "reload awesome", group = "awesome" }),
|
|
||||||
awful.key({ modkey, "Shift" }, "q", awesome.quit, { description = "quit awesome", group = "awesome" }),
|
|
||||||
|
|
||||||
awful.key({ modkey }, "l", function()
|
|
||||||
awful.tag.incmwfact(0.05)
|
|
||||||
end, { description = "increase master width factor", group = "layout" }),
|
|
||||||
awful.key({ modkey }, "h", function()
|
|
||||||
awful.tag.incmwfact(-0.05)
|
|
||||||
end, { description = "decrease master width factor", group = "layout" }),
|
|
||||||
awful.key({ modkey, "Shift" }, "h", function()
|
|
||||||
awful.tag.incnmaster(1, nil, true)
|
|
||||||
end, { description = "increase the number of master clients", group = "layout" }),
|
|
||||||
awful.key({ modkey, "Shift" }, "l", function()
|
|
||||||
awful.tag.incnmaster(-1, nil, true)
|
|
||||||
end, { description = "decrease the number of master clients", group = "layout" }),
|
|
||||||
awful.key({ modkey, "Control" }, "h", function()
|
|
||||||
awful.tag.incncol(1, nil, true)
|
|
||||||
end, { description = "increase the number of columns", group = "layout" }),
|
|
||||||
awful.key({ modkey, "Control" }, "l", function()
|
|
||||||
awful.tag.incncol(-1, nil, true)
|
|
||||||
end, { description = "decrease the number of columns", group = "layout" }),
|
|
||||||
awful.key({ modkey }, "space", function()
|
|
||||||
awful.layout.inc(1)
|
|
||||||
end, { description = "select next", group = "layout" }),
|
|
||||||
awful.key({ modkey, "Shift" }, "space", function()
|
|
||||||
awful.layout.inc(-1)
|
|
||||||
end, { description = "select previous", group = "layout" }),
|
|
||||||
|
|
||||||
awful.key({ modkey, "Control" }, "n", function()
|
|
||||||
local c = awful.client.restore()
|
|
||||||
-- Focus restored client
|
|
||||||
if c then
|
|
||||||
c:emit_signal("request::activate", "key.unminimize", { raise = true })
|
|
||||||
end
|
|
||||||
end, { description = "restore minimized", group = "client" }),
|
|
||||||
|
|
||||||
-- Prompt
|
|
||||||
awful.key({ modkey }, "r", function()
|
|
||||||
awful.screen.focused().mypromptbox:run()
|
|
||||||
end, { description = "run prompt", group = "launcher" }),
|
|
||||||
|
|
||||||
awful.key({ modkey }, "x", function()
|
|
||||||
awful.prompt.run({
|
|
||||||
prompt = "Run Lua code: ",
|
|
||||||
textbox = awful.screen.focused().mypromptbox.widget,
|
|
||||||
exe_callback = awful.util.eval,
|
|
||||||
history_path = awful.util.get_cache_dir() .. "/history_eval",
|
|
||||||
})
|
|
||||||
end, { description = "lua execute prompt", group = "awesome" }),
|
|
||||||
-- Menubar
|
|
||||||
awful.key({ modkey }, "p", function()
|
|
||||||
menubar.show()
|
|
||||||
end, { description = "show the menubar", group = "launcher" })
|
|
||||||
)
|
|
||||||
|
|
||||||
clientkeys = gears.table.join(
|
|
||||||
awful.key({ modkey }, "f", function(c)
|
|
||||||
c.fullscreen = not c.fullscreen
|
|
||||||
c:raise()
|
|
||||||
end, { description = "toggle fullscreen", group = "client" }),
|
|
||||||
awful.key({ modkey }, "q", function(c)
|
|
||||||
c:kill()
|
|
||||||
end, { description = "close", group = "client" }),
|
|
||||||
awful.key(
|
|
||||||
{ modkey, "Control" },
|
|
||||||
"space",
|
|
||||||
awful.client.floating.toggle,
|
|
||||||
{ description = "toggle floating", group = "client" }
|
|
||||||
),
|
|
||||||
awful.key({ modkey, "Control" }, "Return", function(c)
|
|
||||||
c:swap(awful.client.getmaster())
|
|
||||||
end, { description = "move to master", group = "client" }),
|
|
||||||
awful.key({ modkey }, "o", function(c)
|
|
||||||
c:move_to_screen()
|
|
||||||
end, { description = "move to screen", group = "client" }),
|
|
||||||
awful.key({ modkey }, "t", function(c)
|
|
||||||
c.ontop = not c.ontop
|
|
||||||
end, { description = "toggle keep on top", group = "client" }),
|
|
||||||
awful.key({ modkey }, "n", function(c)
|
|
||||||
-- The client currently has the input focus, so it cannot be
|
|
||||||
-- minimized, since minimized clients can't have the focus.
|
|
||||||
c.minimized = true
|
|
||||||
end, { description = "minimize", group = "client" }),
|
|
||||||
awful.key({ modkey }, "m", function(c)
|
|
||||||
c.maximized = not c.maximized
|
|
||||||
c:raise()
|
|
||||||
end, { description = "(un)maximize", group = "client" }),
|
|
||||||
awful.key({ modkey, "Control" }, "m", function(c)
|
|
||||||
c.maximized_vertical = not c.maximized_vertical
|
|
||||||
c:raise()
|
|
||||||
end, { description = "(un)maximize vertically", group = "client" }),
|
|
||||||
awful.key({ modkey, "Shift" }, "m", function(c)
|
|
||||||
c.maximized_horizontal = not c.maximized_horizontal
|
|
||||||
c:raise()
|
|
||||||
end, { description = "(un)maximize horizontally", group = "client" })
|
|
||||||
)
|
|
||||||
|
|
||||||
-- Bind all key numbers to tags.
|
|
||||||
-- Be careful: we use keycodes to make it work on any keyboard layout.
|
|
||||||
-- This should map on the top row of your keyboard, usually 1 to 9.
|
|
||||||
for i = 1, 9 do
|
|
||||||
globalkeys = gears.table.join(
|
|
||||||
globalkeys,
|
|
||||||
-- View tag only.
|
|
||||||
awful.key({ modkey }, "#" .. i + 9, function()
|
|
||||||
local screen = awful.screen.focused()
|
|
||||||
local tag = screen.tags[i]
|
|
||||||
if tag then
|
|
||||||
tag:view_only()
|
|
||||||
end
|
|
||||||
end, { description = "view tag #" .. i, group = "tag" }),
|
|
||||||
-- Toggle tag display.
|
|
||||||
awful.key({ modkey, "Control" }, "#" .. i + 9, function()
|
|
||||||
local screen = awful.screen.focused()
|
|
||||||
local tag = screen.tags[i]
|
|
||||||
if tag then
|
|
||||||
awful.tag.viewtoggle(tag)
|
|
||||||
end
|
|
||||||
end, { description = "toggle tag #" .. i, group = "tag" }),
|
|
||||||
-- Move client to tag.
|
|
||||||
awful.key({ modkey, "Shift" }, "#" .. i + 9, function()
|
|
||||||
if client.focus then
|
|
||||||
local tag = client.focus.screen.tags[i]
|
|
||||||
if tag then
|
|
||||||
client.focus:move_to_tag(tag)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end, { description = "move focused client to tag #" .. i, group = "tag" }),
|
|
||||||
-- Toggle tag on focused client.
|
|
||||||
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, function()
|
|
||||||
if client.focus then
|
|
||||||
local tag = client.focus.screen.tags[i]
|
|
||||||
if tag then
|
|
||||||
client.focus:toggle_tag(tag)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end, { description = "toggle focused client on tag #" .. i, group = "tag" })
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
clientbuttons = gears.table.join(
|
|
||||||
awful.button({}, 1, function(c)
|
|
||||||
c:emit_signal("request::activate", "mouse_click", { raise = true })
|
|
||||||
end),
|
|
||||||
awful.button({ modkey }, 1, function(c)
|
|
||||||
c:emit_signal("request::activate", "mouse_click", { raise = true })
|
|
||||||
awful.mouse.client.move(c)
|
|
||||||
end),
|
|
||||||
awful.button({ modkey }, 3, function(c)
|
|
||||||
c:emit_signal("request::activate", "mouse_click", { raise = true })
|
|
||||||
awful.mouse.client.resize(c)
|
|
||||||
end)
|
|
||||||
)
|
|
||||||
|
|
||||||
-- Set keys
|
|
||||||
root.keys(globalkeys)
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
-- {{{ Rules
|
|
||||||
-- Rules to apply to new clients (through the "manage" signal).
|
|
||||||
awful.rules.rules = {
|
|
||||||
-- All clients will match this rule.
|
|
||||||
{
|
|
||||||
rule = {},
|
|
||||||
properties = {
|
|
||||||
border_width = beautiful.border_width,
|
|
||||||
border_color = beautiful.border_normal,
|
|
||||||
focus = awful.client.focus.filter,
|
|
||||||
raise = true,
|
|
||||||
keys = clientkeys,
|
|
||||||
buttons = clientbuttons,
|
|
||||||
screen = awful.screen.preferred,
|
|
||||||
placement = awful.placement.no_overlap + awful.placement.no_offscreen,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Floating clients.
|
|
||||||
{
|
|
||||||
rule_any = {
|
|
||||||
instance = {
|
|
||||||
"DTA", -- Firefox addon DownThemAll.
|
|
||||||
"copyq", -- Includes session name in class.
|
|
||||||
"pinentry",
|
|
||||||
},
|
|
||||||
class = {
|
|
||||||
"Arandr",
|
|
||||||
"Blueman-manager",
|
|
||||||
"Gpick",
|
|
||||||
"Kruler",
|
|
||||||
"MessageWin", -- kalarm.
|
|
||||||
"Sxiv",
|
|
||||||
"Tor Browser", -- Needs a fixed window size to avoid fingerprinting by screen size.
|
|
||||||
"Wpa_gui",
|
|
||||||
"veromix",
|
|
||||||
"xtightvncviewer",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Note that the name property shown in xprop might be set slightly after creation of the client
|
|
||||||
-- and the name shown there might not match defined rules here.
|
|
||||||
name = {
|
|
||||||
"Event Tester", -- xev.
|
|
||||||
},
|
|
||||||
role = {
|
|
||||||
"AlarmWindow", -- Thunderbird's calendar.
|
|
||||||
"ConfigManager", -- Thunderbird's about:config.
|
|
||||||
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
|
|
||||||
},
|
|
||||||
},
|
|
||||||
properties = { floating = true },
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Add titlebars to normal clients and dialogs
|
|
||||||
--{ rule_any = { type = { "normal", "dialog" } }, properties = { titlebars_enabled = true } },
|
|
||||||
|
|
||||||
-- Set Firefox to always map on the tag named "2" on screen 1.
|
|
||||||
-- { rule = { class = "Firefox" },
|
|
||||||
-- properties = { screen = 1, tag = "2" } },
|
|
||||||
{
|
|
||||||
rule = {
|
|
||||||
name = "Steam Input On-screen Keyboard",
|
|
||||||
},
|
|
||||||
properties = {
|
|
||||||
focus = false
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
-- {{{ Signals
|
|
||||||
-- Signal function to execute when a new client appears.
|
|
||||||
client.connect_signal("manage", function(c)
|
|
||||||
-- Set the windows at the slave,
|
|
||||||
-- i.e. put it at the end of others instead of setting it master.
|
|
||||||
-- if not awesome.startup then awful.client.setslave(c) end
|
|
||||||
|
|
||||||
if awesome.startup and not c.size_hints.user_position and not c.size_hints.program_position then
|
|
||||||
-- Prevent clients from being unreachable after screen count changes.
|
|
||||||
awful.placement.no_offscreen(c)
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
||||||
-- Add a titlebar if titlebars_enabled is set to true in the rules.
|
|
||||||
client.connect_signal("request::titlebars", function(c)
|
|
||||||
-- buttons for the titlebar
|
|
||||||
local buttons = gears.table.join(
|
|
||||||
awful.button({}, 1, function()
|
|
||||||
c:emit_signal("request::activate", "titlebar", { raise = true })
|
|
||||||
awful.mouse.client.move(c)
|
|
||||||
end),
|
|
||||||
awful.button({}, 3, function()
|
|
||||||
c:emit_signal("request::activate", "titlebar", { raise = true })
|
|
||||||
awful.mouse.client.resize(c)
|
|
||||||
end)
|
|
||||||
)
|
|
||||||
|
|
||||||
awful.titlebar(c):setup({
|
|
||||||
{ -- Left
|
|
||||||
awful.titlebar.widget.iconwidget(c),
|
|
||||||
buttons = buttons,
|
|
||||||
layout = wibox.layout.fixed.horizontal,
|
|
||||||
},
|
|
||||||
{ -- Middle
|
|
||||||
{ -- Title
|
|
||||||
align = "center",
|
|
||||||
widget = awful.titlebar.widget.titlewidget(c),
|
|
||||||
},
|
|
||||||
buttons = buttons,
|
|
||||||
layout = wibox.layout.flex.horizontal,
|
|
||||||
},
|
|
||||||
{ -- Right
|
|
||||||
awful.titlebar.widget.floatingbutton(c),
|
|
||||||
awful.titlebar.widget.maximizedbutton(c),
|
|
||||||
awful.titlebar.widget.stickybutton(c),
|
|
||||||
awful.titlebar.widget.ontopbutton(c),
|
|
||||||
awful.titlebar.widget.closebutton(c),
|
|
||||||
layout = wibox.layout.fixed.horizontal(),
|
|
||||||
},
|
|
||||||
layout = wibox.layout.align.horizontal,
|
|
||||||
})
|
|
||||||
end)
|
|
||||||
|
|
||||||
-- Enable sloppy focus, so that focus follows mouse.
|
|
||||||
client.connect_signal("mouse::enter", function(c)
|
|
||||||
c:emit_signal("request::activate", "mouse_enter", { raise = false })
|
|
||||||
end)
|
|
||||||
|
|
||||||
client.connect_signal("focus", function(c)
|
|
||||||
c.border_color = beautiful.border_focus
|
|
||||||
end)
|
|
||||||
client.connect_signal("unfocus", function(c)
|
|
||||||
c.border_color = beautiful.border_normal
|
|
||||||
end)
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
|
|
||||||
require('scripts.autorun')
|
|
||||||
awful.spawn.once('bash -c '.. gears.filesystem.get_configuration_dir() .. '/scripts/autorun.sh')
|
|
|
@ -1,5 +0,0 @@
|
||||||
local naughty = require('naughty')
|
|
||||||
local gears = require('gears')
|
|
||||||
local awful = require('awful')
|
|
||||||
|
|
||||||
--naughty.notification({ text="hi" })
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
xrandr --output DisplayPort-2 --mode 1920x1080 --rate 165 &
|
|
||||||
/nix/store/$(ls -la /nix/store | grep polkit-gnome | grep '^d' | awk '{print $9}')/libexec/polkit-gnome-authentication-agent-1 &
|
|
|
@ -1,64 +0,0 @@
|
||||||
local theme_assets = require'beautiful.theme_assets'
|
|
||||||
local xresources = require'beautiful.xresources'
|
|
||||||
local dpi = xresources.apply_dpi
|
|
||||||
|
|
||||||
local gfs = require'gears.filesystem'
|
|
||||||
|
|
||||||
local theme = {}
|
|
||||||
|
|
||||||
theme.font = 'sans 8'
|
|
||||||
|
|
||||||
theme.bg_normal = "#161616"
|
|
||||||
theme.bg_focus = "#262626"
|
|
||||||
theme.bg_urgent = "#be95ff"
|
|
||||||
theme.bg_minimize = "#393939"
|
|
||||||
|
|
||||||
|
|
||||||
theme.fg_normal = "#08bdba"
|
|
||||||
theme.fg_focus = "#ffffff"
|
|
||||||
theme.fg_urgent = "#ffffff"
|
|
||||||
theme.fg_minimize = "#ffffff"
|
|
||||||
|
|
||||||
theme.useless_gap = dpi(1)
|
|
||||||
theme.border_width = dpi(1)
|
|
||||||
theme.border_normal = "#262626"
|
|
||||||
theme.border_focus = "#be95ff"
|
|
||||||
theme.border_marked = "#ee5396"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local taglist_square_size = dpi(4)
|
|
||||||
theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
|
|
||||||
taglist_square_size, theme.fg_normal
|
|
||||||
)
|
|
||||||
theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
|
|
||||||
taglist_square_size, theme.fg_normal
|
|
||||||
)
|
|
||||||
|
|
||||||
theme.wallpaper = os.getenv("HOME") .. "/wallpaper.png"
|
|
||||||
|
|
||||||
theme.icon_theme = nil
|
|
||||||
|
|
||||||
|
|
||||||
local themes_path = gfs.get_themes_dir()
|
|
||||||
|
|
||||||
theme.layout_fairh = themes_path.."default/layouts/fairhw.png"
|
|
||||||
theme.layout_fairv = themes_path.."default/layouts/fairvw.png"
|
|
||||||
theme.layout_floating = themes_path.."default/layouts/floatingw.png"
|
|
||||||
theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png"
|
|
||||||
theme.layout_max = themes_path.."default/layouts/maxw.png"
|
|
||||||
theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png"
|
|
||||||
theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png"
|
|
||||||
theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png"
|
|
||||||
theme.layout_tile = themes_path.."default/layouts/tilew.png"
|
|
||||||
theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png"
|
|
||||||
theme.layout_spiral = themes_path.."default/layouts/spiralw.png"
|
|
||||||
theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png"
|
|
||||||
theme.layout_cornernw = themes_path.."default/layouts/cornernww.png"
|
|
||||||
theme.layout_cornerne = themes_path.."default/layouts/cornernew.png"
|
|
||||||
theme.layout_cornersw = themes_path.."default/layouts/cornersww.png"
|
|
||||||
theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
|
|
||||||
|
|
||||||
theme.notification_icon_size = 32
|
|
||||||
|
|
||||||
return theme
|
|
|
@ -1,3 +0,0 @@
|
||||||
Background images:
|
|
||||||
Mikael Eriksson <mikael_eriksson@miffe.org>
|
|
||||||
Licensed under CC-BY-SA-3.0
|
|
Before Width: | Height: | Size: 311 KiB |
Before Width: | Height: | Size: 262 KiB |
Before Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 320 B |
Before Width: | Height: | Size: 320 B |
Before Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 866 B |
Before Width: | Height: | Size: 865 B |
Before Width: | Height: | Size: 345 B |
Before Width: | Height: | Size: 345 B |
Before Width: | Height: | Size: 574 B |
Before Width: | Height: | Size: 581 B |
Before Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 218 KiB |
Before Width: | Height: | Size: 440 B |
Before Width: | Height: | Size: 187 B |
Before Width: | Height: | Size: 193 B |
|
@ -1,132 +0,0 @@
|
||||||
---------------------------
|
|
||||||
-- Default awesome theme --
|
|
||||||
---------------------------
|
|
||||||
|
|
||||||
local theme_assets = require("beautiful.theme_assets")
|
|
||||||
local xresources = require("beautiful.xresources")
|
|
||||||
local dpi = xresources.apply_dpi
|
|
||||||
|
|
||||||
local gfs = require("gears.filesystem")
|
|
||||||
local themes_path = gfs.get_themes_dir()
|
|
||||||
|
|
||||||
local theme = {}
|
|
||||||
|
|
||||||
|
|
||||||
theme.font = "sans 8"
|
|
||||||
|
|
||||||
theme.bg_normal = "#222222"
|
|
||||||
theme.bg_focus = "#535d6c"
|
|
||||||
theme.bg_urgent = "#ff0000"
|
|
||||||
theme.bg_minimize = "#444444"
|
|
||||||
theme.bg_systray = theme.bg_normal
|
|
||||||
|
|
||||||
theme.fg_normal = "#aaaaaa"
|
|
||||||
theme.fg_focus = "#ffffff"
|
|
||||||
theme.fg_urgent = "#ffffff"
|
|
||||||
theme.fg_minimize = "#ffffff"
|
|
||||||
|
|
||||||
theme.useless_gap = dpi(0)
|
|
||||||
theme.border_width = dpi(1)
|
|
||||||
theme.border_normal = "#000000"
|
|
||||||
theme.border_focus = "#535d6c"
|
|
||||||
theme.border_marked = "#91231c"
|
|
||||||
|
|
||||||
-- There are other variable sets
|
|
||||||
-- overriding the default one when
|
|
||||||
-- defined, the sets are:
|
|
||||||
-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
|
|
||||||
-- tasklist_[bg|fg]_[focus|urgent]
|
|
||||||
-- titlebar_[bg|fg]_[normal|focus]
|
|
||||||
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
|
|
||||||
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
|
|
||||||
-- prompt_[fg|bg|fg_cursor|bg_cursor|font]
|
|
||||||
-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
|
|
||||||
-- Example:
|
|
||||||
--theme.taglist_bg_focus = "#ff0000"
|
|
||||||
|
|
||||||
-- Generate taglist squares:
|
|
||||||
local taglist_square_size = dpi(4)
|
|
||||||
theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
|
|
||||||
taglist_square_size, theme.fg_normal
|
|
||||||
)
|
|
||||||
theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
|
|
||||||
taglist_square_size, theme.fg_normal
|
|
||||||
)
|
|
||||||
|
|
||||||
-- Variables set for theming notifications:
|
|
||||||
-- notification_font
|
|
||||||
-- notification_[bg|fg]
|
|
||||||
-- notification_[width|height|margin]
|
|
||||||
-- notification_[border_color|border_width|shape|opacity]
|
|
||||||
|
|
||||||
-- Variables set for theming the menu:
|
|
||||||
-- menu_[bg|fg]_[normal|focus]
|
|
||||||
-- menu_[border_color|border_width]
|
|
||||||
theme.menu_submenu_icon = themes_path.."default/submenu.png"
|
|
||||||
theme.menu_height = dpi(15)
|
|
||||||
theme.menu_width = dpi(100)
|
|
||||||
|
|
||||||
-- You can add as many variables as
|
|
||||||
-- you wish and access them by using
|
|
||||||
-- beautiful.variable in your rc.lua
|
|
||||||
--theme.bg_widget = "#cc0000"
|
|
||||||
|
|
||||||
-- Define the image to load
|
|
||||||
theme.titlebar_close_button_normal = themes_path.."default/titlebar/close_normal.png"
|
|
||||||
theme.titlebar_close_button_focus = themes_path.."default/titlebar/close_focus.png"
|
|
||||||
|
|
||||||
theme.titlebar_minimize_button_normal = themes_path.."default/titlebar/minimize_normal.png"
|
|
||||||
theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.png"
|
|
||||||
|
|
||||||
theme.titlebar_ontop_button_normal_inactive = themes_path.."default/titlebar/ontop_normal_inactive.png"
|
|
||||||
theme.titlebar_ontop_button_focus_inactive = themes_path.."default/titlebar/ontop_focus_inactive.png"
|
|
||||||
theme.titlebar_ontop_button_normal_active = themes_path.."default/titlebar/ontop_normal_active.png"
|
|
||||||
theme.titlebar_ontop_button_focus_active = themes_path.."default/titlebar/ontop_focus_active.png"
|
|
||||||
|
|
||||||
theme.titlebar_sticky_button_normal_inactive = themes_path.."default/titlebar/sticky_normal_inactive.png"
|
|
||||||
theme.titlebar_sticky_button_focus_inactive = themes_path.."default/titlebar/sticky_focus_inactive.png"
|
|
||||||
theme.titlebar_sticky_button_normal_active = themes_path.."default/titlebar/sticky_normal_active.png"
|
|
||||||
theme.titlebar_sticky_button_focus_active = themes_path.."default/titlebar/sticky_focus_active.png"
|
|
||||||
|
|
||||||
theme.titlebar_floating_button_normal_inactive = themes_path.."default/titlebar/floating_normal_inactive.png"
|
|
||||||
theme.titlebar_floating_button_focus_inactive = themes_path.."default/titlebar/floating_focus_inactive.png"
|
|
||||||
theme.titlebar_floating_button_normal_active = themes_path.."default/titlebar/floating_normal_active.png"
|
|
||||||
theme.titlebar_floating_button_focus_active = themes_path.."default/titlebar/floating_focus_active.png"
|
|
||||||
|
|
||||||
theme.titlebar_maximized_button_normal_inactive = themes_path.."default/titlebar/maximized_normal_inactive.png"
|
|
||||||
theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar/maximized_focus_inactive.png"
|
|
||||||
theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png"
|
|
||||||
theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png"
|
|
||||||
|
|
||||||
theme.wallpaper = os.getenv("HOME") .. "/Desktop/wallpaper-aster2.png" --themes_path.."default/background.png"
|
|
||||||
|
|
||||||
-- You can use your own layout icons like this:
|
|
||||||
theme.layout_fairh = themes_path.."default/layouts/fairhw.png"
|
|
||||||
theme.layout_fairv = themes_path.."default/layouts/fairvw.png"
|
|
||||||
theme.layout_floating = themes_path.."default/layouts/floatingw.png"
|
|
||||||
theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png"
|
|
||||||
theme.layout_max = themes_path.."default/layouts/maxw.png"
|
|
||||||
theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png"
|
|
||||||
theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png"
|
|
||||||
theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png"
|
|
||||||
theme.layout_tile = themes_path.."default/layouts/tilew.png"
|
|
||||||
theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png"
|
|
||||||
theme.layout_spiral = themes_path.."default/layouts/spiralw.png"
|
|
||||||
theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png"
|
|
||||||
theme.layout_cornernw = themes_path.."default/layouts/cornernww.png"
|
|
||||||
theme.layout_cornerne = themes_path.."default/layouts/cornernew.png"
|
|
||||||
theme.layout_cornersw = themes_path.."default/layouts/cornersww.png"
|
|
||||||
theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
|
|
||||||
|
|
||||||
-- Generate Awesome icon:
|
|
||||||
theme.awesome_icon = theme_assets.awesome_icon(
|
|
||||||
theme.menu_height, theme.bg_focus, theme.fg_focus
|
|
||||||
)
|
|
||||||
|
|
||||||
-- Define the icon theme for application icons. If not set then the icons
|
|
||||||
-- from /usr/share/icons and /usr/share/icons/hicolor will be used.
|
|
||||||
theme.icon_theme = nil
|
|
||||||
|
|
||||||
return theme
|
|
||||||
|
|
||||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
|
Before Width: | Height: | Size: 966 B |
Before Width: | Height: | Size: 966 B |
Before Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 237 B |
Before Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 237 B |
Before Width: | Height: | Size: 480 B |
Before Width: | Height: | Size: 452 B |
Before Width: | Height: | Size: 480 B |
Before Width: | Height: | Size: 452 B |
Before Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 225 B |
Before Width: | Height: | Size: 467 B |
Before Width: | Height: | Size: 604 B |
Before Width: | Height: | Size: 467 B |
Before Width: | Height: | Size: 604 B |
Before Width: | Height: | Size: 654 B |
Before Width: | Height: | Size: 758 B |
Before Width: | Height: | Size: 654 B |
Before Width: | Height: | Size: 758 B |
|
@ -1,12 +0,0 @@
|
||||||
{pkgs, ...}: {
|
|
||||||
xsession.windowManager.awesome = {
|
|
||||||
enable = true;
|
|
||||||
noArgb = true;
|
|
||||||
luaModules = with pkgs; [
|
|
||||||
luaPackages.fennel
|
|
||||||
];
|
|
||||||
};
|
|
||||||
xdg.configFile."awesome" = {
|
|
||||||
source = ./config;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,344 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
osConfig,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
../common/fuzzel.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
wl-clipboard
|
|
||||||
];
|
|
||||||
|
|
||||||
services.cliphist = {
|
|
||||||
enable = true;
|
|
||||||
systemdTarget = "hyprland-session.target";
|
|
||||||
extraOptions = ["-max-items" "150"];
|
|
||||||
};
|
|
||||||
#systemd.user.services.cliphist = {
|
|
||||||
# Unit = {
|
|
||||||
# Description = "Wayland clipboard manager";
|
|
||||||
# PartOf = ["hyprland-session.target"];
|
|
||||||
# After = ["hyprland-session.target"];
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Service = {
|
|
||||||
# ExecStartPre = "${pkgs.wl-clipboard}/wl-paste --type text --watch ${lib.getExe pkgs.cliphist} store #Stores only text data";
|
|
||||||
# ExecStart = "${pkgs.wl-clipboard}/wl-paste --type image --watch ${lib.getExe pkgs.cliphist} store #Stores only image data";
|
|
||||||
# ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
|
|
||||||
# Restart = "on-failure";
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Install = {
|
|
||||||
# WantedBy = ["hyprland-session.target"];
|
|
||||||
# };
|
|
||||||
#};
|
|
||||||
|
|
||||||
programs.waybar = {
|
|
||||||
enable = true;
|
|
||||||
style = ''
|
|
||||||
* {
|
|
||||||
font-family: monospace;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar {
|
|
||||||
background-color: #181818;
|
|
||||||
color: #ffffff;
|
|
||||||
transition-property: background-color;
|
|
||||||
transition-duration: .5s;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar.hidden {
|
|
||||||
opacity: 0.2;
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
/* Avoid rounded borders under each button name */
|
|
||||||
border: none;
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
|
||||||
button:hover {
|
|
||||||
background: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button {
|
|
||||||
padding: 0 5px;
|
|
||||||
background-color: transparent;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button:hover {
|
|
||||||
background: rgba(255, 255, 255, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.focused {
|
|
||||||
background-color: #64727D;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.urgent {
|
|
||||||
background-color: #eb4d4b;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.visible {
|
|
||||||
color: #fd4dff;
|
|
||||||
background-color: #202020;
|
|
||||||
}
|
|
||||||
|
|
||||||
#clock,
|
|
||||||
#network,
|
|
||||||
#pulseaudio,
|
|
||||||
#wireplumber,
|
|
||||||
#tray {
|
|
||||||
padding: 0 10px;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
#window,
|
|
||||||
#workspaces {
|
|
||||||
margin: 0 4px;
|
|
||||||
}
|
|
||||||
/* If workspaces is the leftmost module, omit left margin */
|
|
||||||
.modules-left > widget:first-child > #workspaces {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* If workspaces is the rightmost module, omit right margin */
|
|
||||||
.modules-right > widget:last-child > #workspaces {
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
@keyframes blink {
|
|
||||||
to {
|
|
||||||
background-color: #ffffff;
|
|
||||||
color: #000000;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
label:focus {
|
|
||||||
background-color: #000000;
|
|
||||||
}
|
|
||||||
#tray {
|
|
||||||
background-color: #242424;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray > .passive {
|
|
||||||
-gtk-icon-effect: dim;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray > .needs-attention {
|
|
||||||
-gtk-icon-effect: highlight;
|
|
||||||
background-color: #eb4d4b;
|
|
||||||
}
|
|
||||||
|
|
||||||
'';
|
|
||||||
settings = [
|
|
||||||
{
|
|
||||||
"height" = 24;
|
|
||||||
"spacing" = 4;
|
|
||||||
"modules-left" = [
|
|
||||||
"hyprland/workspaces"
|
|
||||||
#"hyprland/mode"
|
|
||||||
#"hyprland/scratchpad"
|
|
||||||
];
|
|
||||||
"modules-center" = [
|
|
||||||
"hyprland/window"
|
|
||||||
];
|
|
||||||
"modules-right" = [
|
|
||||||
"pulseaudio"
|
|
||||||
"clock"
|
|
||||||
"tray"
|
|
||||||
];
|
|
||||||
|
|
||||||
"hyprland/workspaces" = {
|
|
||||||
"format" = "[{icon} {windows}]";
|
|
||||||
"format-window-separator" = ",";
|
|
||||||
"window-rewrite-default" = "@";
|
|
||||||
"window-rewrite" = {
|
|
||||||
"title<.*discord.*>" = "d";
|
|
||||||
"class<Sonixd>" = "m";
|
|
||||||
"class<firefox>" = "f";
|
|
||||||
"foot" = "t";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
"tray" = {
|
|
||||||
"spacing" = 10;
|
|
||||||
};
|
|
||||||
"clock" = {
|
|
||||||
"tooltim-format" = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
|
|
||||||
"format-alt" = "{:%a %Y-%m-%d}";
|
|
||||||
};
|
|
||||||
"pulseaudio" = {
|
|
||||||
"format" = "{volume}%";
|
|
||||||
"format-source" = "{volume}%";
|
|
||||||
"format-source-muted" = "";
|
|
||||||
"format-icons" = {
|
|
||||||
"headphone" = "";
|
|
||||||
"hands-free" = "";
|
|
||||||
"headset" = "";
|
|
||||||
"phone" = "";
|
|
||||||
"portable" = "";
|
|
||||||
"car" = "";
|
|
||||||
"default" = ["" "" ""];
|
|
||||||
};
|
|
||||||
"on-click" = "${lib.getExe pkgs.pavucontrol}";
|
|
||||||
"on-click-middle" = "${lib.getExe pkgs.helvum}";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
systemd = {
|
|
||||||
enable = true;
|
|
||||||
target = "hyprland-session.target";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
exec-once = [
|
|
||||||
#"${lib.getExe pkgs.xwaylandvideobridge}"
|
|
||||||
"${lib.getExe pkgs.swaybg} -i ${config.xdg.userDirs.pictures}/wallpaper"
|
|
||||||
];
|
|
||||||
env = [
|
|
||||||
"NIXOS_OZONE_WL,1" # for any ozone-based browser & electron apps to run on wayland
|
|
||||||
"MOZ_ENABLE_WAYLAND,1" # for firefox to run on wayland
|
|
||||||
"MOZ_WEBRENDER,1"
|
|
||||||
# misc
|
|
||||||
"_JAVA_AWT_WM_NONREPARENTING,1"
|
|
||||||
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
|
||||||
"QT_QPA_PLATFORM,wayland"
|
|
||||||
"SDL_VIDEODRIVER,wayland"
|
|
||||||
"GDK_BACKEND,wayland"
|
|
||||||
];
|
|
||||||
|
|
||||||
input = {
|
|
||||||
kb_layout = osConfig.services.xserver.xkb.layout;
|
|
||||||
};
|
|
||||||
|
|
||||||
general = {
|
|
||||||
gaps_out = 3;
|
|
||||||
gaps_in = 3;
|
|
||||||
"col.active_border" = "rgb(feafff) rgb(fd56ff)";
|
|
||||||
};
|
|
||||||
|
|
||||||
dwindle = {
|
|
||||||
preserve_split = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
workspace = [
|
|
||||||
"1,monitor:DP-3"
|
|
||||||
"2,monitor:DP-3"
|
|
||||||
"3,monitor:DP-3"
|
|
||||||
"4,monitor:DP-3"
|
|
||||||
"5,monitor:DP-3"
|
|
||||||
|
|
||||||
"11,defaultName:q,monitor:HDMI-A-1"
|
|
||||||
"12,defaultName:w,monitor:HDMI-A-1"
|
|
||||||
"13,defaultName:e,monitor:HDMI-A-1"
|
|
||||||
"14,defaultName:r,monitor:HDMI-A-1"
|
|
||||||
"15,defaultName:t,monitor:HDMI-A-1"
|
|
||||||
];
|
|
||||||
|
|
||||||
animation = [
|
|
||||||
"workspaces,1,3,default"
|
|
||||||
"windows,1,3,default"
|
|
||||||
"border,1,3,default"
|
|
||||||
];
|
|
||||||
|
|
||||||
"$mainMod" = "SUPER";
|
|
||||||
bind = [
|
|
||||||
"$mainMod, RETURN, exec, ${lib.getExe pkgs.foot}"
|
|
||||||
"$mainMod, G, killactive"
|
|
||||||
"$mainMod, SPACE, togglefloating"
|
|
||||||
"$mainMod, F, fullscreen"
|
|
||||||
"$mainMod, M, fullscreen, 1"
|
|
||||||
"$mainMod SHIFT, F, fakefullscreen"
|
|
||||||
"$mainMod, P, exec, ${lib.getExe pkgs.fuzzel}"
|
|
||||||
"$mainMod SHIFT, V, exec, ${lib.getExe pkgs.cliphist} list | ${lib.getExe pkgs.wofi} --dmenu | ${lib.getExe pkgs.cliphist} decode | ${pkgs.wl-clipboard}/bin/wl-copy"
|
|
||||||
"$mainMod SHIFT, S, exec, ${lib.getExe pkgs.grimblast} --freeze copy area"
|
|
||||||
"$mainMod SHIFT, BACKSPACE, exec, systemctl suspend"
|
|
||||||
|
|
||||||
"$mainMod, N, togglesplit"
|
|
||||||
"$mainMod SHIFT, N, swapsplit"
|
|
||||||
# preselect with mirrored vim keys, shifted down
|
|
||||||
"$mainMod, B, layoutmsg, preselect r"
|
|
||||||
"$mainMod, V, layoutmsg, preselect d"
|
|
||||||
"$mainMod, C, layoutmsg, preselect u"
|
|
||||||
"$mainMod, X, layoutmsg, preselect l"
|
|
||||||
|
|
||||||
"$mainMod SHIFT, O, exec, ${lib.getExe pkgs.wlogout}"
|
|
||||||
# focus with vim keys
|
|
||||||
"$mainMod, h, movefocus, l"
|
|
||||||
"$mainMod, j, movefocus, d"
|
|
||||||
"$mainMod, k, movefocus, u"
|
|
||||||
"$mainMod, l, movefocus, r"
|
|
||||||
# window move with vim keys
|
|
||||||
"$mainMod SHIFT, h, movewindow, l"
|
|
||||||
"$mainMod SHIFT, j, movewindow, d"
|
|
||||||
"$mainMod SHIFT, k, movewindow, u"
|
|
||||||
"$mainMod SHIFT, l, movewindow, r"
|
|
||||||
|
|
||||||
# switch workspace with mod+[0-9]
|
|
||||||
"$mainMod, 1, workspace, 1"
|
|
||||||
"$mainMod, 2, workspace, 2"
|
|
||||||
"$mainMod, 3, workspace, 3"
|
|
||||||
"$mainMod, 4, workspace, 4"
|
|
||||||
"$mainMod, 5, workspace, 5"
|
|
||||||
|
|
||||||
"$mainMod, q, workspace, 11"
|
|
||||||
"$mainMod, w, workspace, 12"
|
|
||||||
"$mainMod, e, workspace, 13"
|
|
||||||
"$mainMod, r, workspace, 14"
|
|
||||||
"$mainMod, t, workspace, 15"
|
|
||||||
|
|
||||||
# move window to workspace with mod+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, q, movetoworkspace, 11"
|
|
||||||
"$mainMod SHIFT, w, movetoworkspace, 12"
|
|
||||||
"$mainMod SHIFT, e, movetoworkspace, 13"
|
|
||||||
"$mainMod SHIFT, r, movetoworkspace, 14"
|
|
||||||
"$mainMod SHIFT, t, movetoworkspace, 15"
|
|
||||||
|
|
||||||
# scroll through workspaces with mod+scroll
|
|
||||||
"$mainMod, mouse_down, workspace, e+1"
|
|
||||||
"$mainMod, mouse_up, workspace, e-1"
|
|
||||||
", XF86AudioPlay, exec, ${lib.getExe pkgs.playerctl} play-pause"
|
|
||||||
", XF86AudioStop, exec, ${lib.getExe pkgs.playerctl} stop"
|
|
||||||
", XF86AudioNext, exec, ${lib.getExe pkgs.playerctl} next"
|
|
||||||
", XF86AudioPrev, exec, ${lib.getExe pkgs.playerctl} previous"
|
|
||||||
];
|
|
||||||
bindm = [
|
|
||||||
# mod+lbm/rmb for move/resize
|
|
||||||
"$mainMod, mouse:272, movewindow"
|
|
||||||
"$mainMod, mouse:273, resizewindow"
|
|
||||||
];
|
|
||||||
binde = [
|
|
||||||
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 3%+"
|
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 3%-"
|
|
||||||
];
|
|
||||||
windowrulev2 = [
|
|
||||||
# Allow hiding xwaylandvideobridge window correctly
|
|
||||||
"opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$"
|
|
||||||
"noanim,class:^(xwaylandvideobridge)$"
|
|
||||||
"noinitialfocus,class:^(xwaylandvideobridge)$"
|
|
||||||
"maxsize 1 1,class:^(xwaylandvideobridge)$"
|
|
||||||
"noblur,class:^(xwaylandvideobridge)$"
|
|
||||||
|
|
||||||
"noanim,title:^(XtMapper)$"
|
|
||||||
"noblur,title:^(XtMapper)$"
|
|
||||||
"float,title:^(XtMapper)$"
|
|
||||||
"move 0 0,title:^(XtMapper)$"
|
|
||||||
"size 100%,title:^(XtMapper)$"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
self,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# i have sober installed imperatively through flatpak
|
# i have sober installed imperatively through flatpak
|
||||||
home.packages = [
|
home.packages = [
|
||||||
self.packages.${pkgs.system}.sobercookie
|
inputs.sobercookie.packages.${pkgs.system}.default
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
{
|
{inputs, ...}: {
|
||||||
programs.nix-index-database.comma.enable = true;
|
imports = [inputs.nix-index-database.hmModules.nix-index];
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
nix-index-database.comma.enable = true;
|
||||||
|
nix-index = {
|
||||||
|
enableBashIntegration = false;
|
||||||
|
enableFishIntegration = false;
|
||||||
|
enableZshIntegration = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
gpg.format = "ssh";
|
gpg.format = "ssh";
|
||||||
push.autoSetupRemote = true;
|
push.autoSetupRemote = true;
|
||||||
|
pull.rebase = true;
|
||||||
|
rebase.autostash = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
userEmail = "xunuwu@gmail.com";
|
userEmail = "xunuwu@gmail.com";
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
set -g status-interval 5
|
set -g status-interval 5
|
||||||
set -g status-right "#[fg=#25be6a]#(free -h | awk 'NR==2{print $3\"/\"$2}')"
|
set -g status-right "#[fg=#25be6a]#(free -h | awk 'NR==2{print $3\"/\"$2}')"
|
||||||
set -ag status-right "#[fg=default] %a %d %b %H:%M"
|
set -ag status-right "#[fg=default] %a %d %b %H:%M"
|
||||||
|
|
||||||
|
set-option -g default-terminal "xterm-256color"
|
||||||
|
set-option -ga terminal-overrides ",xterm-256color:Tc"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
programs.zellij = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,6 +1,4 @@
|
||||||
{config, ...}: {
|
{config, ...}: {
|
||||||
programs.fzf.enable = true;
|
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autocd = true;
|
autocd = true;
|
||||||
|
@ -11,6 +9,8 @@
|
||||||
|
|
||||||
history = {
|
history = {
|
||||||
expireDuplicatesFirst = true;
|
expireDuplicatesFirst = true;
|
||||||
|
extended = true;
|
||||||
|
save = 100 * 1000;
|
||||||
path = "${config.xdg.dataHome}/zsh_history";
|
path = "${config.xdg.dataHome}/zsh_history";
|
||||||
};
|
};
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
|
@ -41,13 +41,31 @@
|
||||||
|
|
||||||
|
|
||||||
## PROMPT ##
|
## PROMPT ##
|
||||||
|
function preexec() {
|
||||||
|
timer=$(date +%s%3N)
|
||||||
|
}
|
||||||
|
|
||||||
|
function precmd_timer() {
|
||||||
|
if [ $timer ]; then
|
||||||
|
now=$(date +%s%3N)
|
||||||
|
elapsed=$(($now-$timer))
|
||||||
|
|
||||||
|
if [[ elapsed -gt 100 ]]; then
|
||||||
|
export RPROMPT="%F{cyan}''${elapsed}ms %f"
|
||||||
|
else
|
||||||
|
unset RPROMPT
|
||||||
|
fi
|
||||||
|
unset timer
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
autoload -Uz vcs_info
|
autoload -Uz vcs_info
|
||||||
precmd_vcs_info() { vcs_info }
|
precmd_vcs_info() { vcs_info }
|
||||||
precmd_functions+=( precmd_vcs_info )
|
precmd_functions+=( precmd_vcs_info precmd_timer )
|
||||||
zstyle ':vcs_info:git:*' formats ' %b '
|
zstyle ':vcs_info:git:*' formats ' %b '
|
||||||
setopt prompt_subst
|
setopt prompt_subst
|
||||||
|
|
||||||
PROMPT="%F{blue}[%F{magenta}%n%F{blue}@%F{magenta}%M%F{blue}] %~%f %F{green}\$vcs_info_msg_0_%f%(?..%F{red}| %? )%#%f "
|
PROMPT='%F{blue}[%F{magenta}%n%F{blue}@%F{magenta}%M%F{blue}] %~%f %F{green}$vcs_info_msg_0_%f%(?..%F{red}| %? )%#%f '
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,46 +7,30 @@
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
inherit (inputs.nixpkgs.lib) nixosSystem;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs self;
|
inherit inputs self;
|
||||||
};
|
};
|
||||||
|
|
||||||
source = inputs.haumea.lib.load {
|
|
||||||
inputs = {inherit inputs lib;};
|
|
||||||
src = "${self}/nix";
|
|
||||||
};
|
|
||||||
systemProfiles = source.systemProfiles;
|
|
||||||
in {
|
in {
|
||||||
flake.colmena = {
|
flake.nixosConfigurations = {
|
||||||
meta = {
|
kidney = nixosSystem {
|
||||||
nixpkgs = import inputs.nixpkgs {
|
modules = [
|
||||||
system = "x86_64-linux";
|
|
||||||
};
|
|
||||||
|
|
||||||
inherit specialArgs;
|
|
||||||
};
|
|
||||||
kidney = {
|
|
||||||
deployment = {
|
|
||||||
allowLocalDeployment = true;
|
|
||||||
};
|
|
||||||
imports = lib.flatten [
|
|
||||||
./kidney
|
./kidney
|
||||||
(with systemProfiles; [
|
|
||||||
core.tools
|
|
||||||
core.users
|
|
||||||
core.locale
|
|
||||||
|
|
||||||
programs.tools
|
../systemProfiles/core/tools.nix
|
||||||
programs.zsh
|
../systemProfiles/core/users.nix
|
||||||
programs.home-manager
|
../systemProfiles/core/locale.nix
|
||||||
hardware.graphics
|
|
||||||
|
|
||||||
services.flatpak
|
../systemProfiles/programs/tools.nix
|
||||||
services.xdg-portals
|
../systemProfiles/programs/zsh.nix
|
||||||
|
../systemProfiles/programs/home-manager.nix
|
||||||
|
../systemProfiles/hardware/graphics.nix
|
||||||
|
|
||||||
nix.default
|
../systemProfiles/services/flatpak.nix
|
||||||
nix.gc
|
../systemProfiles/services/xdg-portals.nix
|
||||||
])
|
|
||||||
|
../systemProfiles/nix/default.nix
|
||||||
|
../systemProfiles/nix/gc.nix
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
users.xun.imports = homeImports."xun@kidney";
|
users.xun.imports = homeImports."xun@kidney";
|
||||||
|
@ -54,83 +38,72 @@ in {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
inherit specialArgs;
|
||||||
};
|
};
|
||||||
nixdesk = {
|
nixdesk = nixosSystem {
|
||||||
deployment = {
|
modules = [
|
||||||
allowLocalDeployment = true;
|
|
||||||
targetUser = "xun";
|
|
||||||
targetHost = "nixdesk.local";
|
|
||||||
};
|
|
||||||
imports = lib.flatten [
|
|
||||||
./nixdesk
|
./nixdesk
|
||||||
|
|
||||||
inputs.stylix.nixosModules.stylix
|
inputs.stylix.nixosModules.stylix
|
||||||
|
|
||||||
(with systemProfiles; [
|
../systemProfiles/secrets/default.nix
|
||||||
secrets.default
|
../systemProfiles/secrets/nixdesk/default.nix
|
||||||
secrets.nixdesk.default
|
|
||||||
|
|
||||||
core.security
|
../systemProfiles/core/security.nix
|
||||||
core.users
|
../systemProfiles/core/users.nix
|
||||||
core.ssh
|
../systemProfiles/core/ssh.nix
|
||||||
core.locale
|
../systemProfiles/core/locale.nix
|
||||||
nix.default
|
../systemProfiles/nix/default.nix
|
||||||
programs.zsh
|
../systemProfiles/programs/zsh.nix
|
||||||
core.tools
|
../systemProfiles/core/tools.nix
|
||||||
core.compat
|
../systemProfiles/core/compat.nix
|
||||||
core.boot
|
../systemProfiles/core/boot.nix
|
||||||
core.docs
|
../systemProfiles/core/docs.nix
|
||||||
core.gvfs
|
../systemProfiles/core/gvfs.nix
|
||||||
|
|
||||||
nix.gc
|
../systemProfiles/nix/gc.nix
|
||||||
|
|
||||||
hardware.graphics
|
../systemProfiles/hardware/graphics.nix
|
||||||
hardware.steam-hardware
|
../systemProfiles/hardware/steam-hardware.nix
|
||||||
hardware.bluetooth
|
../systemProfiles/hardware/bluetooth.nix
|
||||||
hardware.qmk
|
../systemProfiles/hardware/qmk.nix
|
||||||
|
|
||||||
network.networkd
|
../systemProfiles/network/networkd.nix
|
||||||
network.avahi
|
../systemProfiles/network/avahi.nix
|
||||||
network.localsend
|
../systemProfiles/network/localsend.nix
|
||||||
network.tailscale
|
../systemProfiles/network/tailscale.nix
|
||||||
network.goldberg
|
../systemProfiles/network/goldberg.nix
|
||||||
|
|
||||||
desktop.ly
|
../systemProfiles/desktop/sway.nix
|
||||||
desktop.awesome
|
|
||||||
desktop.sway
|
|
||||||
#desktop.hyprland
|
|
||||||
|
|
||||||
programs.dconf
|
../systemProfiles/programs/dconf.nix
|
||||||
programs.fonts
|
../systemProfiles/programs/fonts.nix
|
||||||
programs.home-manager
|
../systemProfiles/programs/home-manager.nix
|
||||||
# programs.qt
|
# ../systemProfiles/programs/qt.nix
|
||||||
programs.adb
|
../systemProfiles/programs/adb.nix
|
||||||
programs.kanidm
|
../systemProfiles/programs/kanidm.nix
|
||||||
programs.openrgb
|
../systemProfiles/programs/openrgb.nix
|
||||||
programs.tools
|
../systemProfiles/programs/tools.nix
|
||||||
programs.thunar
|
../systemProfiles/programs/thunar.nix
|
||||||
programs.corectrl
|
../systemProfiles/programs/corectrl.nix
|
||||||
|
|
||||||
services.default
|
../systemProfiles/services/default.nix
|
||||||
services.pipewire
|
../systemProfiles/services/pipewire.nix
|
||||||
services.flatpak
|
../systemProfiles/services/flatpak.nix
|
||||||
|
|
||||||
services.syncthing
|
../systemProfiles/services/syncthing.nix
|
||||||
services.virt.waydroid
|
../systemProfiles/services/virt/waydroid.nix
|
||||||
services.virt.virt-manager
|
../systemProfiles/services/virt/virt-manager.nix
|
||||||
services.sunshine
|
../systemProfiles/services/sunshine.nix
|
||||||
#network.wifi
|
# ../systemProfiles/network/wifi.nix
|
||||||
#services.ollama
|
|
||||||
desktop.x11.nosleep
|
|
||||||
|
|
||||||
themes.dark
|
../systemProfiles/themes/dark.nix
|
||||||
# themes.xundark
|
|
||||||
|
|
||||||
programs.gamemode
|
../systemProfiles/programs/gamemode.nix
|
||||||
programs.gamescope
|
../systemProfiles/programs/gamescope.nix
|
||||||
programs.steam
|
../systemProfiles/programs/steam.nix
|
||||||
programs.RE.default
|
../systemProfiles/programs/RE/default.nix
|
||||||
])
|
|
||||||
|
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
@ -140,58 +113,30 @@ in {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
inherit specialArgs;
|
||||||
};
|
};
|
||||||
hopper = {
|
hopper = nixosSystem {
|
||||||
deployment = {
|
modules = [
|
||||||
targetUser = "xun";
|
|
||||||
targetHost = "hopper.local";
|
|
||||||
};
|
|
||||||
imports = lib.flatten [
|
|
||||||
./hopper
|
./hopper
|
||||||
|
|
||||||
(with systemProfiles; [
|
../systemProfiles/secrets/default.nix
|
||||||
secrets.default
|
../systemProfiles/secrets/hopper/default.nix
|
||||||
secrets.hopper.default
|
|
||||||
|
|
||||||
core.security
|
../systemProfiles/core/security.nix
|
||||||
core.locale
|
../systemProfiles/core/locale.nix
|
||||||
core.tools
|
../systemProfiles/core/tools.nix
|
||||||
core.ssh
|
../systemProfiles/core/ssh.nix
|
||||||
core.deploy
|
../systemProfiles/core/deploy.nix
|
||||||
nix.default # TODO slim this down
|
../systemProfiles/nix/default.nix # TODO slim this down
|
||||||
|
|
||||||
network.tailscale
|
../systemProfiles/network/tailscale.nix
|
||||||
network.avahi
|
../systemProfiles/network/avahi.nix
|
||||||
network.networkd
|
../systemProfiles/network/networkd.nix
|
||||||
# services.syncthing # TODO make syncthing not rely on having "xun" user
|
# services.syncthing # TODO make syncthing not rely on having "xun" user
|
||||||
|
|
||||||
#network.avahi
|
|
||||||
#network.networkd
|
|
||||||
#network.tailscale
|
|
||||||
|
|
||||||
#services.syncthing
|
|
||||||
])
|
|
||||||
];
|
];
|
||||||
};
|
|
||||||
liveiso = {
|
|
||||||
deployment.targetHost = null;
|
|
||||||
imports = lib.flatten [
|
|
||||||
./liveiso
|
|
||||||
|
|
||||||
(with systemProfiles; [
|
inherit specialArgs;
|
||||||
nix.default
|
|
||||||
core.security
|
|
||||||
services.default
|
|
||||||
])
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
flake.nixosConfigurations = let
|
|
||||||
l = inputs.nixpkgs.lib;
|
|
||||||
in
|
|
||||||
builtins.mapAttrs (_: v:
|
|
||||||
l.nixosSystem {
|
|
||||||
inherit specialArgs;
|
|
||||||
modules = v.imports;
|
|
||||||
}) (l.filterAttrs (n: _: n != "meta") self.colmena);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
common-cpu-intel
|
common-cpu-intel
|
||||||
|
|
||||||
inputs.vpn-confinement.nixosModules.default
|
inputs.vpn-confinement.nixosModules.default
|
||||||
inputs.authentik-nix.nixosModules.default
|
|
||||||
|
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./newlab.nix
|
./newlab.nix
|
||||||
|
|
|
@ -1,305 +0,0 @@
|
||||||
## TODO look into sops-nix placeholders
|
|
||||||
## reference: https://github.com/javigomezo/nixos/blob/b3ebe8d570ea9b37aea8bb3a343f6e16e054e322/services/network/authelia/user_database.nix
|
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
domain = "xunuwu.xyz";
|
|
||||||
caddyPort = 8336;
|
|
||||||
autheliaPort = 24637;
|
|
||||||
in {
|
|
||||||
## TODO use impermanence
|
|
||||||
## TODO setup fail2ban mayb
|
|
||||||
|
|
||||||
imports = [inputs.vpn-confinement.nixosModules.default];
|
|
||||||
|
|
||||||
security.acme = {
|
|
||||||
acceptTerms = true;
|
|
||||||
certs.${domain} = {
|
|
||||||
domain = "*.${domain}";
|
|
||||||
dnsProvider = "cloudflare";
|
|
||||||
email = "xunuwu@gmail.com";
|
|
||||||
reloadServices = ["caddy.service"];
|
|
||||||
credentialFiles.CF_DNS_API_TOKEN_FILE = config.sops.secrets.cloudflare.path;
|
|
||||||
extraDomainNames = [domain];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
vpnNamespaces."wg" = {
|
|
||||||
enable = true;
|
|
||||||
wireguardConfigFile = config.sops.secrets.wireguard-config.path;
|
|
||||||
accessibleFrom = [
|
|
||||||
"192.168.0.0/24"
|
|
||||||
];
|
|
||||||
|
|
||||||
# Forwarded to my vpn, for making things accessible from outside
|
|
||||||
openVPNPorts = [
|
|
||||||
{
|
|
||||||
port = caddyPort;
|
|
||||||
protocol = "tcp";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
# From inside of the vpn namespace to outside of it, for making things inside accessible to LAN
|
|
||||||
portMappings = [
|
|
||||||
{
|
|
||||||
to = caddyPort;
|
|
||||||
from = caddyPort;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
to = 7359; # Jellyfin auto-discovery
|
|
||||||
from = 7359;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
to = 1900; # Jellyfin auto-discovery, TODO check if this actually works and dont forward these if it doesnt
|
|
||||||
from = 1900;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall = {
|
|
||||||
allowedTCPPorts = [config.services.navidrome.settings.Port];
|
|
||||||
allowedUDPPorts = [1900 7359]; # Jellyfin auto-discovery
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.caddy.vpnConfinement = {
|
|
||||||
enable = true;
|
|
||||||
vpnNamespace = "wg";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.caddy = {
|
|
||||||
enable = true;
|
|
||||||
# extraConfig = let
|
|
||||||
# gensub = x: "${x}.${domain}:${toString caddyPort}";
|
|
||||||
# tls = "tls /var/lib/acme/${domain}/cert.pem /var/lib/acme/${domain}/key.pem";
|
|
||||||
# rpPort = port: "reverse_proxy localhost:${toString port}";
|
|
||||||
# in ''
|
|
||||||
# ${gensub "navidrome"} {
|
|
||||||
# ${tls}
|
|
||||||
# ${rpPort config.services.navidrome.settings.Port}
|
|
||||||
# }
|
|
||||||
# '';
|
|
||||||
virtualHosts = let
|
|
||||||
authelia = "localhost:${toString autheliaPort}";
|
|
||||||
in
|
|
||||||
builtins.mapAttrs (n: v:
|
|
||||||
{
|
|
||||||
useACMEHost = domain;
|
|
||||||
hostName = "${n}.${domain}:${toString caddyPort}";
|
|
||||||
}
|
|
||||||
// v) {
|
|
||||||
navidrome.extraConfig = ''
|
|
||||||
reverse_proxy localhost:${toString config.services.navidrome.settings.Port}
|
|
||||||
'';
|
|
||||||
auth.extraConfig = "reverse_proxy ${authelia}";
|
|
||||||
#jellyfin.extraConfig = "reverse_proxy localhost:8096"; # TODO tmp off since i dont have proper auth yet
|
|
||||||
other = {
|
|
||||||
hostName = ":${toString caddyPort}";
|
|
||||||
extraConfig = ''
|
|
||||||
respond 404 {
|
|
||||||
body "no such route you dummy"
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.navidrome = {
|
|
||||||
vpnConfinement = {
|
|
||||||
enable = true;
|
|
||||||
vpnNamespace = "wg";
|
|
||||||
};
|
|
||||||
serviceConfig = {
|
|
||||||
PrivateTmp = true;
|
|
||||||
NoNewPrivileges = true;
|
|
||||||
RestrictSUIDSGID = true;
|
|
||||||
ProtectProc = "invisible";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
## TODO might be unnecessary with authelia but specifying a custom PasswordEncryptionKey is recommended
|
|
||||||
services.navidrome = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
Address = "localhost";
|
|
||||||
MusicFolder = "/media/library/music";
|
|
||||||
|
|
||||||
ReverseProxyWhitelist = "0.0.0.0/0"; # cant be accessed from outside since the navidrome port isnt mapped to outside of the wireguard namespace
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.authelia-main = {
|
|
||||||
vpnConfinement = {
|
|
||||||
enable = true;
|
|
||||||
vpnNamespace = "wg";
|
|
||||||
};
|
|
||||||
# serviceConfig.LoadCredential = [
|
|
||||||
# "users.yaml:${}"
|
|
||||||
# ];
|
|
||||||
};
|
|
||||||
services.authelia.instances.main = {
|
|
||||||
enable = true;
|
|
||||||
secrets = {
|
|
||||||
jwtSecretFile = config.sops.secrets.authelia_jwt_secret.path;
|
|
||||||
storageEncryptionKeyFile = config.sops.secrets.authelia_encryption_key.path;
|
|
||||||
sessionSecretFile = config.sops.secrets.authelia_session_secret.path;
|
|
||||||
};
|
|
||||||
settings = {
|
|
||||||
# might change this to info in the future, for now its nice seeing debug messages if something goes wrong
|
|
||||||
log.level = "debug";
|
|
||||||
|
|
||||||
access_control = {
|
|
||||||
default_policy = "deny";
|
|
||||||
rules = [
|
|
||||||
{
|
|
||||||
domain = "*.${domain}";
|
|
||||||
policy = "one_factor"; # using totp requires me to set up smtp support :(
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
theme = "auto";
|
|
||||||
default_2fa_method = "totp";
|
|
||||||
## use ldap backend, not yaml file
|
|
||||||
## https://www.authelia.com/configuration/first-factor/ldap/
|
|
||||||
# default_redirection_url = "https://auth.${domain}/";
|
|
||||||
|
|
||||||
notifier.filesystem.filename = "/tmp/authelia-notifier.txt"; ## TODO change this to something reasonable
|
|
||||||
|
|
||||||
authentication_backend = {
|
|
||||||
password_reset.disable = true;
|
|
||||||
file.path = pkgs.writers.writeYAML "users.yaml" {
|
|
||||||
users.xun = {
|
|
||||||
disabled = false;
|
|
||||||
displayname = "xun";
|
|
||||||
password = "$argon2id$v=19$m=65536,t=3,p=4$cwYrForToKZn7+urMrSXuQ$PStkqPlo/7/GZ+hMsJXfOyZ0WijNtuZpaHWyZUuBWBY";
|
|
||||||
email = "xunuwu@gmail.com";
|
|
||||||
groups = ["admin"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
storage.postgres = {
|
|
||||||
address = "unix:///run/postgresql";
|
|
||||||
database = "authelia-main";
|
|
||||||
# this isnt used, ensureDBOwnership allows us to auth to postgres using unix users
|
|
||||||
username = "authelia-main";
|
|
||||||
password = "unused";
|
|
||||||
};
|
|
||||||
|
|
||||||
session.cookies = [
|
|
||||||
{
|
|
||||||
domain = domain;
|
|
||||||
authelia_url = "https://auth.${domain}";
|
|
||||||
default_redirection_url = "https://invalid.${domain}"; # TODO replace with overview thing mayb
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
## TODO: https://www.authelia.com/integration/proxies/forwarded-headers/#cloudflare
|
|
||||||
|
|
||||||
server = {
|
|
||||||
address = "127.0.0.1:${toString autheliaPort}";
|
|
||||||
endpoints.authz.forward-auth.implementation = "ForwardAuth";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.postgresql = let
|
|
||||||
databases = ["authelia-main"];
|
|
||||||
in {
|
|
||||||
enable = true;
|
|
||||||
ensureDatabases = databases;
|
|
||||||
ensureUsers = lib.singleton {
|
|
||||||
name = "authelia-main";
|
|
||||||
ensureDBOwnership = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.jellyfin.vpnConfinement = {
|
|
||||||
enable = true;
|
|
||||||
vpnNamespace = "wg";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.jellyfin = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.prometheus = {
|
|
||||||
enable = true;
|
|
||||||
port = 9001;
|
|
||||||
extraFlags = ["--storage.tsdb.retention.time=30d"];
|
|
||||||
scrapeConfigs = [
|
|
||||||
{
|
|
||||||
job_name = config.networking.hostName;
|
|
||||||
static_configs = [
|
|
||||||
{
|
|
||||||
targets = ["127.0.0.1:${toString config.services.prometheus.exporters.node.port}"];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.prometheus.exporters = {
|
|
||||||
node = {
|
|
||||||
enable = true;
|
|
||||||
enabledCollectors = ["systemd"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# services.grafana = {
|
|
||||||
# enable = true;
|
|
||||||
# domain = "grafana.hopper";
|
|
||||||
# addr = "127.0.0.1";
|
|
||||||
# security = {
|
|
||||||
# adminUser = "admin";
|
|
||||||
# adminPasswordFile = config.sops.secrets.grafana-pass.path;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
## TODO: add forgejo
|
|
||||||
|
|
||||||
## ignore this its cringe and ill prob remove it later idk, its also pasted from someone else, idk who tho ##
|
|
||||||
systemd.services.vpn-test-service = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
vpnConfinement = {
|
|
||||||
enable = true;
|
|
||||||
vpnNamespace = "wg";
|
|
||||||
};
|
|
||||||
|
|
||||||
script = "${pkgs.writeShellApplication {
|
|
||||||
name = "vpn-test";
|
|
||||||
|
|
||||||
runtimeInputs = with pkgs; [util-linux unixtools.ping coreutils curl bash libressl netcat-gnu openresolv dig];
|
|
||||||
|
|
||||||
text = ''
|
|
||||||
cd "$(mktemp -d)"
|
|
||||||
|
|
||||||
# DNS information
|
|
||||||
dig google.com
|
|
||||||
|
|
||||||
# Print resolv.conf
|
|
||||||
echo "/etc/resolv.conf contains:"
|
|
||||||
cat /etc/resolv.conf
|
|
||||||
|
|
||||||
# Query resolvconf
|
|
||||||
# echo "resolvconf output:"
|
|
||||||
# resolvconf -l
|
|
||||||
# echo ""
|
|
||||||
|
|
||||||
# Get ip
|
|
||||||
echo "Getting IP:"
|
|
||||||
curl -s ipinfo.io
|
|
||||||
|
|
||||||
echo -ne "DNS leak test:"
|
|
||||||
curl -s https://raw.githubusercontent.com/macvk/dnsleaktest/b03ab54d574adbe322ca48cbcb0523be720ad38d/dnsleaktest.sh -o dnsleaktest.sh
|
|
||||||
chmod +x dnsleaktest.sh
|
|
||||||
./dnsleaktest.sh
|
|
||||||
'';
|
|
||||||
}}/bin/vpn-test";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,18 +0,0 @@
|
||||||
{pkgs, ...}: {
|
|
||||||
imports = [
|
|
||||||
./tools.nix
|
|
||||||
./sway.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
firefox
|
|
||||||
];
|
|
||||||
|
|
||||||
isoImage.edition = "sway-custom";
|
|
||||||
|
|
||||||
networking.hostName = "liveiso";
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
|
||||||
}
|
|