Compare commits
1 Commits
master
...
shell-inhi
| Author | SHA1 | Date | |
|---|---|---|---|
| 4feb5b89e8 |
@@ -13,9 +13,9 @@ set $term alacritty
|
|||||||
set $menu wofi --term '$term'
|
set $menu wofi --term '$term'
|
||||||
|
|
||||||
### Output configuration
|
### Output configuration
|
||||||
output DP-3 pos 1920 0 res 1920x1080@60Hz
|
output DP-3 pos 3840 0 res 1920x1080@59Hz
|
||||||
output HDMI-A-1 pos 0 0 res 1920x1080@60Hz
|
output HDMI-A-1 pos 0 0 res 1920x1080@59Hz
|
||||||
output DP-2 pos 3840 0 res 1920x1080@60Hz
|
output DP-2 pos 1920 0 res 1920x1080@60Hz
|
||||||
|
|
||||||
### Wallpaper
|
### Wallpaper
|
||||||
output HDMI-A-1 bg ~/.wallpaper/.wallpaper.png fill
|
output HDMI-A-1 bg ~/.wallpaper/.wallpaper.png fill
|
||||||
@@ -25,19 +25,19 @@ output DP-3 bg ~/.wallpaper/.wallpaper.png fill
|
|||||||
### Workspace binding
|
### Workspace binding
|
||||||
|
|
||||||
## DP-3 bindings
|
## DP-3 bindings
|
||||||
workspace 1 output DP-3
|
workspace 1 output DP-2
|
||||||
workspace 2 output DP-3
|
workspace 2 output DP-2
|
||||||
workspace 4 output DP-3
|
workspace 4 output DP-2
|
||||||
workspace 5 output DP-3
|
workspace 5 output DP-2
|
||||||
|
|
||||||
## HDMI-A-1 bindings
|
## HDMI-A-1 bindings
|
||||||
workspace 3 output HDMI-A-1
|
workspace 3 output HDMI-A-1
|
||||||
workspace 9 output HDMI-A-1
|
workspace 9 output HDMI-A-1
|
||||||
|
|
||||||
## DP-2 bindings
|
## DP-2 bindings
|
||||||
workspace 6 output DP-2
|
workspace 6 output DP-3
|
||||||
workspace 7 output DP-2
|
workspace 7 output DP-3
|
||||||
workspace 8 output DP-2
|
workspace 8 output DP-3
|
||||||
|
|
||||||
### Colour options
|
### Colour options
|
||||||
set $bg #24283b
|
set $bg #24283b
|
||||||
|
|||||||
266
flake.lock
generated
266
flake.lock
generated
@@ -1,27 +1,5 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"aagl": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"rust-overlay": "rust-overlay"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1774186997,
|
|
||||||
"narHash": "sha256-hyNVlhAqmwcBPl7XRkxbGcMt1BfCOdvuEfBDUf0k8Oo=",
|
|
||||||
"owner": "ezKEa",
|
|
||||||
"repo": "aagl-gtk-on-nix",
|
|
||||||
"rev": "546e95f7ec74892a31f883a10b1723c35f2c2edd",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "ezKEa",
|
|
||||||
"repo": "aagl-gtk-on-nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"darwin": {
|
"darwin": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -29,16 +7,16 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772129556,
|
"lastModified": 1749744770,
|
||||||
"narHash": "sha256-Utk0zd8STPsUJPyjabhzPc5BpPodLTXrwkpXBHYnpeg=",
|
"narHash": "sha256-MEM9XXHgBF/Cyv1RES1t6gqAX7/tvayBC1r/KPyK1ls=",
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "ebec37af18215214173c98cf6356d0aca24a2585",
|
"rev": "536f951efb1ccda9b968e3c9dee39fbeb6d3fdeb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"ref": "nix-darwin-25.11",
|
"ref": "nix-darwin-25.05",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -46,11 +24,11 @@
|
|||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767039857,
|
"lastModified": 1747046372,
|
||||||
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
|
||||||
"owner": "edolstra",
|
"owner": "edolstra",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-compat",
|
||||||
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -59,32 +37,44 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-schemas": {
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1761577921,
|
"lastModified": 1731533236,
|
||||||
"narHash": "sha256-eK3/xbUOrxp9fFlei09XNjqcdiHXxndzrTXp7jFpOk8=",
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
"rev": "47849c7625e223d36766968cc6dc23ba0e135922",
|
"owner": "numtide",
|
||||||
"revCount": 107,
|
"repo": "flake-utils",
|
||||||
"type": "tarball",
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
"url": "https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.2.0/019a4a84-544d-7c59-b26d-e334e320c932/source.tar.gz"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"owner": "numtide",
|
||||||
"url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%2A"
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-schemas_2": {
|
"ghostty": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat",
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs",
|
||||||
|
"zig": "zig",
|
||||||
|
"zon2nix": "zon2nix"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1761577921,
|
"lastModified": 1754941490,
|
||||||
"narHash": "sha256-eK3/xbUOrxp9fFlei09XNjqcdiHXxndzrTXp7jFpOk8=",
|
"narHash": "sha256-2AJf0q4u1zakqjr0y4dCyqzdDSil8P5m2YpZxAAzJJw=",
|
||||||
"rev": "47849c7625e223d36766968cc6dc23ba0e135922",
|
"owner": "ghostty-org",
|
||||||
"revCount": 107,
|
"repo": "ghostty",
|
||||||
"type": "tarball",
|
"rev": "5bf632e9cc0e77a578bad983b0cbdf0451ce87d4",
|
||||||
"url": "https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.2.0/019a4a84-544d-7c59-b26d-e334e320c932/source.tar.gz"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"owner": "ghostty-org",
|
||||||
"url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%2A"
|
"repo": "ghostty",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
@@ -94,16 +84,16 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1774274588,
|
"lastModified": 1753592768,
|
||||||
"narHash": "sha256-dnHvv5EMUgTzGZmA+3diYjQU2O6BEpGLEOgJ1Qe9LaY=",
|
"narHash": "sha256-oV695RvbAE4+R9pcsT9shmp6zE/+IZe6evHWX63f2Qg=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "cf9686ba26f5ef788226843bc31fda4cf72e373b",
|
"rev": "fc3add429f21450359369af74c2375cb34a2d204",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "release-25.11",
|
"ref": "release-25.05",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -126,164 +116,110 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744536153,
|
"lastModified": 1748189127,
|
||||||
"narHash": "sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=",
|
"narHash": "sha256-zRDR+EbbeObu4V2X5QCd2Bk5eltfDlCr5yvhBwUT6pY=",
|
||||||
"owner": "NixOS",
|
"rev": "7c43f080a7f28b2774f3b3f43234ca11661bf334",
|
||||||
"repo": "nixpkgs",
|
"type": "tarball",
|
||||||
"rev": "18dd725c29603f582cf1900e0d25f9f1063dbf11",
|
"url": "https://releases.nixos.org/nixos/25.05/nixos-25.05.802491.7c43f080a7f2/nixexprs.tar.xz"
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://channels.nixos.org/nixos-25.05/nixexprs.tar.xz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1774244481,
|
"lastModified": 1754767907,
|
||||||
"narHash": "sha256-4XfMXU0DjN83o6HWZoKG9PegCvKvIhNUnRUI19vzTcQ=",
|
"narHash": "sha256-8OnUzRQZkqtUol9vuUuQC30hzpMreKptNyET2T9lB6g=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "4590696c8693fea477850fe379a01544293ca4e2",
|
"rev": "c5f08b62ed75415439d48152c2a784e36909b1bc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-25.11",
|
"ref": "nixos-25.05",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1744536153,
|
|
||||||
"narHash": "sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "18dd725c29603f582cf1900e0d25f9f1063dbf11",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixpkgs-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_4": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1766201043,
|
|
||||||
"narHash": "sha256-eplAP+rorKKd0gNjV3rA6+0WMzb1X1i16F5m5pASnjA=",
|
|
||||||
"rev": "b3aad468604d3e488d627c0b43984eb60e75e782",
|
|
||||||
"revCount": 904049,
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.2511.904049%2Brev-b3aad468604d3e488d627c0b43984eb60e75e782/019b3f6c-8b33-7edb-b858-9979590f270b/source.tar.gz"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://flakehub.com/f/NixOS/nixpkgs/%2A"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_5": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1769089682,
|
|
||||||
"narHash": "sha256-9yA/LIuAVQq0lXelrZPjLuLVuZdm03p8tfmHhnDIkms=",
|
|
||||||
"rev": "078d69f03934859a181e81ba987c2bb033eebfc5",
|
|
||||||
"revCount": 906333,
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.2511.906333%2Brev-078d69f03934859a181e81ba987c2bb033eebfc5/019bebf2-031c-7119-8fdc-ce9d29d005fa/source.tar.gz"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://flakehub.com/f/NixOS/nixpkgs/%2A"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"aagl": "aagl",
|
|
||||||
"darwin": "darwin",
|
"darwin": "darwin",
|
||||||
|
"ghostty": "ghostty",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nix-flatpak": "nix-flatpak",
|
"nix-flatpak": "nix-flatpak",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2"
|
||||||
"rust-overlay": "rust-overlay_2",
|
|
||||||
"swaytreesave": "swaytreesave",
|
|
||||||
"vintage-story": "vintage-story"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-overlay": {
|
"systems": {
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
},
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770952264,
|
"lastModified": 1681028828,
|
||||||
"narHash": "sha256-CjymNrJZWBtpavyuTkfPVPaZkwzIzGaf0E/3WgcwM14=",
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
"owner": "oxalica",
|
"owner": "nix-systems",
|
||||||
"repo": "rust-overlay",
|
"repo": "default",
|
||||||
"rev": "ec6a3d5cdf14bb5a1dd03652bd3f6351004d2188",
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "oxalica",
|
"owner": "nix-systems",
|
||||||
"repo": "rust-overlay",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-overlay_2": {
|
"zig": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_3"
|
"flake-compat": [
|
||||||
|
"ghostty",
|
||||||
|
"flake-compat"
|
||||||
|
],
|
||||||
|
"flake-utils": [
|
||||||
|
"ghostty",
|
||||||
|
"flake-utils"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"ghostty",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1774321696,
|
"lastModified": 1748261582,
|
||||||
"narHash": "sha256-g18xMjMNla/nsF5XyQCNyWmtb2UlZpkY0XE8KinIXAA=",
|
"narHash": "sha256-3i0IL3s18hdDlbsf0/E+5kyPRkZwGPbSFngq5eToiAA=",
|
||||||
"owner": "oxalica",
|
"owner": "mitchellh",
|
||||||
"repo": "rust-overlay",
|
"repo": "zig-overlay",
|
||||||
"rev": "49a67e6894d4cb782842ee6faa466aa90c92812d",
|
"rev": "aafb1b093fb838f7a02613b719e85ec912914221",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "oxalica",
|
"owner": "mitchellh",
|
||||||
"repo": "rust-overlay",
|
"repo": "zig-overlay",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"swaytreesave": {
|
"zon2nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-schemas": "flake-schemas",
|
"flake-utils": [
|
||||||
"nixpkgs": "nixpkgs_4"
|
"ghostty",
|
||||||
|
"flake-utils"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"ghostty",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767148467,
|
"lastModified": 1742104771,
|
||||||
"narHash": "sha256-W0O7SWq8ucokt4ctEAEvRvNoSM/oF7fBfb2kTN+lwTs=",
|
"narHash": "sha256-LhidlyEA9MP8jGe1rEnyjGFCzLLgCdDpYeWggibayr0=",
|
||||||
"ref": "refs/heads/master",
|
"owner": "jcollie",
|
||||||
"rev": "0f4bb9bb450b28aa4f29d5eb2062deac6c26687a",
|
"repo": "zon2nix",
|
||||||
"revCount": 4,
|
"rev": "56c159be489cc6c0e73c3930bd908ddc6fe89613",
|
||||||
"type": "git",
|
"type": "github"
|
||||||
"url": "https://scm.wyattjmiller.com/wymiller/swaytreesave-nix.git"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"owner": "jcollie",
|
||||||
"url": "https://scm.wyattjmiller.com/wymiller/swaytreesave-nix.git"
|
"repo": "zon2nix",
|
||||||
}
|
"rev": "56c159be489cc6c0e73c3930bd908ddc6fe89613",
|
||||||
},
|
"type": "github"
|
||||||
"vintage-story": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-schemas": "flake-schemas_2",
|
|
||||||
"nixpkgs": "nixpkgs_5"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1769397199,
|
|
||||||
"narHash": "sha256-MSajncUGZtlpl88rqFdj42eGGyWnk2jw84VbK3AgUBA=",
|
|
||||||
"ref": "refs/heads/master",
|
|
||||||
"rev": "4d2313c50933645040a0d12556016fc2916bfa65",
|
|
||||||
"revCount": 1,
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://scm.wyattjmiller.com/wymiller/vintage-story-nix.git"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://scm.wyattjmiller.com/wymiller/vintage-story-nix.git"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
131
flake.nix
131
flake.nix
@@ -1,25 +1,17 @@
|
|||||||
{
|
{
|
||||||
description = "Wyatt's nix configuration suite";
|
description = "Wyatt's nix configuration suite";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
||||||
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.6.0";
|
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.6.0";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-25.11";
|
url = "github:nix-community/home-manager/release-25.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
darwin = {
|
darwin = {
|
||||||
url = "github:lnl7/nix-darwin/nix-darwin-25.11";
|
url = "github:lnl7/nix-darwin/nix-darwin-25.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
rust-overlay.url = "github:oxalica/rust-overlay";
|
ghostty.url = "github:ghostty-org/ghostty";
|
||||||
aagl = {
|
|
||||||
url = "github:ezKEa/aagl-gtk-on-nix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
# My personal flakes
|
|
||||||
swaytreesave.url = "git+https://scm.wyattjmiller.com/wymiller/swaytreesave-nix.git";
|
|
||||||
vintage-story.url = "git+https://scm.wyattjmiller.com/wymiller/vintage-story-nix.git";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ {
|
outputs = inputs @ {
|
||||||
@@ -28,42 +20,26 @@
|
|||||||
nix-flatpak,
|
nix-flatpak,
|
||||||
darwin,
|
darwin,
|
||||||
home-manager,
|
home-manager,
|
||||||
rust-overlay,
|
ghostty,
|
||||||
aagl,
|
|
||||||
swaytreesave,
|
|
||||||
vintage-story,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
userName = "wyatt";
|
userName = "wyatt";
|
||||||
userEmail = "wyatt@wyattjmiller.com";
|
userEmail = "wyatt@wyattjmiller.com";
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit userName userEmail swaytreesave;
|
inherit userName userEmail ghostty;
|
||||||
};
|
|
||||||
|
|
||||||
myOverlays = { ... }: {
|
|
||||||
nixpkgs.overlays = [
|
|
||||||
rust-overlay.overlays.default
|
|
||||||
aagl.overlays.default
|
|
||||||
self.common.overlays
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
meta = import ./meta;
|
meta = import ./meta;
|
||||||
|
|
||||||
common = {
|
|
||||||
overlays = import ./modules/common/overlays.nix;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Primary laptop - MacBook Pro (2023, M3)
|
# Primary laptop - MacBook Pro (2023, M3)
|
||||||
darwinConfigurations."sephiroth" = darwin.lib.darwinSystem {
|
darwinConfigurations."sephiroth" = darwin.lib.darwinSystem {
|
||||||
system = "aarch64-darwin";
|
system = "aarch64-darwin";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit userName userEmail;
|
inherit userName userEmail ghostty;
|
||||||
hostname = "sephiroth";
|
hostname = "sephiroth";
|
||||||
role = "workstation";
|
role = "devel";
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
myOverlays
|
|
||||||
./modules/common
|
./modules/common
|
||||||
./modules/machine/sephiroth
|
./modules/machine/sephiroth
|
||||||
|
|
||||||
@@ -71,9 +47,7 @@
|
|||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.extraSpecialArgs = extraSpecialArgs // { isNixOS = false; role = "workstation"; };
|
home-manager.extraSpecialArgs = extraSpecialArgs;
|
||||||
# home-manager.extraSpecialArgs = extraSpecialArgs;
|
|
||||||
home-manager.backupFileExtension = "bak";
|
|
||||||
home-manager.users.${userName} = import ./home;
|
home-manager.users.${userName} = import ./home;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@@ -83,12 +57,11 @@
|
|||||||
nixosConfigurations."cloud" = nixpkgs.lib.nixosSystem {
|
nixosConfigurations."cloud" = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit userName userEmail aagl vintage-story;
|
inherit userName userEmail ghostty;
|
||||||
hostname = "cloud";
|
hostname = "cloud";
|
||||||
role = "workstation";
|
role = "devel";
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
myOverlays
|
|
||||||
nix-flatpak.nixosModules.nix-flatpak
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
./modules/common
|
./modules/common
|
||||||
./modules/machine/cloud
|
./modules/machine/cloud
|
||||||
@@ -97,8 +70,7 @@
|
|||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.extraSpecialArgs = extraSpecialArgs // { isNixOS = true; role = "workstation"; };
|
home-manager.extraSpecialArgs = extraSpecialArgs;
|
||||||
home-manager.backupFileExtension = "bak";
|
|
||||||
home-manager.users.${userName}.imports = [
|
home-manager.users.${userName}.imports = [
|
||||||
./home
|
./home
|
||||||
];
|
];
|
||||||
@@ -115,7 +87,6 @@
|
|||||||
role = "server";
|
role = "server";
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
myOverlays
|
|
||||||
./modules/common
|
./modules/common
|
||||||
./modules/machine/valefor
|
./modules/machine/valefor
|
||||||
|
|
||||||
@@ -124,7 +95,6 @@
|
|||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.extraSpecialArgs = extraSpecialArgs;
|
home-manager.extraSpecialArgs = extraSpecialArgs;
|
||||||
home-manager.backupFileExtension = "bak";
|
|
||||||
home-manager.users.${userName}.imports = [
|
home-manager.users.${userName}.imports = [
|
||||||
./home
|
./home
|
||||||
];
|
];
|
||||||
@@ -141,7 +111,6 @@
|
|||||||
role = "server";
|
role = "server";
|
||||||
};
|
};
|
||||||
# modules = [
|
# modules = [
|
||||||
# myOverlays
|
|
||||||
# nix-flatpak.nixosModules.nix-flatpak
|
# nix-flatpak.nixosModules.nix-flatpak
|
||||||
# nix-ld.nixosModules.nix-ld
|
# nix-ld.nixosModules.nix-ld
|
||||||
# ./modules/nixos/hardware-configuration.nix
|
# ./modules/nixos/hardware-configuration.nix
|
||||||
@@ -154,87 +123,11 @@
|
|||||||
# home-manager.useGlobalPkgs = true;
|
# home-manager.useGlobalPkgs = true;
|
||||||
# home-manager.useUserPackages = true;
|
# home-manager.useUserPackages = true;
|
||||||
# home-manager.extraSpecialArgs = extraSpecialArgs;
|
# home-manager.extraSpecialArgs = extraSpecialArgs;
|
||||||
# home-manager.backupFileExtension = "bak";
|
|
||||||
# home-manager.users.${userName}.imports = [
|
# home-manager.users.${userName}.imports = [
|
||||||
# ./home
|
# ./home
|
||||||
# ];
|
# ];
|
||||||
# }
|
# }
|
||||||
# ];
|
# ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Vintage story server
|
|
||||||
nixosConfigurations."thancred" = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
specialArgs = {
|
|
||||||
inherit userName userEmail vintage-story;
|
|
||||||
hostname = "thancred";
|
|
||||||
role = "server";
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
myOverlays
|
|
||||||
./modules/common
|
|
||||||
./modules/machine/thancred
|
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
{
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.extraSpecialArgs = extraSpecialArgs // { isNixOS = true; role = "server"; };
|
|
||||||
home-manager.backupFileExtension = "bak";
|
|
||||||
home-manager.users.${userName}.imports = [
|
|
||||||
./home
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Matrix and Mastodon server
|
|
||||||
nixosConfigurations."yshtola" = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
specialArgs = {
|
|
||||||
inherit userName userEmail;
|
|
||||||
hostname = "yshtola";
|
|
||||||
role = "server";
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
myOverlays
|
|
||||||
./modules/common
|
|
||||||
./modules/machine/yshtola
|
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
{
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.extraSpecialArgs = extraSpecialArgs // { isNixOS = true; role = "server"; };
|
|
||||||
home-manager.backupFileExtension = "bak";
|
|
||||||
home-manager.users.${userName}.imports = [
|
|
||||||
./home
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# generic non-NixOS Linux machine
|
|
||||||
homeConfigurations."generic" = let
|
|
||||||
hostname = builtins.getEnv "HOSTNAME";
|
|
||||||
system = "x86_64-linux";
|
|
||||||
in home-manager.lib.homeManagerConfiguration {
|
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
|
||||||
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit userName userEmail hostname;
|
|
||||||
isNixOS = false;
|
|
||||||
role = "workstation";
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
{
|
|
||||||
nixpkgs.overlays = [
|
|
||||||
rust-overlay.overlays.default
|
|
||||||
self.common.overlays
|
|
||||||
];
|
|
||||||
}
|
|
||||||
./home
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{ pkgs, ...}: {
|
{...}: {
|
||||||
programs.atuin = {
|
programs.atuin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
package = pkgs.atuinLatest;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
isNixOS ? true,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
@@ -10,7 +9,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs.chromium = {
|
programs.chromium = {
|
||||||
enable = pkgs.stdenv.isLinux && isNixOS;
|
enable = pkgs.stdenv.isLinux;
|
||||||
package = pkgs.ungoogled-chromium.override {
|
package = pkgs.ungoogled-chromium.override {
|
||||||
enableWideVine = true;
|
enableWideVine = true;
|
||||||
commandLineArgs = [
|
commandLineArgs = [
|
||||||
@@ -41,37 +40,14 @@
|
|||||||
id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";
|
id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";
|
||||||
sha256 = "sha256:0pdh1v0vx1d5vnl1zh7nbk6j1fh4k4hhwp1ljs203icn306lahsn";
|
sha256 = "sha256:0pdh1v0vx1d5vnl1zh7nbk6j1fh4k4hhwp1ljs203icn306lahsn";
|
||||||
# sha256 = lib.fakeSha256;
|
# sha256 = lib.fakeSha256;
|
||||||
version = "1.67.0";
|
version = "1.64.0";
|
||||||
})
|
})
|
||||||
(createChromiumExtension {
|
(createChromiumExtension {
|
||||||
# bitwarden
|
# bitwarden
|
||||||
id = "nngceckbapebfimnlniiiahkandclblb";
|
id = "nngceckbapebfimnlniiiahkandclblb";
|
||||||
sha256 = "sha256:0jxk3cqmgd5qj8hnw7s0k5s4bfrcmr0w0rckp3x0bmng07azw4gi";
|
sha256 = "sha256:0jxk3cqmgd5qj8hnw7s0k5s4bfrcmr0w0rckp3x0bmng07azw4gi";
|
||||||
version = "2025.10.0";
|
# sha256 = lib.fakeSha256;
|
||||||
})
|
version = "2025.5.0";
|
||||||
(createChromiumExtension {
|
|
||||||
# react dev tools
|
|
||||||
id = "fmkadmapgofadopljbjfkapdkoienihi";
|
|
||||||
sha256 = "sha256:01vy0x7hdkj4g3m2l4kw5rwldhhpkcxmd2miy5rj2dzxdnbchw2z";
|
|
||||||
version = "7.0.1";
|
|
||||||
})
|
|
||||||
(createChromiumExtension {
|
|
||||||
# wappalyzer
|
|
||||||
id = "gppongmhjkpfnbhagpmjfkannfbllamg";
|
|
||||||
sha256 = "sha256:1mi1wpm714r8yp0zh0yg6kccnld36rj4xb8j4y0c18y9176vc6wx";
|
|
||||||
version = "6.10.86";
|
|
||||||
})
|
|
||||||
(createChromiumExtension {
|
|
||||||
# obsidian web clipper
|
|
||||||
id = "cnjifjpddelmedmihgijeibhnjfabmlf";
|
|
||||||
sha256 = "sha256:0bp6g63g9hk2xbq054lpf5hzwmn73jzh3hswyjfp9r7yqj83mzgy";
|
|
||||||
version = "0.12.0";
|
|
||||||
})
|
|
||||||
(createChromiumExtension {
|
|
||||||
# dark reader
|
|
||||||
id = "eimadpbcbfnmbkopoojfekhnkhdbieeh";
|
|
||||||
sha256 = "sha256:06a9dz589i1da519kivzp7bljksl2xxsd151y7ww0hx28jd1694b";
|
|
||||||
version = "4.9.113";
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,38 +1,43 @@
|
|||||||
{ lib
|
{
|
||||||
, pkgs
|
lib,
|
||||||
, userName
|
pkgs,
|
||||||
, swaytreesave
|
userName,
|
||||||
, isNixOS ? true
|
userEmail,
|
||||||
, ...
|
ghostty,
|
||||||
|
...
|
||||||
}: let
|
}: let
|
||||||
# Have a file sturcture that holds all the configuration files that can't be configured by Nix
|
# Have a file sturcture that holds all the configuration files that can't be configured by Nix
|
||||||
# or maybe I'm too lazy to do anything about it? I dunno
|
# or maybe I'm too lazy to do anything about it? I dunno
|
||||||
dirs = {
|
dirs = {
|
||||||
defaults = ../defaults;
|
defaults = ../defaults;
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
_module.args = {
|
|
||||||
inherit dirs;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Import sub modules
|
# Import sub modules
|
||||||
imports = [
|
imports = map (module: import module {inherit lib pkgs dirs userName userEmail ghostty;}) [
|
||||||
|
./atuin.nix
|
||||||
|
./shell.nix
|
||||||
./packages
|
./packages
|
||||||
|
./git.nix
|
||||||
|
./starship.nix
|
||||||
|
./eza.nix
|
||||||
|
./neovim.nix
|
||||||
|
./direnv.nix
|
||||||
|
./sway.nix
|
||||||
|
./terminal.nix
|
||||||
|
./browser.nix
|
||||||
|
./zellij.nix
|
||||||
|
./bat.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home = lib.mkMerge [
|
# Home Manager needs a bit of information about you and the
|
||||||
{
|
# paths it should manage.
|
||||||
|
home = {
|
||||||
username = userName;
|
username = userName;
|
||||||
homeDirectory =
|
homeDirectory =
|
||||||
if pkgs.stdenv.isDarwin
|
if pkgs.stdenv.isDarwin
|
||||||
then "/Users/${userName}"
|
then "/Users/${userName}"
|
||||||
else "/home/${userName}";
|
else "/home/${userName}";
|
||||||
|
|
||||||
stateVersion = "24.11";
|
|
||||||
}
|
|
||||||
|
|
||||||
(lib.mkIf isNixOS {
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
XDG_CURRENT_DESKTOP = "sway";
|
XDG_CURRENT_DESKTOP = "sway";
|
||||||
XDG_SESSION_TYPE = "wayland";
|
XDG_SESSION_TYPE = "wayland";
|
||||||
@@ -43,17 +48,16 @@ in
|
|||||||
XDG_STATE_HOME = "$HOME/.local/state";
|
XDG_STATE_HOME = "$HOME/.local/state";
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
};
|
};
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf pkgs.stdenv.isLinux {
|
pointerCursor = lib.mkIf pkgs.stdenv.isLinux {
|
||||||
pointerCursor = {
|
|
||||||
gtk.enable = true;
|
gtk.enable = true;
|
||||||
package = pkgs.catppuccin-cursors.mochaDark;
|
package = pkgs.catppuccin-cursors.mochaDark;
|
||||||
name = "catppuccin-mocha-dark-cursors";
|
name = "catppuccin-mocha-dark-cursors";
|
||||||
size = 22;
|
size = 22;
|
||||||
};
|
};
|
||||||
})
|
|
||||||
];
|
stateVersion = "24.11";
|
||||||
|
};
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
a = "add";
|
a = "add";
|
||||||
ap = "add -p";
|
ap = "add -p";
|
||||||
br = "branch";
|
br = "branch";
|
||||||
cb = "checkout -b";
|
|
||||||
co = "checkout";
|
co = "checkout";
|
||||||
st = "status -sb";
|
st = "status -sb";
|
||||||
status = "status -sb";
|
status = "status -sb";
|
||||||
@@ -41,11 +40,6 @@
|
|||||||
ca = "commit -am";
|
ca = "commit -am";
|
||||||
dc = "diff --cached";
|
dc = "diff --cached";
|
||||||
amend = "commit --amend -m";
|
amend = "commit --amend -m";
|
||||||
wipe = "reset --hard";
|
|
||||||
gg = "reset --hard";
|
|
||||||
ggs = "reset --hard";
|
|
||||||
sw = "switch";
|
|
||||||
r = "restore";
|
|
||||||
|
|
||||||
# aliases for submodules
|
# aliases for submodules
|
||||||
update = "submodule update --init --recursive";
|
update = "submodule update --init --recursive";
|
||||||
|
|||||||
32
home/k9s.nix
32
home/k9s.nix
@@ -1,32 +0,0 @@
|
|||||||
{ pkgs, ... }: {
|
|
||||||
programs.k9s = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.k9s;
|
|
||||||
settings.k9s = {
|
|
||||||
refreshRate = "2s";
|
|
||||||
liveViewAutoRefresh = false;
|
|
||||||
apiServerTimeout = "30s";
|
|
||||||
maxConnRetry = 5;
|
|
||||||
readOnly = true;
|
|
||||||
noExitOnCtrlC = false;
|
|
||||||
portForwardAddress = "localhost";
|
|
||||||
skipLatestRevCheck = false;
|
|
||||||
|
|
||||||
skin = {
|
|
||||||
catppuccin-mocha = ../defaults/k9s/catppuccin-mocha.yaml;
|
|
||||||
};
|
|
||||||
|
|
||||||
ui = {
|
|
||||||
skin = "catppuccin-mocha";
|
|
||||||
enableMouse = true;
|
|
||||||
headless = false;
|
|
||||||
logoless = true;
|
|
||||||
crumbsless = false;
|
|
||||||
splashless = true;
|
|
||||||
reactive = false;
|
|
||||||
noIcons = false;
|
|
||||||
defaultsToFullscreen = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{ pkgs, lib, ... }:
|
|
||||||
with pkgs;
|
|
||||||
let
|
|
||||||
plugins = [
|
|
||||||
"krew"
|
|
||||||
"oidc-login"
|
|
||||||
];
|
|
||||||
in {
|
|
||||||
home.activation.krew = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
|
||||||
${lib.concatMapStringsSep "\n" (plugin: ''
|
|
||||||
$DRY_RUN_CMD ${krew}/bin/krew install ${plugin} || true
|
|
||||||
'') plugins}
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
{ pkgs, ... }: {
|
{...}: {
|
||||||
programs.lazygit = {
|
programs.lazygit = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.lazygitLatest;
|
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
gui.theme = {
|
gui.theme = {
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
{...}: let
|
{dirs, ...}: {
|
||||||
dirs = {
|
|
||||||
defaults = ../defaults;
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
|
|||||||
@@ -1,20 +1,11 @@
|
|||||||
{
|
{
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
|
||||||
../atuin.nix
|
|
||||||
../shell.nix
|
|
||||||
../git.nix
|
|
||||||
../starship.nix
|
|
||||||
../eza.nix
|
|
||||||
../neovim.nix
|
|
||||||
../bat.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
yazi # terminal file manager
|
||||||
|
|
||||||
# archives
|
# archives
|
||||||
zip
|
zip
|
||||||
xz
|
xz
|
||||||
@@ -22,21 +13,40 @@
|
|||||||
p7zip
|
p7zip
|
||||||
|
|
||||||
# utils
|
# utils
|
||||||
yazi
|
|
||||||
tmux
|
tmux
|
||||||
|
lazygit
|
||||||
bottom
|
bottom
|
||||||
ripgrep
|
ripgrep
|
||||||
jq
|
jq
|
||||||
yq-go
|
yq-go
|
||||||
fzf
|
fzf
|
||||||
|
fh
|
||||||
aria2
|
aria2
|
||||||
gnupg
|
yt-dlp
|
||||||
|
obsidian
|
||||||
|
vscode
|
||||||
|
weechat
|
||||||
|
inetutils
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
|
cowsay
|
||||||
file
|
file
|
||||||
which
|
which
|
||||||
tree
|
tree
|
||||||
gnutar
|
gnutar
|
||||||
|
gnupg
|
||||||
|
zoxide
|
||||||
babelfish
|
babelfish
|
||||||
|
|
||||||
|
# language-specific package managers
|
||||||
|
nodejs
|
||||||
|
cargo
|
||||||
|
python3
|
||||||
|
|
||||||
|
# nix specific stuff
|
||||||
|
nixd
|
||||||
|
deadnix
|
||||||
|
alejandra
|
||||||
|
statix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
{ lib, pkgs, ... }:
|
{
|
||||||
lib.mkIf pkgs.stdenv.isDarwin {
|
pkgs,
|
||||||
home.packages = with pkgs; [
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = lib.mkIf pkgs.stdenv.isDarwin (with pkgs; [
|
||||||
discord
|
discord
|
||||||
ollama
|
ollama
|
||||||
];
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{ lib, role ? "workstation", ... }:
|
|
||||||
{
|
{
|
||||||
imports =
|
pkgs,
|
||||||
[
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
./common.nix
|
./common.nix
|
||||||
./darwin.nix
|
./darwin.nix
|
||||||
./linux.nix
|
./linux.nix
|
||||||
]
|
];
|
||||||
++ lib.optional (role == "workstation") ./workstation.nix
|
|
||||||
++ lib.optional (role == "server") ./server.nix;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,20 @@
|
|||||||
{ lib, pkgs, isNixOS ? true, ... }:
|
{
|
||||||
lib.mkIf pkgs.stdenv.isLinux {
|
pkgs,
|
||||||
home.packages = with pkgs; [
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = lib.mkIf pkgs.stdenv.isLinux (with pkgs; [
|
||||||
imv
|
imv
|
||||||
xdg-utils
|
betterdiscordctl
|
||||||
] ++ lib.optionals isNixOS [
|
|
||||||
vesktop
|
vesktop
|
||||||
|
xdg-utils
|
||||||
|
mcrcon
|
||||||
xfce.thunar
|
xfce.thunar
|
||||||
pavucontrol
|
pavucontrol
|
||||||
zathura
|
godot
|
||||||
|
aseprite
|
||||||
gpu-screen-recorder
|
gpu-screen-recorder
|
||||||
gpu-screen-recorder-gtk
|
gpu-screen-recorder-gtk
|
||||||
inetutils
|
# ungoogled-chromium
|
||||||
easyeffects
|
]);
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
{ pkgs, ... }: {
|
|
||||||
home.packages = [
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
isNixOS ? true,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
../terminal.nix
|
|
||||||
../browser.nix
|
|
||||||
../zellij.nix
|
|
||||||
../lazygit.nix
|
|
||||||
../k9s.nix
|
|
||||||
../krew.nix
|
|
||||||
../direnv.nix
|
|
||||||
] ++ lib.optional isNixOS ../sway.nix;
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
fh
|
|
||||||
kubectl # kube config is deliberately not included
|
|
||||||
kubectx
|
|
||||||
obsidian
|
|
||||||
vscode
|
|
||||||
yt-dlp
|
|
||||||
weechat
|
|
||||||
nodejs
|
|
||||||
cargo
|
|
||||||
python3
|
|
||||||
nixd
|
|
||||||
deadnix
|
|
||||||
alejandra
|
|
||||||
statix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,32 +1,29 @@
|
|||||||
{pkgs, lib, ...}: {
|
{
|
||||||
programs.fish = {
|
lib,
|
||||||
|
pkgs,
|
||||||
|
userName,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
programs = {
|
||||||
|
fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellInit = ''
|
|
||||||
if test -d $HOME/.krew/bin
|
|
||||||
set -gx PATH $HOME/.krew/bin $PATH
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
# ls aliases
|
# ls aliases
|
||||||
ls = "eza --color";
|
ls = "eza --color";
|
||||||
la = "eza -l -all --color";
|
la = "eza -l -all --color";
|
||||||
ll = "eza -l --color";
|
ll = "eza -l --color";
|
||||||
lt = "eza -l --color --git";
|
lt = "eza -l --color --git";
|
||||||
|
|
||||||
# lazygit alias
|
# lazygit alias
|
||||||
lg = "lazygit";
|
lg = "lazygit";
|
||||||
|
|
||||||
# cat, less, more alias
|
# cat, less, more alias
|
||||||
cat = "bat";
|
cat = "bat";
|
||||||
less = "bat";
|
less = "bat";
|
||||||
more = "bat";
|
more = "bat";
|
||||||
|
|
||||||
# top alias
|
# top alias
|
||||||
top = "btm";
|
top = "btm";
|
||||||
};
|
};
|
||||||
|
functions =
|
||||||
functions = {
|
{
|
||||||
fish_greeting = {
|
fish_greeting = {
|
||||||
body = ''
|
body = ''
|
||||||
set memes \
|
set memes \
|
||||||
@@ -58,51 +55,47 @@
|
|||||||
"The sun is setting, darkness taking over - a date with chaos and you're dressed to the nines" \
|
"The sun is setting, darkness taking over - a date with chaos and you're dressed to the nines" \
|
||||||
"Now kneel overdweller, your lord commands, there's no salvation for the sons of man" \
|
"Now kneel overdweller, your lord commands, there's no salvation for the sons of man" \
|
||||||
"Snap click clank whirr whizz wham boom!" \
|
"Snap click clank whirr whizz wham boom!" \
|
||||||
"Rohs an kyn ala na" \
|
"Rohs an kyn ala na"
|
||||||
"If you’ve brought your ivory standard, I’ll be happy to tell you where you can stick it" \
|
|
||||||
"Speeches? Oh, yes, I love them. There's nothing like a good exposition when you're having trouble sleeping!" \
|
|
||||||
"Somehow, the boy just isn't very buoyant" \
|
|
||||||
"I am...not interested, little sun. Try again when you have become a man" \
|
|
||||||
"I am rightousness! And rightousness shall previal!" \
|
|
||||||
"Ahhh such bliss!" \
|
|
||||||
"The gods themselves will be my meal. Your dear companions my dessert. Upon this world I'll feast, and death shall follow in my wake. All your hate, all your rage, you will render unto me." \
|
|
||||||
"Boring, boring, boring" \
|
|
||||||
"Would you be 'happier' had I a 'good reason'?" \
|
|
||||||
"A test of your reflexes!"
|
|
||||||
|
|
||||||
|
|
||||||
set choose_meme (random)"%"(count $memes)
|
set choose_meme (random)"%"(count $memes)
|
||||||
set choose_meme $memes[(math $choose_meme"+1")]
|
set choose_meme $memes[(math $choose_meme"+1")]
|
||||||
|
|
||||||
printf (set_color F90)"%s\n" $choose_meme
|
printf (set_color F90)"%s\n" $choose_meme
|
||||||
'';
|
'';
|
||||||
onEvent = "fish_greeting";
|
# onEvent = "fish_greeting";
|
||||||
};
|
};
|
||||||
} // lib.optionalAttrs pkgs.stdenv.isLinux {
|
} // (lib.mkIf pkgs.stdenv.isLinux {
|
||||||
block = {
|
block = {
|
||||||
body = ''
|
body = ''
|
||||||
systemd-inhibit --what=sleep --who="$USER" --why="manual invocation" --mode=block sleep infinity &
|
echo "Starting systemd-inhibit..."
|
||||||
set -g INHIBIT_PID $last_pid
|
set inhibit_pid_file /tmp/fish_inhibit_pid_(whoami)
|
||||||
echo "Sleep inhibited. PID: $INHIBIT_PID"
|
bash -c 'systemd-inhibit --no-ask-password --what=idle --who="'${userName}'" --why="manual invocation" sh & echo $! > '"$inhibit_pid_file"' && disown'
|
||||||
'';
|
if test -f $inhibit_pid_file
|
||||||
};
|
set -g INHIBIT_PID (cat $inhibit_pid_file)
|
||||||
|
echo "Inhibit process started with PID: $INHIBIT_PID"
|
||||||
unblock = {
|
|
||||||
body = ''
|
|
||||||
if set -q INHIBIT_PID
|
|
||||||
kill $INHIBIT_PID 2>/dev/null
|
|
||||||
and echo "Sleep inhibitor removed. PID: $INHIBIT_PID"
|
|
||||||
or echo "Failed to kill process or already terminated."
|
|
||||||
set -e INHIBIT_PID
|
|
||||||
else
|
else
|
||||||
echo "No active sleep inhibitor found."
|
echo "Failed to start inhibit process"
|
||||||
|
return 1
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
unblock = {
|
||||||
|
body = ''
|
||||||
|
set inhibit_pid_file /tmp/fish_inhibit_pid_(whoami)
|
||||||
|
if test -f $inhibit_pid_file
|
||||||
|
set INHIBIT_PID (cat $inhibit_pid_file)
|
||||||
|
echo "Killing inhibit process: $INHIBIT_PID"
|
||||||
|
kill -SIGTERM $INHIBIT_PID 2>/dev/null; or kill -SIGKILL $INHIBIT_PID 2>/dev/null
|
||||||
|
rm -f $inhibit_pid_file
|
||||||
|
set -e INHIBIT_PID
|
||||||
|
echo "Inhibit process terminated"
|
||||||
|
else
|
||||||
|
echo "No inhibit process file found"
|
||||||
|
end
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
zsh = {
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
initContent = ''
|
initContent = ''
|
||||||
if [[ -z "$BASH_EXECUTION_STRING" ]]; then
|
if [[ -z "$BASH_EXECUTION_STRING" ]]; then
|
||||||
@@ -115,8 +108,7 @@
|
|||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
bash = {
|
||||||
programs.bash = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
if [[ -z "$BASH_EXECUTION_STRING" ]]; then
|
if [[ -z "$BASH_EXECUTION_STRING" ]]; then
|
||||||
@@ -129,4 +121,5 @@
|
|||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
swaytreesave,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
dirs = {
|
dirs = {
|
||||||
@@ -16,12 +15,6 @@
|
|||||||
hash = "sha256-ZDFbI69ECsUTjbhlw2kHRufZbQMu+FQSMmncCJ5pagg=";
|
hash = "sha256-ZDFbI69ECsUTjbhlw2kHRufZbQMu+FQSMmncCJ5pagg=";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
imports = [
|
|
||||||
swaytreesave.homeManagerModules.default
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.swaytreesave.enable = if pkgs.stdenv.isLinux then true else false;
|
|
||||||
|
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = pkgs.stdenv.isLinux;
|
enable = pkgs.stdenv.isLinux;
|
||||||
extraOptions = []; # Extra arguments to pass into sway. If sway goes haywire, we might need something in here
|
extraOptions = []; # Extra arguments to pass into sway. If sway goes haywire, we might need something in here
|
||||||
@@ -155,5 +148,4 @@ in {
|
|||||||
enable = pkgs.stdenv.isLinux;
|
enable = pkgs.stdenv.isLinux;
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }: {
|
{ lib, pkgs, ghostty, ... }: {
|
||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
enable = pkgs.stdenv.isLinux;
|
enable = pkgs.stdenv.isLinux;
|
||||||
settings = {
|
settings = {
|
||||||
@@ -103,4 +103,9 @@
|
|||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = false; # TODO: to enable later
|
enable = false; # TODO: to enable later
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.packages = if pkgs.stdenv.isLinux then
|
||||||
|
[ ghostty.packages.${pkgs.system}.default ]
|
||||||
|
else
|
||||||
|
[ ];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,16 +2,10 @@
|
|||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
aagl,
|
|
||||||
vintage-story,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.gaming;
|
cfg = config.gaming;
|
||||||
in {
|
in {
|
||||||
imports = [
|
|
||||||
aagl.nixosModules.default
|
|
||||||
];
|
|
||||||
|
|
||||||
options.gaming = {
|
options.gaming = {
|
||||||
steam = {
|
steam = {
|
||||||
enable = lib.mkEnableOption "Steam gaming platform";
|
enable = lib.mkEnableOption "Steam gaming platform";
|
||||||
@@ -68,14 +62,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
vkbasalt = {
|
|
||||||
enable = lib.mkEnableOption "vkBasalt/ReShade/GShade post processing shaders";
|
|
||||||
};
|
|
||||||
|
|
||||||
mangohud = {
|
|
||||||
enable = lib.mkEnableOption "OpenGL/Vulkan overlay tool shown in games presenting FPS, CPU/GPU/memory utilization, load, etc.";
|
|
||||||
};
|
|
||||||
|
|
||||||
lutris = {
|
lutris = {
|
||||||
enable = lib.mkEnableOption "Lutris game manager and launcher";
|
enable = lib.mkEnableOption "Lutris game manager and launcher";
|
||||||
package = lib.mkOption {
|
package = lib.mkOption {
|
||||||
@@ -122,38 +108,9 @@ in {
|
|||||||
ffxiv = {
|
ffxiv = {
|
||||||
enable = lib.mkEnableOption "Final Fantasy XIV and it's accompanied (unofficial) launcher";
|
enable = lib.mkEnableOption "Final Fantasy XIV and it's accompanied (unofficial) launcher";
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: when aagl gets it's unified launcher all finished/in a stable state, transition to that launcher
|
|
||||||
aagl = {
|
|
||||||
anime-game-launcher = {
|
|
||||||
enable = lib.mkEnableOption "Genshin Impact launcher (legacy)";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
honkers-railway-launcher = {
|
config = {
|
||||||
enable = lib.mkEnableOption "Honkai: Star Rail launcher";
|
|
||||||
};
|
|
||||||
|
|
||||||
honkers-launcher = {
|
|
||||||
enable = lib.mkEnableOption "Honkai: Impact 3rd launcher";
|
|
||||||
};
|
|
||||||
|
|
||||||
wavey-launcher = {
|
|
||||||
enable = lib.mkEnableOption "Wuthering Waves launcher";
|
|
||||||
};
|
|
||||||
|
|
||||||
sleepy-launcher = {
|
|
||||||
enable = lib.mkEnableOption "Zenless Zone Zero (ZZZ) launcher";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
vintage-story = {
|
|
||||||
enable = lib.mkEnableOption "Vintage Story client and server";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = let
|
|
||||||
agl = cfg.aagl;
|
|
||||||
in {
|
|
||||||
programs.steam = lib.mkIf cfg.steam.enable {
|
programs.steam = lib.mkIf cfg.steam.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = cfg.steam.firewall.remotePlay;
|
remotePlay.openFirewall = cfg.steam.firewall.remotePlay;
|
||||||
@@ -182,26 +139,6 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.anime-game-launcher = lib.mkIf agl.anime-game-launcher.enable {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.honkers-railway-launcher = lib.mkIf agl.honkers-railway-launcher.enable {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.honkers-launcher = lib.mkIf agl.honkers-launcher.enable {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.wavey-launcher = lib.mkIf agl.wavey-launcher.enable {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.sleepy-launcher = lib.mkIf agl.sleepy-launcher.enable {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
(lib.optionals cfg.lutris.enable (
|
(lib.optionals cfg.lutris.enable (
|
||||||
[cfg.lutris.package] ++
|
[cfg.lutris.package] ++
|
||||||
@@ -217,20 +154,6 @@ in {
|
|||||||
cfg.lutris.extraPackages
|
cfg.lutris.extraPackages
|
||||||
)) ++
|
)) ++
|
||||||
(lib.optionals cfg.minecraft.enable [pkgs.prismlauncher]) ++
|
(lib.optionals cfg.minecraft.enable [pkgs.prismlauncher]) ++
|
||||||
(lib.optionals cfg.ffxiv.enable [pkgs.xivlauncher pkgs.fflogs]) ++
|
(lib.optionals cfg.ffxiv.enable [pkgs.xivlauncher]);
|
||||||
(lib.optionals cfg.vintage-story.enable [vintage-story.packages.${pkgs.system}.default]) ++
|
|
||||||
(lib.optionals cfg.vkbasalt.enable [pkgs.vkbasalt pkgs.vkbasalt-cli]) ++
|
|
||||||
(lib.optionals cfg.mangohud.enable [pkgs.mangohud]) ++
|
|
||||||
(lib.optionals (cfg.vkbasalt.enable || cfg.mangohud.enable) [pkgs.goverlay pkgs.mesa-demos pkgs.vulkan-tools]);
|
|
||||||
|
|
||||||
nix.settings = let
|
|
||||||
inherit agl;
|
|
||||||
in (lib.mkIf
|
|
||||||
(agl.anime-game-launcher.enable || agl.honkers-railway-laucher.enable || agl.honkers-launcher.enable || agl.wavey-launcher.enable || agl.sleepy-launcher.enable)
|
|
||||||
{
|
|
||||||
substituters = [ "https://ezkea.cachix.org" ];
|
|
||||||
trusted-public-keys = [ "ezkea.cachix.org-1:ioBmUbJTZIKsHmWWXPe1FSFbeVe+afhfgqgTSNd34eI=" ];
|
|
||||||
}
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,11 +7,3 @@ Licensed by the Mozilla Public License v2
|
|||||||
## Synopsis
|
## Synopsis
|
||||||
|
|
||||||
This is the directory that holds shared configuration files amongst computers that I own. They are called by the root `flake.nix` file.
|
This is the directory that holds shared configuration files amongst computers that I own. They are called by the root `flake.nix` file.
|
||||||
|
|
||||||
Here's a quick synopsis of each file:
|
|
||||||
|
|
||||||
- core: Sane Nix options that I set for myself
|
|
||||||
- environment: Core packages and environment variables to be set and installed
|
|
||||||
- fonts: Fonts and icons that are to be installed
|
|
||||||
- overlays: Customized packages tailored to my needs
|
|
||||||
- users: Users to be set on my system
|
|
||||||
|
|||||||
@@ -8,9 +8,6 @@
|
|||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
|
||||||
"mbedtls-2.28.10"
|
|
||||||
];
|
|
||||||
|
|
||||||
nix.package = pkgs.nix;
|
nix.package = pkgs.nix;
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
{ ... }: {
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./core.nix
|
./core.nix
|
||||||
./environment.nix
|
./environment.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
# ./overlays.nix
|
|
||||||
./users.nix
|
./users.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,22 +1,20 @@
|
|||||||
{ lib, pkgs, ... }: {
|
{ lib, pkgs, ... }: {
|
||||||
|
# Common packages that every system will use
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git
|
git
|
||||||
vim
|
vim
|
||||||
neovim
|
neovim
|
||||||
usbutils
|
usbutils
|
||||||
coreutils
|
coreutils
|
||||||
|
lshw
|
||||||
|
systemd
|
||||||
|
dmidecode
|
||||||
pciutils
|
pciutils
|
||||||
|
nix-ld
|
||||||
patchelf
|
patchelf
|
||||||
htop
|
htop
|
||||||
] ++
|
];
|
||||||
lib.optionals pkgs.stdenv.isLinux (with pkgs; [
|
|
||||||
systemd
|
|
||||||
lshw
|
|
||||||
dmidecode
|
|
||||||
]) ++
|
|
||||||
lib.optionals pkgs.stdenv.isDarwin (with pkgs; [
|
|
||||||
# nothing here, yet ;)
|
|
||||||
]);
|
|
||||||
|
|
||||||
|
# Common environment variables that every system will use
|
||||||
environment.variables.EDITOR = "nvim";
|
environment.variables.EDITOR = "nvim";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,14 +6,10 @@
|
|||||||
fonts.packages = with pkgs;
|
fonts.packages = with pkgs;
|
||||||
[
|
[
|
||||||
noto-fonts
|
noto-fonts
|
||||||
noto-fonts-color-emoji
|
noto-fonts-emoji
|
||||||
liberation_ttf
|
liberation_ttf
|
||||||
noto-fonts-cjk-sans
|
noto-fonts-cjk-sans
|
||||||
monaspace
|
monaspace
|
||||||
]
|
]
|
||||||
++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
|
++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
adwaita-icon-theme
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,62 +0,0 @@
|
|||||||
{ pkgs, ... }: {
|
|
||||||
programs.nix-ld = {
|
|
||||||
enable = true;
|
|
||||||
libraries = with pkgs;
|
|
||||||
[
|
|
||||||
acl
|
|
||||||
attr
|
|
||||||
bzip2
|
|
||||||
dbus
|
|
||||||
expat
|
|
||||||
fontconfig
|
|
||||||
freetype
|
|
||||||
fuse3
|
|
||||||
icu
|
|
||||||
libnotify
|
|
||||||
libsodium
|
|
||||||
libssh
|
|
||||||
libunwind
|
|
||||||
libusb1
|
|
||||||
libuuid
|
|
||||||
nspr
|
|
||||||
nss
|
|
||||||
stdenv.cc.cc
|
|
||||||
util-linux
|
|
||||||
zlib
|
|
||||||
zstd
|
|
||||||
pipewire
|
|
||||||
cups
|
|
||||||
libxkbcommon
|
|
||||||
pango
|
|
||||||
mesa
|
|
||||||
libdrm
|
|
||||||
libglvnd
|
|
||||||
libpulseaudio
|
|
||||||
atk
|
|
||||||
cairo
|
|
||||||
alsa-lib
|
|
||||||
at-spi2-atk
|
|
||||||
at-spi2-core
|
|
||||||
gdk-pixbuf
|
|
||||||
glib
|
|
||||||
gtk3
|
|
||||||
libGL
|
|
||||||
libappindicator-gtk3
|
|
||||||
vulkan-loader
|
|
||||||
xorg.libX11
|
|
||||||
xorg.libXScrnSaver
|
|
||||||
xorg.libXcomposite
|
|
||||||
xorg.libXcursor
|
|
||||||
xorg.libXdamage
|
|
||||||
xorg.libXext
|
|
||||||
xorg.libXfixes
|
|
||||||
xorg.libXi
|
|
||||||
xorg.libXrandr
|
|
||||||
xorg.libXrender
|
|
||||||
xorg.libXtst
|
|
||||||
xorg.libxcb
|
|
||||||
xorg.libxkbfile
|
|
||||||
xorg.libxshmfence
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
final: prev: let
|
|
||||||
# Use latest rust from overlay which should work on non-NixOS
|
|
||||||
rust_latest = prev.rust-bin.stable.latest.default;
|
|
||||||
myRustPlatform = prev.makeRustPlatform {
|
|
||||||
cargo = rust_latest;
|
|
||||||
rustc = rust_latest;
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
lazygitLatest = prev.lazygit.overrideAttrs (_: rec {
|
|
||||||
version = "0.55.1";
|
|
||||||
src = prev.fetchFromGitHub {
|
|
||||||
owner = "jesseduffield";
|
|
||||||
repo = "lazygit";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-UofhgILZhVXnYiGpb25m4Ct4sbu5pRmjVgj3oEf5Uyk=";
|
|
||||||
};
|
|
||||||
vendorHash = null;
|
|
||||||
subPackages = [ "." ];
|
|
||||||
ldflags = [
|
|
||||||
"-X main.version=${version}"
|
|
||||||
"-X main.buildSource=nix"
|
|
||||||
];
|
|
||||||
});
|
|
||||||
|
|
||||||
atuinLatest = (prev.atuin.override {
|
|
||||||
rustPlatform = myRustPlatform;
|
|
||||||
}).overrideAttrs (oldAttrs: rec {
|
|
||||||
version = "18.10.0";
|
|
||||||
|
|
||||||
src = prev.fetchFromGitHub {
|
|
||||||
owner = "atuinsh";
|
|
||||||
repo = "atuin";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-bfSa3RtVXxHt3usDqqpE/oXKKDUZOrf+tD9uL59fr6M=";
|
|
||||||
};
|
|
||||||
|
|
||||||
cargoDeps = myRustPlatform.fetchCargoVendor {
|
|
||||||
# name = "atuin-${version}-vendor.tar.gz";
|
|
||||||
inherit src;
|
|
||||||
hash = "sha256-67ffivZVCly1GWA3fJ9mT8nGv2EGd6eCthbaIu/IW3M=";
|
|
||||||
};
|
|
||||||
|
|
||||||
preCheck = (oldAttrs.preCheck or "") + ''
|
|
||||||
export HOME="$TMPDIR"
|
|
||||||
export XDG_CONFIG_HOME="$TMPDIR/.config"
|
|
||||||
export XDG_DATA_HOME="$TMPDIR/.local/share"
|
|
||||||
export XDG_STATE_HOME="$TMPDIR/.local/state"
|
|
||||||
mkdir -p "$XDG_CONFIG_HOME" "$XDG_DATA_HOME" "$XDG_STATE_HOME"
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
|
|
||||||
# k9sLatest = prev.k9s.overrideAttrs (oldAttrs: rec {
|
|
||||||
# version = "0.30.16";
|
|
||||||
# src = prev.fetchFromGitHub {
|
|
||||||
# owner = "derailed";
|
|
||||||
# repo = "k9s";
|
|
||||||
# rev = "v${version}";
|
|
||||||
# hash = "sha256-1z6r6v3n1p6vd2q6n4pl5q3f7q3q7q1p7j5j1k3l4m5n6o7p8q9r";
|
|
||||||
# };
|
|
||||||
# ldflags = [
|
|
||||||
# "-X github.com/derailed/k9s/version.Version=${version}"
|
|
||||||
# "-X github.com/derailed/k9s/version.BuildSource=nix"
|
|
||||||
# ];
|
|
||||||
# });
|
|
||||||
}
|
|
||||||
@@ -1,23 +1,30 @@
|
|||||||
{ lib, pkgs, userName, hostname, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
userName,
|
||||||
|
hostname,
|
||||||
|
...
|
||||||
|
} @ args: {
|
||||||
networking.hostName = hostname;
|
networking.hostName = hostname;
|
||||||
|
|
||||||
users.users."${userName}" = {
|
# Don't forget to set a password with ‘passwd’!
|
||||||
home = if pkgs.stdenv.isDarwin
|
users.users."${userName}" = lib.mkMerge [
|
||||||
|
{
|
||||||
|
home =
|
||||||
|
if pkgs.stdenv.isDarwin
|
||||||
then "/Users/${userName}"
|
then "/Users/${userName}"
|
||||||
else "/home/${userName}";
|
else "/home/${userName}";
|
||||||
description = userName;
|
description = userName;
|
||||||
} // lib.optionalAttrs pkgs.stdenv.isLinux {
|
}
|
||||||
|
|
||||||
|
(lib.mkIf (pkgs.stdenv.isLinux) {
|
||||||
group = "${userName}";
|
group = "${userName}";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
};
|
})
|
||||||
|
];
|
||||||
|
|
||||||
users.groups.wyatt = {};
|
security.sudo = {
|
||||||
nix.settings.trusted-users = [userName];
|
extraRules = [
|
||||||
|
|
||||||
security = lib.optionalAttrs pkgs.stdenv.isLinux {
|
|
||||||
sudo.extraRules = [
|
|
||||||
{
|
{
|
||||||
groups = [ "wheel" ];
|
groups = [ "wheel" ];
|
||||||
commands = [
|
commands = [
|
||||||
@@ -30,9 +37,7 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment = lib.optionalAttrs pkgs.stdenv.isDarwin {
|
users.groups.wyatt = {};
|
||||||
etc."sudoers.d/wheel-nopasswd".text = ''
|
|
||||||
%wheel ALL=(ALL:ALL) NOPASSWD: SETENV: ALL
|
nix.settings.trusted-users = [userName];
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ in {
|
|||||||
config = mkIf cfg.enable (mkMerge [
|
config = mkIf cfg.enable (mkMerge [
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
glxinfo
|
||||||
vulkan-tools
|
vulkan-tools
|
||||||
mesa-demos
|
mesa-demos
|
||||||
];
|
];
|
||||||
@@ -61,9 +62,9 @@ in {
|
|||||||
|
|
||||||
(mkIf (cfg.gpuVendor == "amd") {
|
(mkIf (cfg.gpuVendor == "amd") {
|
||||||
services.xserver.videoDrivers = ["amdgpu"];
|
services.xserver.videoDrivers = ["amdgpu"];
|
||||||
# hardware.graphics.extraPackages = with pkgs; [
|
hardware.graphics.extraPackages = with pkgs; [
|
||||||
# amdvlk
|
amdvlk
|
||||||
# ];
|
];
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
radeontop
|
radeontop
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -10,10 +10,6 @@ I like Final Fantasy, alright? Isn't everyone supposed to have a hobby?
|
|||||||
|
|
||||||
These are named after Final Fantasy VII characters.
|
These are named after Final Fantasy VII characters.
|
||||||
|
|
||||||
### Servers/Network Infrastructure (bare metal)
|
### Servers/Network Infrastructure
|
||||||
|
|
||||||
These are named after Final Fantasy summons. There is some infrastructure missing here like my routers and switches that I also name after summons.
|
These are named after Final Fantasy summons.
|
||||||
|
|
||||||
### Servers/Network Infrastructure (virtual machines)
|
|
||||||
|
|
||||||
These are named after Final Fantasy XIV Online characters (currently, these are named after the Scions of the Seventh Dawn).
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
userName,
|
userName,
|
||||||
aagl,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
flatpakPackages = [
|
flatpakPackages = [
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(import ../../apps/flatpak.nix {
|
(import ../../apps/flatpak.nix {
|
||||||
inherit lib pkgs flatpakPackages userName aagl;
|
inherit lib pkgs flatpakPackages;
|
||||||
})
|
})
|
||||||
../../apps/gaming.nix
|
../../apps/gaming.nix
|
||||||
../../apps/appimage.nix
|
../../apps/appimage.nix
|
||||||
@@ -89,10 +89,8 @@ in {
|
|||||||
localNetworkGameTransfers = true;
|
localNetworkGameTransfers = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
vkbasalt.enable = true;
|
|
||||||
gamemode.enable = true;
|
gamemode.enable = true;
|
||||||
gamescope.enable = true;
|
gamescope.enable = true;
|
||||||
mangohud.enable = true;
|
|
||||||
lutris = {
|
lutris = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wine = {
|
wine = {
|
||||||
@@ -102,12 +100,14 @@ in {
|
|||||||
compatibility = {
|
compatibility = {
|
||||||
protonSupport = true;
|
protonSupport = true;
|
||||||
};
|
};
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
gamemode
|
||||||
|
mangohud
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
ffxiv.enable = true;
|
ffxiv.enable = true;
|
||||||
minecraft.enable = true;
|
minecraft.enable = true;
|
||||||
aagl.anime-game-launcher.enable = true;
|
|
||||||
vintage-story.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Power management (see ../../pwrMgmt/default.nix)
|
# Power management (see ../../pwrMgmt/default.nix)
|
||||||
@@ -151,7 +151,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Add username to groups "wheel" and "video" - more may be added here later
|
# Add username to groups "wheel" and "video" - more may be added here later
|
||||||
users.users.${userName}.extraGroups = ["wheel" "video" "gamemode" "podman" "network" "libvirtd"];
|
users.users.${userName}.extraGroups = ["wheel" "video" "gamemode" "podman" "network"];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
# Enable OpenSSH
|
# Enable OpenSSH
|
||||||
@@ -191,23 +191,5 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# sched_ext userspace CPU scheduling stuff - idk
|
|
||||||
services.scx = {
|
|
||||||
enable = true;
|
|
||||||
scheduler = "scx_bpfland";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.obs-studio = {
|
|
||||||
enable = true;
|
|
||||||
plugins = with pkgs.obs-studio-plugins; [
|
|
||||||
wlrobs
|
|
||||||
obs-backgroundremoval
|
|
||||||
obs-pipewire-audio-capture
|
|
||||||
obs-vaapi #optional AMD hardware acceleration
|
|
||||||
obs-gstreamer
|
|
||||||
obs-vkcapture
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,5 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../common/linker.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,24 +12,24 @@
|
|||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "ahci" "usb_storage" "usbhid" "sd_mod"];
|
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
|
||||||
boot.initrd.kernelModules = [];
|
boot.initrd.kernelModules = [];
|
||||||
boot.kernelModules = ["kvm-amd"];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-uuid/f8f39aae-61d2-437d-a8e1-01066bbb3c5c";
|
device = "/dev/disk/by-label/COMPUTER";
|
||||||
fsType = "xfs";
|
fsType = "xfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
device = "/dev/disk/by-uuid/B72F-087F";
|
device = "/dev/disk/by-label/BOOT";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = ["fmask=0022" "dmask=0022"];
|
options = ["fmask=0022" "dmask=0022"];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{device = "/dev/disk/by-uuid/6d6bcc02-20a9-4ae8-9c1e-5124fb2b2634";}
|
{device = "/dev/disk/by-label/SWAP";}
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
|||||||
@@ -1,121 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
userName,
|
|
||||||
vintage-story,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
../../pwrMgmt
|
|
||||||
../../networking/core.nix
|
|
||||||
../../virtualization/podman.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enable flakes for NixOS
|
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
|
||||||
|
|
||||||
# Custom kernel/boot stuff
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
|
|
||||||
# Set your timezone
|
|
||||||
time.timeZone = "America/Detroit";
|
|
||||||
|
|
||||||
# Enable OpenSSH
|
|
||||||
services.openssh.enable = true;
|
|
||||||
|
|
||||||
# Enable keyring
|
|
||||||
services.gnome.gnome-keyring.enable = true;
|
|
||||||
|
|
||||||
# Enable GnuPG
|
|
||||||
programs.gnupg.agent = {
|
|
||||||
enable = true;
|
|
||||||
enableSSHSupport = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable SUID wrappers (some programs need them)
|
|
||||||
programs.mtr.enable = true;
|
|
||||||
|
|
||||||
# Enable Polkit
|
|
||||||
security.polkit.enable = true;
|
|
||||||
|
|
||||||
# Power management (see ../../pwrMgmt/default.nix)
|
|
||||||
pwrMgmt = {
|
|
||||||
enable = true;
|
|
||||||
cpuFreqGovernor = "performance";
|
|
||||||
powertop.enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
network = {
|
|
||||||
firewall = {
|
|
||||||
enable = true;
|
|
||||||
tcpPorts = {
|
|
||||||
allowedPorts = [ 42420 ];
|
|
||||||
};
|
|
||||||
udpPorts = {
|
|
||||||
allowedPorts = [ 42420 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
networkManager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = [
|
|
||||||
vintage-story.packages.${pkgs.system}.default
|
|
||||||
];
|
|
||||||
|
|
||||||
systemd.services.vintagestory-server = {
|
|
||||||
description = "Vintage Story Server";
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
after = [ "network.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "simple";
|
|
||||||
User = userName;
|
|
||||||
WorkingDirectory = "/home/${userName}";
|
|
||||||
ExecStart = "${vintage-story.packages.${pkgs.system}.default}/bin/vintagestory-server";
|
|
||||||
Restart = "on-failure";
|
|
||||||
RestartSec = "5s";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Add username to groups "wheel" and "video" - more may be added here later
|
|
||||||
users = {
|
|
||||||
groups.hazel = {};
|
|
||||||
users = {
|
|
||||||
${userName} = {
|
|
||||||
extraGroups = [ "wheel" "network" ];
|
|
||||||
openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFV9eSc9L+aJLoKoexq2f/jb5rpyZnhuGiyhS8YQAbaS wyatt@wyattjmiller.com"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4WKvKnnYpTbzZHFEslOKyfiiMqWxhW3AfX6E7ACmYU wyatt@wyattjmiller.com"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"hazel" = {
|
|
||||||
home = "/home/hazel";
|
|
||||||
group = "hazel";
|
|
||||||
extraGroups = [ "wheel" ];
|
|
||||||
description = "hazel";
|
|
||||||
isNormalUser = true;
|
|
||||||
openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDZnyiQx+k1ygX8E1lsUCB6aTdMc+OKzlZ4admlzknc5ulj0YrtUyqhbNhkNd6pP0QDBFMnXO/rzUvHp4TAyZXKFfpcBCa4zhK97ufymAfvzAjM4vRBqRNcr2n+2iRzxtolbklfjs3ocBQVxXW+pRT5wWxTgK2fcmP2xviDVldr7qte37x5YkQb5SAhYNH8tqJRnuGPe+Q0A3oN4HyHZFnrMq/HlbL5yg/0VKPTtF/IgHf+2dDz5OQQpBx3/N9u/QLwuIm9lkyOG03s0TGmE7up/i0jX2vIqp2BbGSnwdQEL/eSVZx73qQB/J62VFafg13P5yQWDJ33WSoiwhac6bg26HPmPOnCJp5R3c+7jM8N1F1ZbtsKicHSVsRg1RQSree4lchPy7FOPkCuUrB7LNE71mbpOzZNR767S6UAPaXxRw6QNYGBaDqQBwhlU8ZDF5F7EW6ahSUMOI6ECyoibzIMb56xs9osuNeUhB/BcL5sHSFpJjIbdcDLNkEKggrBl6s="
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.fail2ban = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.fail2ban;
|
|
||||||
maxretry = 5;
|
|
||||||
bantime = "3h";
|
|
||||||
bantime-increment = {
|
|
||||||
enable = true;
|
|
||||||
rndtime = "10m";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.tailscale = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.tailscale;
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
imports = [
|
|
||||||
./configuration.nix
|
|
||||||
./hardware-configuration.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
fileSystems."/" =
|
|
||||||
{ device = "/dev/disk/by-uuid/e2e621c1-0090-472a-99d9-61c6a87bd068";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-uuid/663E-15C0";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices =
|
|
||||||
[ { device = "/dev/disk/by-uuid/60104b1a-4285-4dd1-be5e-3c3dee24515a"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
}
|
|
||||||
@@ -1,271 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
userName,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
# INFO: set these to your liking
|
|
||||||
matrixFqdn = "chat.wyattjmiller.com";
|
|
||||||
rtcFqdn = "rtc.wyattjmiller.com";
|
|
||||||
|
|
||||||
supportEmail = "wyatt@wyattjmiller.com";
|
|
||||||
livekitKeyFile = "/var/lib/livekit/livekit.key";
|
|
||||||
matrixRegistrationTokenFile = "/var/lib/matrix.key";
|
|
||||||
in {
|
|
||||||
imports = [
|
|
||||||
../../pwrMgmt
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enable flakes for NixOS
|
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
|
||||||
|
|
||||||
nix.settings = {
|
|
||||||
download-buffer-size = 134217728; # 128 MiB in bytes
|
|
||||||
};
|
|
||||||
|
|
||||||
# Custom kernel/boot stuff
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
# Set your timezone
|
|
||||||
time.timeZone = "America/Detroit";
|
|
||||||
|
|
||||||
# Enable OpenSSH
|
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
settings.PermitRootLogin = "no";
|
|
||||||
settings.PasswordAuthentication = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable keyring
|
|
||||||
services.gnome.gnome-keyring.enable = true;
|
|
||||||
|
|
||||||
# Enable GnuPG
|
|
||||||
programs.gnupg.agent = {
|
|
||||||
enable = true;
|
|
||||||
enableSSHSupport = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable SUID wrappers (some programs need them)
|
|
||||||
programs.mtr.enable = true;
|
|
||||||
|
|
||||||
# Enable Polkit
|
|
||||||
security.polkit.enable = true;
|
|
||||||
|
|
||||||
# Power management (see ../../pwrMgmt/default.nix)
|
|
||||||
pwrMgmt = {
|
|
||||||
enable = true;
|
|
||||||
cpuFreqGovernor = "performance";
|
|
||||||
powertop.enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Firewall settings (fallback, upstream way of doing things)
|
|
||||||
networking.firewall = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
allowedTCPPorts = [
|
|
||||||
80
|
|
||||||
443
|
|
||||||
8448
|
|
||||||
3478
|
|
||||||
5349
|
|
||||||
7880
|
|
||||||
7881
|
|
||||||
8080
|
|
||||||
8081
|
|
||||||
];
|
|
||||||
|
|
||||||
allowedUDPPorts = [
|
|
||||||
3478
|
|
||||||
7881
|
|
||||||
8448
|
|
||||||
];
|
|
||||||
|
|
||||||
allowedUDPPortRanges =[
|
|
||||||
# TURN UDP relays
|
|
||||||
{
|
|
||||||
from = 49000;
|
|
||||||
to = 50000;
|
|
||||||
}
|
|
||||||
#
|
|
||||||
{
|
|
||||||
from = 50100;
|
|
||||||
to = 50200;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Add username to groups "wheel" and "video" - more may be added here later
|
|
||||||
users.users.${userName} = {
|
|
||||||
openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFV9eSc9L+aJLoKoexq2f/jb5rpyZnhuGiyhS8YQAbaS wyatt@wyattjmiller.com"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4WKvKnnYpTbzZHFEslOKyfiiMqWxhW3AfX6E7ACmYU wyatt@wyattjmiller.com"
|
|
||||||
];
|
|
||||||
extraGroups = ["wheel" "video" "network"];
|
|
||||||
};
|
|
||||||
|
|
||||||
# fail2ban
|
|
||||||
services.fail2ban = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.fail2ban;
|
|
||||||
maxretry = 5;
|
|
||||||
bantime = "3h";
|
|
||||||
bantime-increment = {
|
|
||||||
enable = true;
|
|
||||||
rndtime = "10m";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Matrix server
|
|
||||||
services.matrix-tuwunel = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.matrix-tuwunel;
|
|
||||||
settings = {
|
|
||||||
global = {
|
|
||||||
server_name = matrixFqdn;
|
|
||||||
allow_encryption = true;
|
|
||||||
allow_federation = true;
|
|
||||||
allow_registration = true;
|
|
||||||
registration_token = matrixRegistrationTokenFile;
|
|
||||||
allow_unstable_room_versions = false;
|
|
||||||
allow_experimental_room_versions = false;
|
|
||||||
zstd_compression = true;
|
|
||||||
new_user_displayname_suffix = "✨";
|
|
||||||
max_request_size = 1048575600; # 100MB in bytes, for file uploads
|
|
||||||
database_backup_path = "/var/lib/tuwunel/database_backups";
|
|
||||||
database_backups_to_keep = 2;
|
|
||||||
|
|
||||||
address = [
|
|
||||||
"127.0.0.1"
|
|
||||||
"::1"
|
|
||||||
];
|
|
||||||
port = [ 8008 ];
|
|
||||||
|
|
||||||
well_known = {
|
|
||||||
client = "https://${matrixFqdn}";
|
|
||||||
server = "${matrixFqdn}:443";
|
|
||||||
support_email = supportEmail;
|
|
||||||
support_mxid = "@wymiller:${matrixFqdn}";
|
|
||||||
|
|
||||||
rtc_transports = [{
|
|
||||||
type = "livekit";
|
|
||||||
livekit_service_url = "https://${rtcFqdn}";
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# LiveKit (Matrix RTC)
|
|
||||||
services.livekit = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.livekit;
|
|
||||||
openFirewall = true;
|
|
||||||
keyFile = livekitKeyFile;
|
|
||||||
settings = {
|
|
||||||
port = 7880;
|
|
||||||
room.auto_create = true;
|
|
||||||
rtc = {
|
|
||||||
use_external_ip = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Reverse proxy
|
|
||||||
services.caddy = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.caddy;
|
|
||||||
virtualHosts = {
|
|
||||||
"${matrixFqdn}" = {
|
|
||||||
extraConfig = ''
|
|
||||||
encode zstd gzip
|
|
||||||
reverse_proxy localhost:8008
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
"${matrixFqdn}:8448" = {
|
|
||||||
extraConfig = ''
|
|
||||||
encode zstd gzip
|
|
||||||
reverse_proxy localhost:8008
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
"${rtcFqdn}" = {
|
|
||||||
extraConfig = ''
|
|
||||||
@jwt_service {
|
|
||||||
path /sfu/get* /healthz*
|
|
||||||
}
|
|
||||||
|
|
||||||
handle @jwt_service {
|
|
||||||
reverse_proxy localhost:8080
|
|
||||||
}
|
|
||||||
|
|
||||||
handle {
|
|
||||||
reverse_proxy localhost:7880 {
|
|
||||||
header_up Connection "upgrade"
|
|
||||||
header_up Upgrade {http.request.header.Upgrade}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# LiveKit JWT service
|
|
||||||
services.lk-jwt-service = {
|
|
||||||
enable = true;
|
|
||||||
port = 8080;
|
|
||||||
livekitUrl = "wss://rtc.wyattjmiller.com";
|
|
||||||
keyFile = livekitKeyFile;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Generate LiveKit key if it doesn't exist
|
|
||||||
systemd.services = {
|
|
||||||
matrix-registration-token-gen = {
|
|
||||||
before = [ "tuwunel.service" ];
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
path = with pkgs; [ coreutils openssl ];
|
|
||||||
script = ''
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
if [ -f "${matrixRegistrationTokenFile}" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
install -d -m 0700 "$(dirname "${matrixRegistrationTokenFile}")"
|
|
||||||
|
|
||||||
TOKEN="$(openssl rand -hex 32)"
|
|
||||||
|
|
||||||
umask 077
|
|
||||||
printf '%s\n' "$TOKEN" > "${matrixRegistrationTokenFile}"
|
|
||||||
'';
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
User = "root";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
livekit-key-gen = {
|
|
||||||
before = [ "lk-jwt-service.service" "livekit.service" ];
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
path = with pkgs; [ coreutils openssl ];
|
|
||||||
script = ''
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
if [ -f "${livekitKeyFile}" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
install -d -m 0700 "$(dirname "${livekitKeyFile}")"
|
|
||||||
|
|
||||||
API_KEY="$(openssl rand -hex 8)"
|
|
||||||
API_SECRET="$(openssl rand -hex 32)"
|
|
||||||
|
|
||||||
umask 077
|
|
||||||
printf '%s: %s\n' "$API_KEY" "$API_SECRET" > "${livekitKeyFile}"
|
|
||||||
'';
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
User = "root";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "25.11";
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
imports = [
|
|
||||||
./configuration.nix
|
|
||||||
./hardware-configuration.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ];
|
|
||||||
boot.kernelParams = [ "console=ttyS0,19200n8" ];
|
|
||||||
boot.kernelModules = [ ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
boot.loader.grub.extraConfig = ''
|
|
||||||
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
|
|
||||||
terminal_input serial;
|
|
||||||
terminal_output serial;
|
|
||||||
'';
|
|
||||||
boot.loader.grub.forceInstall = true;
|
|
||||||
# boot.loader.grub.enable = true;
|
|
||||||
boot.loader.grub.device = "nodev";
|
|
||||||
boot.loader.timeout = 10;
|
|
||||||
|
|
||||||
fileSystems."/" =
|
|
||||||
{ device = "/dev/sda";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices =
|
|
||||||
[ { device = "/dev/sdb"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
}
|
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
}:
|
}:
|
||||||
with lib; {
|
with lib; {
|
||||||
options = {
|
options = {
|
||||||
security.sudoers = {
|
security.sudo = {
|
||||||
needsPassword = mkOption {
|
needsPassword = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
# TODO: refactor into module
|
{...}: {
|
||||||
{ pkgs, ...}: {
|
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
helvum
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
{ lib, pkgs, userName, ...}: {
|
{pkgs, ...}: {
|
||||||
services.shairport-sync = {
|
services.shairport-sync = {
|
||||||
enable = pkgs.stdenv.isLinux;
|
enable = pkgs.stdenv.isLinux;
|
||||||
openFirewall = pkgs.stdenv.isLinux;
|
openFirewall = pkgs.stdenv.isLinux;
|
||||||
# arguments = "-v -o pa";
|
arguments = "-v -o pw";
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.shairport-sync = {
|
|
||||||
serviceConfig = {
|
|
||||||
User = lib.mkForce "${userName}";
|
|
||||||
};
|
|
||||||
environment = {
|
|
||||||
XDG_RUNTIME_DIR = "/run/user/1000";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
{ pkgs, ... }: {
|
{...}: {
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
programs.virt-manager.enable = true;
|
programs.virt-manager.enable = true;
|
||||||
services.qemuGuest.enable = true;
|
|
||||||
services.spice-vdagentd.enable = true;
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
qemu
|
|
||||||
quickemu
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user