Compare commits
14 Commits
d76bcdcfd2
...
master
Author | SHA1 | Date | |
---|---|---|---|
a6b2311289
|
|||
77ca125bde
|
|||
a40e84ddb4
|
|||
9653e4d9d0
|
|||
24828da373
|
|||
c1016e641c
|
|||
db345e0a00
|
|||
47d0f78c0a
|
|||
e7145bad37
|
|||
75f1317346
|
|||
ecc5218bf1
|
|||
2c3f56c582
|
|||
f89304ef1f
|
|||
5cc62b0312
|
@@ -10,10 +10,12 @@ System and user configuration for NixOS-based systems.
|
|||||||
| **Terminal:** | Ghostty |
|
| **Terminal:** | Ghostty |
|
||||||
|
|
||||||
## Provisioning a new host
|
## Provisioning a new host
|
||||||
|
|
||||||
> [nixos-anywhere](https://github.com/nix-community/nixos-anywhere) is the module used
|
> [nixos-anywhere](https://github.com/nix-community/nixos-anywhere) is the module used
|
||||||
> for provisioning
|
> for provisioning
|
||||||
|
|
||||||
Generate a new SSH host key in "$temp/etc/ssh" as per [this guide](https://nix-community.github.io/nixos-anywhere/howtos/secrets.html#example-decrypting-an-openssh-host-key-with-pass).
|
Generate a new SSH host key in "$temp/etc/ssh" as per [this guide](https://nix-community.github.io/nixos-anywhere/howtos/secrets.html#example-decrypting-an-openssh-host-key-with-pass).
|
||||||
|
|
||||||
```
|
```
|
||||||
ssh-keygen -t ed25519 -f /tmp/ssh_host_ed25519_key
|
ssh-keygen -t ed25519 -f /tmp/ssh_host_ed25519_key
|
||||||
```
|
```
|
||||||
@@ -29,6 +31,7 @@ Create a new directory under `hosts/` with a system configuration and disk layou
|
|||||||
Boot the NixOS installer (or any Linux distribution) on the target.
|
Boot the NixOS installer (or any Linux distribution) on the target.
|
||||||
|
|
||||||
Then run:
|
Then run:
|
||||||
|
|
||||||
```
|
```
|
||||||
nix run github:nix-community/nixos-anywhere -- \
|
nix run github:nix-community/nixos-anywhere -- \
|
||||||
--disk-encryption-keys /tmp/secret.key /tmp/secret.key \
|
--disk-encryption-keys /tmp/secret.key /tmp/secret.key \
|
||||||
@@ -40,15 +43,19 @@ nix run github:nix-community/nixos-anywhere -- \
|
|||||||
### Post install
|
### Post install
|
||||||
|
|
||||||
If backups are configured, you'll need to run:
|
If backups are configured, you'll need to run:
|
||||||
|
|
||||||
```
|
```
|
||||||
borgmatic init --encryption repokey-blake2
|
borgmatic init --encryption repokey-blake2
|
||||||
```
|
```
|
||||||
|
|
||||||
then restart `borgmatic`.
|
then restart `borgmatic`.
|
||||||
|
|
||||||
To join the Tailscale network, run:
|
To join the Tailscale network, run:
|
||||||
|
|
||||||
```
|
```
|
||||||
tailscale up --login-server https://headscale.vimium.net
|
tailscale up --login-server https://headscale.vimium.net
|
||||||
```
|
```
|
||||||
|
|
||||||
then visit the URL, SSH onto `vps1` and run `headscale --user mesh nodes register --key <key>`.
|
then visit the URL, SSH onto `vps1` and run `headscale --user mesh nodes register --key <key>`.
|
||||||
|
|
||||||
The new node can optionally be given a friendly name with `headscale node rename -i <index> <hostname>`.
|
The new node can optionally be given a friendly name with `headscale node rename -i <index> <hostname>`.
|
||||||
|
351
flake.lock
generated
351
flake.lock
generated
@@ -3,8 +3,12 @@
|
|||||||
"agenix": {
|
"agenix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"darwin": "darwin",
|
"darwin": "darwin",
|
||||||
"home-manager": "home-manager",
|
"home-manager": [
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -21,6 +25,32 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"agenix-rekey": {
|
||||||
|
"inputs": {
|
||||||
|
"devshell": "devshell",
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"pre-commit-hooks": [
|
||||||
|
"pre-commit-hooks"
|
||||||
|
],
|
||||||
|
"treefmt-nix": "treefmt-nix"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1754492276,
|
||||||
|
"narHash": "sha256-cCtleJZQY5eWPYRGl5x63BZ2rfOik4pLveCveH+tmvM=",
|
||||||
|
"owner": "oddlama",
|
||||||
|
"repo": "agenix-rekey",
|
||||||
|
"rev": "69ed7833c0e4e6a677a20894d8f12876b9e2bedb",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "oddlama",
|
||||||
|
"repo": "agenix-rekey",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"aquamarine": {
|
"aquamarine": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"hyprutils": [
|
"hyprutils": [
|
||||||
@@ -95,7 +125,9 @@
|
|||||||
"deploy-rs": {
|
"deploy-rs": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
"utils": "utils"
|
"utils": "utils"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -112,6 +144,68 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"devshell": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"agenix-rekey",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1728330715,
|
||||||
|
"narHash": "sha256-xRJ2nPOXb//u1jaBnDP56M7v5ldavjbtR6lfGqSvcKg=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "devshell",
|
||||||
|
"rev": "dd6b80932022cea34a019e2bb32f6fa9e494dfef",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "devshell",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"devshell_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1741473158,
|
||||||
|
"narHash": "sha256-kWNaq6wQUbUMlPgw8Y+9/9wP0F8SHkjy24/mN3UAppg=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "devshell",
|
||||||
|
"rev": "7c9e793ebe66bcba8292989a68c0419b737a22a0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "devshell",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"devshell_3": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nix-topology",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1728330715,
|
||||||
|
"narHash": "sha256-xRJ2nPOXb//u1jaBnDP56M7v5ldavjbtR6lfGqSvcKg=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "devshell",
|
||||||
|
"rev": "dd6b80932022cea34a019e2bb32f6fa9e494dfef",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "devshell",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"disko": {
|
"disko": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -213,6 +307,45 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"agenix-rekey",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1733312601,
|
||||||
|
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-parts_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1754487366,
|
||||||
|
"narHash": "sha256-pHYj8gUBapuUzKV/kN/tR3Zvqc7o6gdFB9XKXIp1SQ8=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "af66ad14b28a127c5c0f3bbb298218fc63528a18",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-parts_3": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
"nixvim",
|
"nixvim",
|
||||||
@@ -237,6 +370,24 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_4"
|
"systems": "systems_4"
|
||||||
},
|
},
|
||||||
|
"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": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_5"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731533236,
|
"lastModified": 1731533236,
|
||||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
@@ -360,27 +511,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"agenix",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1745494811,
|
|
||||||
"narHash": "sha256-YZCh2o9Ua1n9uCvrvi5pRxtuVNml8X2a03qIFfRKpFs=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"rev": "abfad3d2958c9e6300a883bd443512c55dfeb1be",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home-manager_2": {
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
@@ -469,17 +599,17 @@
|
|||||||
"hyprlang": "hyprlang",
|
"hyprlang": "hyprlang",
|
||||||
"hyprutils": "hyprutils",
|
"hyprutils": "hyprutils",
|
||||||
"hyprwayland-scanner": "hyprwayland-scanner",
|
"hyprwayland-scanner": "hyprwayland-scanner",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs",
|
||||||
"pre-commit-hooks": "pre-commit-hooks",
|
"pre-commit-hooks": "pre-commit-hooks",
|
||||||
"systems": "systems_3",
|
"systems": "systems_3",
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755184403,
|
"lastModified": 1755277479,
|
||||||
"narHash": "sha256-VI+ZPD/uIFjzYW8IcyvBgvwyDIvUe4/xh/kOHTbITX8=",
|
"narHash": "sha256-LrXtv1RIEds93j+OiSEvYFVX4fcGk2vrEzva19oxvco=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "60d769a89908c29e19100059985db15a7b6bab6a",
|
"rev": "edc473e8b0c14e768445422080af9978d132bff6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -749,6 +879,31 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-topology": {
|
||||||
|
"inputs": {
|
||||||
|
"devshell": "devshell_3",
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"pre-commit-hooks": [
|
||||||
|
"pre-commit-hooks"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1752093877,
|
||||||
|
"narHash": "sha256-P0TySh6sQl1EhfxjW9ZqGxEyUBSsEpdnchOe1QB0pLA=",
|
||||||
|
"owner": "oddlama",
|
||||||
|
"repo": "nix-topology",
|
||||||
|
"rev": "6a536c4b686ee4bcf07a7b0f8b823584560e2633",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "oddlama",
|
||||||
|
"repo": "nix-topology",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754564048,
|
"lastModified": 1754564048,
|
||||||
@@ -791,16 +946,16 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754028485,
|
"lastModified": 1754725699,
|
||||||
"narHash": "sha256-IiiXB3BDTi6UqzAZcf2S797hWEPCRZOwyNThJIYhUfk=",
|
"narHash": "sha256-iAcj9T/Y+3DBy2J0N+yF9XQQQ8IEb5swLFzs23CdP88=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "59e69648d345d6e8fef86158c555730fa12af9de",
|
"rev": "85dbfc7aaf52ecb755f87e577ddbe6dbbdbc1054",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-25.05",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -821,13 +976,28 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-lib": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1753579242,
|
||||||
|
"narHash": "sha256-zvaMGVn14/Zz8hnp4VWT9xVnhc8vuL3TStRqwk22biA=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixpkgs.lib",
|
||||||
|
"rev": "0f36c44e01a6129be94e3ade315a5883f0228a6e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixpkgs.lib",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755027561,
|
"lastModified": 1755186698,
|
||||||
"narHash": "sha256-IVft239Bc8p8Dtvf7UAACMG5P3ZV+3/aO28gXpGtMXI=",
|
"narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "005433b926e16227259a1843015b5b2b7f7d1fc3",
|
"rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -838,43 +1008,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1743014863,
|
"lastModified": 1755078291,
|
||||||
"narHash": "sha256-jAIUqsiN2r3hCuHji80U7NNEafpIMBXiwKlSrjWMlpg=",
|
"narHash": "sha256-Hu/gTDoi4uy6TAKISPHQusSMy8U6xUbLSDjKBYdhDIY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "bd3bac8bfb542dbde7ffffb6987a1a1f9d41699f",
|
"rev": "3385ca0cd7e14c1a1eb80401fe011705ff012323",
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixpkgs-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_3": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1754725699,
|
|
||||||
"narHash": "sha256-iAcj9T/Y+3DBy2J0N+yF9XQQQ8IEb5swLFzs23CdP88=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "85dbfc7aaf52ecb755f87e577ddbe6dbbdbc1054",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_4": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1754937576,
|
|
||||||
"narHash": "sha256-3sWA5WJybUE16kIMZ3+uxcxKZY/JRR4DFBqLdSLBo7w=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "ddae11e58c0c345bf66efbddbf2192ed0e58f896",
|
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -885,12 +1023,12 @@
|
|||||||
},
|
},
|
||||||
"nixvim": {
|
"nixvim": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts_3",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"nuschtosSearch": "nuschtosSearch",
|
"nuschtosSearch": "nuschtosSearch",
|
||||||
"systems": "systems_5"
|
"systems": "systems_6"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754262585,
|
"lastModified": 1754262585,
|
||||||
@@ -909,7 +1047,7 @@
|
|||||||
},
|
},
|
||||||
"nuschtosSearch": {
|
"nuschtosSearch": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils_2",
|
||||||
"ixx": "ixx",
|
"ixx": "ixx",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixvim",
|
"nixvim",
|
||||||
@@ -978,23 +1116,28 @@
|
|||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
|
"agenix-rekey": "agenix-rekey",
|
||||||
"deploy-rs": "deploy-rs",
|
"deploy-rs": "deploy-rs",
|
||||||
|
"devshell": "devshell_2",
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"firefox-gnome-theme": "firefox-gnome-theme",
|
"firefox-gnome-theme": "firefox-gnome-theme",
|
||||||
|
"flake-parts": "flake-parts_2",
|
||||||
"gitea-github-theme": "gitea-github-theme",
|
"gitea-github-theme": "gitea-github-theme",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"hyprland-plugins": "hyprland-plugins",
|
"hyprland-plugins": "hyprland-plugins",
|
||||||
"impermanence": "impermanence",
|
"impermanence": "impermanence",
|
||||||
"kvlibadwaita": "kvlibadwaita",
|
"kvlibadwaita": "kvlibadwaita",
|
||||||
|
"nix-topology": "nix-topology",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixos-mailserver": "nixos-mailserver",
|
"nixos-mailserver": "nixos-mailserver",
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
"pre-commit-hooks": "pre-commit-hooks_2",
|
"pre-commit-hooks": "pre-commit-hooks_2",
|
||||||
"secrets": "secrets",
|
"secrets": "secrets",
|
||||||
"thunderbird-gnome-theme": "thunderbird-gnome-theme"
|
"thunderbird-gnome-theme": "thunderbird-gnome-theme",
|
||||||
|
"treefmt-nix": "treefmt-nix_2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"secrets": {
|
"secrets": {
|
||||||
@@ -1088,6 +1231,21 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"systems_6": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"thunderbird-gnome-theme": {
|
"thunderbird-gnome-theme": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -1104,6 +1262,47 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"treefmt-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"agenix-rekey",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1735135567,
|
||||||
|
"narHash": "sha256-8T3K5amndEavxnludPyfj3Z1IkcFdRpR23q+T0BVeZE=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"rev": "9e09d30a644c57257715902efbb3adc56c79cf28",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"treefmt-nix_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1754847726,
|
||||||
|
"narHash": "sha256-2vX8QjO5lRsDbNYvN9hVHXLU6oMl+V/PsmIiJREG4rE=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"rev": "7d81f6fb2e19bf84f1c65135d1060d829fae2408",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"utils": {
|
"utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_2"
|
"systems": "systems_2"
|
||||||
|
207
flake.nix
207
flake.nix
@@ -2,169 +2,176 @@
|
|||||||
description = "NixOS system configuration";
|
description = "NixOS system configuration";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "nixpkgs/nixos-25.05";
|
agenix = {
|
||||||
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
url = "github:ryantm/agenix";
|
||||||
# nixpkgs-master.url = "nixpkgs";
|
inputs.home-manager.follows = "nixpkgs";
|
||||||
agenix.url = "github:ryantm/agenix";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
deploy-rs.url = "github:serokell/deploy-rs";
|
};
|
||||||
|
|
||||||
|
agenix-rekey = {
|
||||||
|
url = "github:oddlama/agenix-rekey";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.pre-commit-hooks.follows = "pre-commit-hooks";
|
||||||
|
};
|
||||||
|
|
||||||
|
deploy-rs = {
|
||||||
|
url = "github:serokell/deploy-rs";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
devshell = {
|
||||||
|
url = "github:numtide/devshell";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
disko = {
|
disko = {
|
||||||
url = "github:nix-community/disko";
|
url = "github:nix-community/disko";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-25.05";
|
url = "github:nix-community/home-manager/release-25.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
hyprland.url = "github:hyprwm/Hyprland";
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
|
|
||||||
hyprland-plugins = {
|
hyprland-plugins = {
|
||||||
url = "github:hyprwm/hyprland-plugins";
|
url = "github:hyprwm/hyprland-plugins";
|
||||||
inputs.hyprland.follows = "hyprland";
|
inputs.hyprland.follows = "hyprland";
|
||||||
};
|
};
|
||||||
|
|
||||||
firefox-gnome-theme = {
|
firefox-gnome-theme = {
|
||||||
url = "github:rafaelmardojai/firefox-gnome-theme";
|
url = "github:rafaelmardojai/firefox-gnome-theme";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
|
||||||
gitea-github-theme = {
|
gitea-github-theme = {
|
||||||
url = "git+ssh://git@git.vimium.com/jordan/gitea-github-theme.git?ref=main";
|
url = "git+ssh://git@git.vimium.com/jordan/gitea-github-theme.git?ref=main";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
impermanence.url = "github:nix-community/impermanence";
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
|
|
||||||
kvlibadwaita = {
|
kvlibadwaita = {
|
||||||
url = "github:GabePoel/KvLibadwaita";
|
url = "github:GabePoel/KvLibadwaita";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
||||||
|
|
||||||
nixos-mailserver = {
|
nixos-mailserver = {
|
||||||
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-25.05";
|
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-25.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpkgs.url = "nixpkgs/nixos-25.05";
|
||||||
|
|
||||||
|
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
|
# nixpkgs-master.url = "nixpkgs";
|
||||||
|
|
||||||
nixvim = {
|
nixvim = {
|
||||||
url = "github:nix-community/nixvim/nixos-25.05";
|
url = "github:nix-community/nixvim/nixos-25.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix-topology = {
|
||||||
|
url = "github:oddlama/nix-topology";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.pre-commit-hooks.follows = "pre-commit-hooks";
|
||||||
|
};
|
||||||
|
|
||||||
pre-commit-hooks = {
|
pre-commit-hooks = {
|
||||||
url = "github:cachix/git-hooks.nix";
|
url = "github:cachix/git-hooks.nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
secrets = {
|
secrets = {
|
||||||
url = "git+ssh://git@git.vimium.com/jordan/nix-secrets.git";
|
url = "git+ssh://git@git.vimium.com/jordan/nix-secrets.git";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
thunderbird-gnome-theme = {
|
thunderbird-gnome-theme = {
|
||||||
url = "github:rafaelmardojai/thunderbird-gnome-theme";
|
url = "github:rafaelmardojai/thunderbird-gnome-theme";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
treefmt-nix = {
|
||||||
|
url = "github:numtide/treefmt-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs@{ self, nixpkgs, ... }:
|
inputs@{
|
||||||
let
|
nixpkgs,
|
||||||
inherit (nixpkgs) lib;
|
flake-parts,
|
||||||
|
...
|
||||||
domain = "mesh.vimium.net";
|
}:
|
||||||
forEachSystem = lib.genAttrs [
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
"x86_64-linux"
|
imports = [
|
||||||
"aarch64-linux"
|
inputs.agenix-rekey.flakeModule
|
||||||
|
inputs.pre-commit-hooks.flakeModule
|
||||||
|
inputs.nix-topology.flakeModule
|
||||||
|
inputs.treefmt-nix.flakeModule
|
||||||
|
./nix/devshell.nix
|
||||||
|
./nix/hosts.nix
|
||||||
];
|
];
|
||||||
mkDeployNode = hostName: {
|
|
||||||
hostname = "${hostName}.${domain}";
|
|
||||||
|
|
||||||
profiles.system = {
|
flake = {
|
||||||
user = "root";
|
overlays = nixpkgs.lib.packagesFromDirectoryRecursive {
|
||||||
path =
|
callPackage = path: overrides: import path;
|
||||||
inputs.deploy-rs.lib.${
|
directory = ./overlays;
|
||||||
self.nixosConfigurations.${hostName}.config.system.build.toplevel.system
|
|
||||||
}.activate.nixos
|
|
||||||
self.nixosConfigurations.${hostName};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
|
||||||
{
|
|
||||||
overlays = lib.packagesFromDirectoryRecursive {
|
|
||||||
callPackage = path: overrides: import path;
|
|
||||||
directory = ./overlays;
|
|
||||||
};
|
|
||||||
|
|
||||||
legacyPackages = forEachSystem (
|
systems = [
|
||||||
system:
|
"aarch64-linux"
|
||||||
lib.packagesFromDirectoryRecursive {
|
"x86_64-linux"
|
||||||
callPackage = nixpkgs.legacyPackages.${system}.callPackage;
|
|
||||||
directory = ./pkgs;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
nixosConfigurations = lib.pipe ./hosts [
|
|
||||||
builtins.readDir
|
|
||||||
(lib.filterAttrs (name: value: value == "directory"))
|
|
||||||
(lib.mapAttrs (
|
|
||||||
name: value:
|
|
||||||
lib.nixosSystem {
|
|
||||||
specialArgs = { inherit inputs; };
|
|
||||||
|
|
||||||
modules = [
|
|
||||||
{
|
|
||||||
networking = {
|
|
||||||
inherit domain;
|
|
||||||
hostName = name;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
./hosts/${name}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
))
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checks =
|
perSystem =
|
||||||
builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) inputs.deploy-rs.lib
|
{ pkgs, ... }:
|
||||||
// (forEachSystem (system: {
|
{
|
||||||
pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run {
|
formatter = pkgs.nixfmt-rfc-style;
|
||||||
src = ./.;
|
|
||||||
hooks = {
|
legacyPackages = pkgs.lib.packagesFromDirectoryRecursive {
|
||||||
check-case-conflicts.enable = true;
|
callPackage = pkgs.callPackage;
|
||||||
check-executables-have-shebangs.enable = true;
|
directory = ./pkgs;
|
||||||
check-merge-conflicts.enable = true;
|
};
|
||||||
|
|
||||||
|
pre-commit = {
|
||||||
|
settings = {
|
||||||
|
excludes = [ "pkgs/libcamera-rpi/libcamera-rpi-ipa-priv-key.pem" ];
|
||||||
|
hooks = {
|
||||||
|
check-case-conflicts.enable = true;
|
||||||
|
check-executables-have-shebangs.enable = true;
|
||||||
|
check-merge-conflicts.enable = true;
|
||||||
|
detect-private-keys.enable = true;
|
||||||
|
end-of-file-fixer.enable = true;
|
||||||
|
fix-byte-order-marker.enable = true;
|
||||||
|
mixed-line-endings.enable = true;
|
||||||
|
treefmt.enable = true;
|
||||||
|
trim-trailing-whitespace.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
treefmt = {
|
||||||
|
projectRootFile = "flake.nix";
|
||||||
|
programs = {
|
||||||
deadnix = {
|
deadnix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
no-lambda-arg = true;
|
||||||
noLambdaArg = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
detect-private-keys.enable = true;
|
mdformat.enable = true;
|
||||||
end-of-file-fixer.enable = true;
|
|
||||||
fix-byte-order-marker.enable = true;
|
|
||||||
mixed-line-endings.enable = true;
|
|
||||||
nixfmt-rfc-style.enable = true;
|
nixfmt-rfc-style.enable = true;
|
||||||
trim-trailing-whitespace.enable = true;
|
shellcheck.enable = true;
|
||||||
};
|
};
|
||||||
excludes = [ "pkgs/libcamera-rpi/libcamera-rpi-ipa-priv-key.pem" ];
|
|
||||||
};
|
};
|
||||||
}));
|
|
||||||
|
|
||||||
formatter = forEachSystem (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style);
|
|
||||||
|
|
||||||
devShells = forEachSystem (system: {
|
|
||||||
default = nixpkgs.legacyPackages.${system}.mkShell {
|
|
||||||
inherit (self.checks.${system}.pre-commit-check) shellHook;
|
|
||||||
buildInputs = [
|
|
||||||
inputs.agenix.packages.${system}.agenix
|
|
||||||
inputs.deploy-rs.packages.${system}.deploy-rs
|
|
||||||
]
|
|
||||||
++ self.checks.${system}.pre-commit-check.enabledPackages;
|
|
||||||
};
|
};
|
||||||
});
|
|
||||||
|
|
||||||
deploy = {
|
|
||||||
magicRollback = true;
|
|
||||||
autoRollback = true;
|
|
||||||
sshUser = "root";
|
|
||||||
nodes = lib.genAttrs [
|
|
||||||
"artemis"
|
|
||||||
"mail"
|
|
||||||
"pi"
|
|
||||||
"skycam"
|
|
||||||
"vps1"
|
|
||||||
"vps2"
|
|
||||||
] mkDeployNode;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -1,22 +1,26 @@
|
|||||||
# Artemis
|
# Artemis
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Couch gaming PC and media centre
|
Couch gaming PC and media centre
|
||||||
|
|
||||||
## Specs
|
## Specs
|
||||||
* CPU - AMD Ryzen 7 9800X3D @ 4.70GHz
|
|
||||||
* Chipset - AMD B850
|
- CPU - AMD Ryzen 7 9800X3D @ 4.70GHz
|
||||||
* Memory - 64 GB DDR5
|
- Chipset - AMD B850
|
||||||
* Motherboard - ASUS ROG STRIX B850-I Gaming WiFi
|
- Memory - 64 GB DDR5
|
||||||
* GPU - AMD Radeon 7900 XTX
|
- Motherboard - ASUS ROG STRIX B850-I Gaming WiFi
|
||||||
* Case - MCPRUE Apollo S v4
|
- GPU - AMD Radeon 7900 XTX
|
||||||
|
- Case - MCPRUE Apollo S v4
|
||||||
|
|
||||||
### Disks
|
### Disks
|
||||||
|
|
||||||
Device | Partitions _(filesystem, size, usage)_
|
Device | Partitions _(filesystem, size, usage)_
|
||||||
--- | ---
|
--- | ---
|
||||||
WD Black SN850X | `/dev/nvme0n1p1` (EFI, 500 MiB, NixOS Boot) <br> `/dev/nvme0n1p2` (ZFS, 4 TiB, NixOS Root)
|
WD Black SN850X | `/dev/nvme0n1p1` (EFI, 500 MiB, NixOS Boot) <br> `/dev/nvme0n1p2` (ZFS, 4 TiB, NixOS Root)
|
||||||
|
|
||||||
#### ZFS pool layout
|
#### ZFS pool layout
|
||||||
|
|
||||||
```
|
```
|
||||||
rpool/
|
rpool/
|
||||||
├── local
|
├── local
|
||||||
@@ -32,5 +36,6 @@ rpool/
|
|||||||
See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets.
|
See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets.
|
||||||
|
|
||||||
### Networks
|
### Networks
|
||||||
|
|
||||||
- DHCP on `10.0.1.0/24` subnet.
|
- DHCP on `10.0.1.0/24` subnet.
|
||||||
- Tailscale on `100.64.0.0/10` subnet. FQDN: `artemis.mesh.vimium.net`.
|
- Tailscale on `100.64.0.0/10` subnet. FQDN: `artemis.mesh.vimium.net`.
|
||||||
|
@@ -91,7 +91,10 @@ in
|
|||||||
};
|
};
|
||||||
graphics = {
|
graphics = {
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
extraPackages = [ pkgs.gamescope-wsi ];
|
extraPackages = [
|
||||||
|
pkgs.gamescope-wsi
|
||||||
|
pkgs.vk-hdr-layer
|
||||||
|
];
|
||||||
extraPackages32 = [ pkgs.pkgsi686Linux.gamescope-wsi ];
|
extraPackages32 = [ pkgs.pkgsi686Linux.gamescope-wsi ];
|
||||||
};
|
};
|
||||||
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
@@ -1,24 +1,28 @@
|
|||||||
# Atlas
|
# Atlas
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
A general purpose mini computer used for web browsing and multimedia.
|
A general purpose mini computer used for web browsing and multimedia.
|
||||||
|
|
||||||
## Specs
|
## Specs
|
||||||
* CPU - Intel Core i7-4790K @ 4.00GHz
|
|
||||||
* Chipset - Intel Z97
|
- CPU - Intel Core i7-4790K @ 4.00GHz
|
||||||
* Memory - 8 GB DDR3
|
- Chipset - Intel Z97
|
||||||
* Motherboard - ASRock Z97M-ITX
|
- Memory - 8 GB DDR3
|
||||||
* GPU - AMD Radeon R9 290X 4GB
|
- Motherboard - ASRock Z97M-ITX
|
||||||
* Case - SilverStone Sugo SG13
|
- GPU - AMD Radeon R9 290X 4GB
|
||||||
* NIC - Intel Gigabit I218-V, Broadcom BCM4360 802.11ac
|
- Case - SilverStone Sugo SG13
|
||||||
|
- NIC - Intel Gigabit I218-V, Broadcom BCM4360 802.11ac
|
||||||
|
|
||||||
### Disks
|
### Disks
|
||||||
|
|
||||||
Device | Partitions _(filesystem, size, usage)_
|
Device | Partitions _(filesystem, size, usage)_
|
||||||
--- | ---
|
--- | ---
|
||||||
Samsung SSD 850 | `/dev/sda1` (NTFS, 500 GiB, Windows XP)
|
Samsung SSD 850 | `/dev/sda1` (NTFS, 500 GiB, Windows XP)
|
||||||
Samsung SSD 850 | `/dev/sdb1` (EFI, 500 MiB, NixOS Boot) <br> `/dev/sdb2` (ZFS, 500 GiB, NixOS Root)
|
Samsung SSD 850 | `/dev/sdb1` (EFI, 500 MiB, NixOS Boot) <br> `/dev/sdb2` (ZFS, 500 GiB, NixOS Root)
|
||||||
|
|
||||||
#### ZFS pool layout
|
#### ZFS pool layout
|
||||||
|
|
||||||
```
|
```
|
||||||
rpool/
|
rpool/
|
||||||
├── local
|
├── local
|
||||||
@@ -34,5 +38,6 @@ rpool/
|
|||||||
See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets.
|
See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets.
|
||||||
|
|
||||||
### Networks
|
### Networks
|
||||||
|
|
||||||
- DHCP on `10.0.1.0/24` subnet.
|
- DHCP on `10.0.1.0/24` subnet.
|
||||||
- Tailscale on `100.64.0.0/10` subnet. FQDN: `atlas.mesh.vimium.net`.
|
- Tailscale on `100.64.0.0/10` subnet. FQDN: `atlas.mesh.vimium.net`.
|
||||||
|
@@ -1,18 +1,22 @@
|
|||||||
# Eos
|
# Eos
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
ThinkPad X220 laptop.
|
ThinkPad X220 laptop.
|
||||||
|
|
||||||
## Specs
|
## Specs
|
||||||
* CPU - Intel Core i5-2520M @ 3.20GHz
|
|
||||||
* Memory - 8 GB DDR3
|
- CPU - Intel Core i5-2520M @ 3.20GHz
|
||||||
|
- Memory - 8 GB DDR3
|
||||||
|
|
||||||
### Disks
|
### Disks
|
||||||
|
|
||||||
Device | Partitions _(filesystem, usage)_
|
Device | Partitions _(filesystem, usage)_
|
||||||
--- | ---
|
--- | ---
|
||||||
Solid | `/dev/sda1` (EFI, NixOS Boot) <br> `/dev/sda2` (ZFS, NixOS Root)
|
Solid | `/dev/sda1` (EFI, NixOS Boot) <br> `/dev/sda2` (ZFS, NixOS Root)
|
||||||
|
|
||||||
#### ZFS pool layout
|
#### ZFS pool layout
|
||||||
|
|
||||||
```
|
```
|
||||||
rpool/
|
rpool/
|
||||||
├── local
|
├── local
|
||||||
@@ -28,5 +32,6 @@ rpool/
|
|||||||
See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets.
|
See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets.
|
||||||
|
|
||||||
### Networks
|
### Networks
|
||||||
|
|
||||||
- DHCP on `10.0.1.0/24` subnet.
|
- DHCP on `10.0.1.0/24` subnet.
|
||||||
- Tailscale on `100.64.0.0/10` subnet. FQDN: `eos.mesh.vimium.net`.
|
- Tailscale on `100.64.0.0/10` subnet. FQDN: `eos.mesh.vimium.net`.
|
||||||
|
@@ -1,16 +1,19 @@
|
|||||||
# Helios
|
# Helios
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Dell OptiPlex 980 small form factor desktop.
|
Dell OptiPlex 980 small form factor desktop.
|
||||||
|
|
||||||
## Specs
|
## Specs
|
||||||
* CPU - Intel Core i7-860 @ 2.8GHz
|
|
||||||
* Chipset - Intel Q57 Express
|
- CPU - Intel Core i7-860 @ 2.8GHz
|
||||||
* Memory - 8 GB DDR2
|
- Chipset - Intel Q57 Express
|
||||||
* GPU - AMD FirePro 2460
|
- Memory - 8 GB DDR2
|
||||||
* NIC - Intel Gigabit 82578DM
|
- GPU - AMD FirePro 2460
|
||||||
|
- NIC - Intel Gigabit 82578DM
|
||||||
|
|
||||||
### Disks
|
### Disks
|
||||||
|
|
||||||
Device | Partitions _(filesystem, size, usage)_
|
Device | Partitions _(filesystem, size, usage)_
|
||||||
--- | ---
|
--- | ---
|
||||||
SanDisk Ultra II | `/dev/sda1` (ext2, 200 MiB, NixOS Boot) <br> `/dev/sda2` (ZFS, 480 GiB, NixOS Root)
|
SanDisk Ultra II | `/dev/sda1` (ext2, 200 MiB, NixOS Boot) <br> `/dev/sda2` (ZFS, 480 GiB, NixOS Root)
|
||||||
@@ -19,6 +22,7 @@ SanDisk Ultra II | `/dev/sda1` (ext2, 200 MiB, NixOS Boot) <br> `/dev/sda2` (ZFS
|
|||||||
> an MBR partition table.
|
> an MBR partition table.
|
||||||
|
|
||||||
#### ZFS pool layout
|
#### ZFS pool layout
|
||||||
|
|
||||||
```
|
```
|
||||||
rpool/
|
rpool/
|
||||||
├── local
|
├── local
|
||||||
@@ -34,5 +38,6 @@ rpool/
|
|||||||
See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets.
|
See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets.
|
||||||
|
|
||||||
### Networks
|
### Networks
|
||||||
|
|
||||||
- DHCP on `192.168.1.0/24` subnet.
|
- DHCP on `192.168.1.0/24` subnet.
|
||||||
- Tailscale on `100.64.0.0/10` subnet. FQDN: `helios.mesh.vimium.net`.
|
- Tailscale on `100.64.0.0/10` subnet. FQDN: `helios.mesh.vimium.net`.
|
||||||
|
@@ -1,21 +1,25 @@
|
|||||||
# Hypnos
|
# Hypnos
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
15-inch MacBook Pro 11,3 (Mid 2014).
|
15-inch MacBook Pro 11,3 (Mid 2014).
|
||||||
|
|
||||||
## Specs
|
## Specs
|
||||||
* CPU - Intel Core i7-4870HQ @ 2.50GHz
|
|
||||||
* Memory - 16 GB DDR3
|
- CPU - Intel Core i7-4870HQ @ 2.50GHz
|
||||||
* GPU - Intel Iris Pro 5200
|
- Memory - 16 GB DDR3
|
||||||
* GPU - NVIDIA GeForce GT 750M
|
- GPU - Intel Iris Pro 5200
|
||||||
* NIC - Broadcom BCM43xx 802.11ac
|
- GPU - NVIDIA GeForce GT 750M
|
||||||
|
- NIC - Broadcom BCM43xx 802.11ac
|
||||||
|
|
||||||
### Disks
|
### Disks
|
||||||
|
|
||||||
Device | Partitions _(filesystem, size, usage)_
|
Device | Partitions _(filesystem, size, usage)_
|
||||||
--- | ---
|
--- | ---
|
||||||
Apple SSD SM0512F | `/dev/sda1` (EFI, 256 MiB, NixOS Boot) <br> `/dev/sda2` (ZFS, 500 GiB, NixOS Root)
|
Apple SSD SM0512F | `/dev/sda1` (EFI, 256 MiB, NixOS Boot) <br> `/dev/sda2` (ZFS, 500 GiB, NixOS Root)
|
||||||
|
|
||||||
#### ZFS pool layout
|
#### ZFS pool layout
|
||||||
|
|
||||||
```
|
```
|
||||||
rpool/
|
rpool/
|
||||||
├── local
|
├── local
|
||||||
@@ -31,5 +35,6 @@ rpool/
|
|||||||
See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets.
|
See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets.
|
||||||
|
|
||||||
### Networks
|
### Networks
|
||||||
|
|
||||||
- DHCP on `10.0.1.0/24` subnet.
|
- DHCP on `10.0.1.0/24` subnet.
|
||||||
- Tailscale on `100.64.0.0/10` subnet. FQDN: `hypnos.mesh.vimium.net`.
|
- Tailscale on `100.64.0.0/10` subnet. FQDN: `hypnos.mesh.vimium.net`.
|
||||||
|
@@ -1,21 +1,25 @@
|
|||||||
# Library
|
# Library
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Media and public file server.
|
Media and public file server.
|
||||||
|
|
||||||
## Specs
|
## Specs
|
||||||
* CPU - AMD Ryzen 5 5600G @ 3.90GHz
|
|
||||||
* Chipset - AMD B550
|
- CPU - AMD Ryzen 5 5600G @ 3.90GHz
|
||||||
* Memory - 64 GB DDR4
|
- Chipset - AMD B550
|
||||||
* Motherboard - ASRock B550M Pro4
|
- Memory - 64 GB DDR4
|
||||||
* Case - JMCD-12S4
|
- Motherboard - ASRock B550M Pro4
|
||||||
|
- Case - JMCD-12S4
|
||||||
|
|
||||||
### Disks
|
### Disks
|
||||||
|
|
||||||
Device | Partitions _(filesystem, size, usage)_
|
Device | Partitions _(filesystem, size, usage)_
|
||||||
--- | ---
|
--- | ---
|
||||||
Samsung 970 Evo Plus | `/dev/nvme0n1p1` (EFI, 512 MiB, NixOS Boot) <br> `/dev/nvme0n1p2` (ZFS `rpool`, 200 GiB, NixOS Root)
|
Samsung 970 Evo Plus | `/dev/nvme0n1p1` (EFI, 512 MiB, NixOS Boot) <br> `/dev/nvme0n1p2` (ZFS `rpool`, 200 GiB, NixOS Root)
|
||||||
|
|
||||||
#### ZFS datasets
|
#### ZFS datasets
|
||||||
|
|
||||||
```
|
```
|
||||||
rpool/
|
rpool/
|
||||||
├── local
|
├── local
|
||||||
@@ -41,5 +45,6 @@ library/
|
|||||||
See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind the `rpool` datasets.
|
See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind the `rpool` datasets.
|
||||||
|
|
||||||
### Networks
|
### Networks
|
||||||
|
|
||||||
- DHCP on `10.0.1.0/24` subnet.
|
- DHCP on `10.0.1.0/24` subnet.
|
||||||
- Tailscale on `100.64.0.0/10` subnet. FQDN: `library.mesh.vimium.net`.
|
- Tailscale on `100.64.0.0/10` subnet. FQDN: `library.mesh.vimium.net`.
|
||||||
|
@@ -1,17 +1,21 @@
|
|||||||
# Mail server
|
# Mail server
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Mail server hosted in OVH.
|
Mail server hosted in OVH.
|
||||||
|
|
||||||
## Specs
|
## Specs
|
||||||
* CPU - ??
|
|
||||||
* Memory - ??
|
- CPU - ??
|
||||||
|
- Memory - ??
|
||||||
|
|
||||||
### Disks
|
### Disks
|
||||||
|
|
||||||
Device | Partitions _(filesystem, usage)_
|
Device | Partitions _(filesystem, usage)_
|
||||||
--- | ---
|
--- | ---
|
||||||
NVMe | `/dev/sda1` (ext4, NixOS Root)
|
NVMe | `/dev/sda1` (ext4, NixOS Root)
|
||||||
|
|
||||||
### Networks
|
### Networks
|
||||||
|
|
||||||
- DHCP on `10.0.1.0/24` subnet.
|
- DHCP on `10.0.1.0/24` subnet.
|
||||||
- Tailscale on `100.64.0.0/10` subnet. FQDN: `mail.mesh.vimium.net`.
|
- Tailscale on `100.64.0.0/10` subnet. FQDN: `mail.mesh.vimium.net`.
|
||||||
|
@@ -1,22 +1,26 @@
|
|||||||
# Odyssey
|
# Odyssey
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Primary workstation.
|
Primary workstation.
|
||||||
|
|
||||||
## Specs
|
## Specs
|
||||||
* CPU - AMD Ryzen 9 9950X3D @ 4.30GHz
|
|
||||||
* Chipset - AMD X870E
|
- CPU - AMD Ryzen 9 9950X3D @ 4.30GHz
|
||||||
* Memory - 96 GB DDR5
|
- Chipset - AMD X870E
|
||||||
* Motherboard - ASUS ProArt X870E-Creator WiFi
|
- Memory - 96 GB DDR5
|
||||||
* GPU - NVIDIA RTX 3090
|
- Motherboard - ASUS ProArt X870E-Creator WiFi
|
||||||
* Case - Thermaltake A500
|
- GPU - NVIDIA RTX 3090
|
||||||
|
- Case - Thermaltake A500
|
||||||
|
|
||||||
### Disks
|
### Disks
|
||||||
|
|
||||||
Device | Partitions _(filesystem, size, usage)_
|
Device | Partitions _(filesystem, size, usage)_
|
||||||
--- | ---
|
--- | ---
|
||||||
Samsung 980 Pro | `/dev/nvme0n1p1` (EFI, 512 MiB, NixOS Boot) <br> `/dev/nvme0n1p2` (ZFS, 2 TiB, NixOS Root)
|
Samsung 980 Pro | `/dev/nvme0n1p1` (EFI, 512 MiB, NixOS Boot) <br> `/dev/nvme0n1p2` (ZFS, 2 TiB, NixOS Root)
|
||||||
|
|
||||||
#### ZFS pool layout
|
#### ZFS pool layout
|
||||||
|
|
||||||
```
|
```
|
||||||
rpool/
|
rpool/
|
||||||
├── local
|
├── local
|
||||||
@@ -32,5 +36,6 @@ rpool/
|
|||||||
See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets.
|
See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets.
|
||||||
|
|
||||||
### Networks
|
### Networks
|
||||||
|
|
||||||
- DHCP on `10.0.1.0/24` subnet.
|
- DHCP on `10.0.1.0/24` subnet.
|
||||||
- Tailscale on `100.64.0.0/10` subnet. FQDN: `odyssey.mesh.vimium.net`.
|
- Tailscale on `100.64.0.0/10` subnet. FQDN: `odyssey.mesh.vimium.net`.
|
||||||
|
@@ -34,6 +34,9 @@
|
|||||||
powerOnBoot = true;
|
powerOnBoot = true;
|
||||||
};
|
};
|
||||||
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
graphics = {
|
||||||
|
extraPackages = [ pkgs.vk-hdr-layer ];
|
||||||
|
};
|
||||||
nvidia = {
|
nvidia = {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
open = true;
|
open = true;
|
||||||
|
@@ -1,19 +1,23 @@
|
|||||||
# Pi
|
# Pi
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Raspberry Pi 4
|
Raspberry Pi 4
|
||||||
|
|
||||||
## Specs
|
## Specs
|
||||||
* SoC - Broadcom BCM2711
|
|
||||||
* CPU - ARM Cortex-A72 @ 1.8 GHz
|
- SoC - Broadcom BCM2711
|
||||||
* Memory - 8 GB LPDDR4
|
- CPU - ARM Cortex-A72 @ 1.8 GHz
|
||||||
|
- Memory - 8 GB LPDDR4
|
||||||
|
|
||||||
### Disks
|
### Disks
|
||||||
|
|
||||||
Device | Partitions _(filesystem, usage)_
|
Device | Partitions _(filesystem, usage)_
|
||||||
--- | ---
|
--- | ---
|
||||||
SD card | `/dev/mmcblk0` (ext4, NixOS Root)
|
SD card | `/dev/mmcblk0` (ext4, NixOS Root)
|
||||||
|
|
||||||
### Networks
|
### Networks
|
||||||
|
|
||||||
- DHCP on `10.0.1.0/24` subnet.
|
- DHCP on `10.0.1.0/24` subnet.
|
||||||
- Tailscale on `100.64.0.0/10` subnet. FQDN: `pi.mesh.vimium.net`.
|
- Tailscale on `100.64.0.0/10` subnet. FQDN: `pi.mesh.vimium.net`.
|
||||||
|
|
||||||
|
@@ -1,26 +1,32 @@
|
|||||||
# Skycam
|
# Skycam
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Raspberry Pi 4-based webcam
|
Raspberry Pi 4-based webcam
|
||||||
|
|
||||||
## Specs
|
## Specs
|
||||||
* SoC - Broadcom BCM2711
|
|
||||||
* CPU - ARM Cortex-A72 @ 1.8 GHz
|
- SoC - Broadcom BCM2711
|
||||||
* Memory - 8 GB LPDDR4
|
- CPU - ARM Cortex-A72 @ 1.8 GHz
|
||||||
|
- Memory - 8 GB LPDDR4
|
||||||
|
|
||||||
### Disks
|
### Disks
|
||||||
|
|
||||||
Device | Partitions _(filesystem, usage)_
|
Device | Partitions _(filesystem, usage)_
|
||||||
--- | ---
|
--- | ---
|
||||||
SD card | `/dev/mmcblk0` (ext4, NixOS Root)
|
SD card | `/dev/mmcblk0` (ext4, NixOS Root)
|
||||||
|
|
||||||
### Networks
|
### Networks
|
||||||
|
|
||||||
- DHCP on `10.0.1.0/24` subnet.
|
- DHCP on `10.0.1.0/24` subnet.
|
||||||
- Tailscale on `100.64.0.0/10` subnet. FQDN: `skycam.mesh.vimium.net`.
|
- Tailscale on `100.64.0.0/10` subnet. FQDN: `skycam.mesh.vimium.net`.
|
||||||
|
|
||||||
## Devices and connections
|
## Devices and connections
|
||||||
|
|
||||||
- Camera Module 3 with wide-angle lens
|
- Camera Module 3 with wide-angle lens
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
To generate a compressed SD card image for Skycam, run:
|
To generate a compressed SD card image for Skycam, run:
|
||||||
`nix build '.#nixosConfigurations.skycam.config.system.build.sdImage'`
|
`nix build '.#nixosConfigurations.skycam.config.system.build.sdImage'`
|
||||||
|
|
||||||
|
@@ -1,17 +1,21 @@
|
|||||||
# vps1
|
# vps1
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
VPS hosted in OVH.
|
VPS hosted in OVH.
|
||||||
|
|
||||||
## Specs
|
## Specs
|
||||||
* CPU - ??
|
|
||||||
* Memory - ??
|
- CPU - ??
|
||||||
|
- Memory - ??
|
||||||
|
|
||||||
### Disks
|
### Disks
|
||||||
|
|
||||||
Device | Partitions _(filesystem, usage)_
|
Device | Partitions _(filesystem, usage)_
|
||||||
--- | ---
|
--- | ---
|
||||||
NVMe | `/dev/sda1` (ext4, NixOS Root)
|
NVMe | `/dev/sda1` (ext4, NixOS Root)
|
||||||
|
|
||||||
### Networks
|
### Networks
|
||||||
|
|
||||||
- DHCP on `10.0.1.0/24` subnet.
|
- DHCP on `10.0.1.0/24` subnet.
|
||||||
- Tailscale on `100.64.0.0/10` subnet. FQDN: `vps1.mesh.vimium.net`.
|
- Tailscale on `100.64.0.0/10` subnet. FQDN: `vps1.mesh.vimium.net`.
|
||||||
|
24
nix/devshell.nix
Normal file
24
nix/devshell.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ inputs, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
inputs.devshell.flakeModule
|
||||||
|
];
|
||||||
|
|
||||||
|
perSystem =
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
devshells.default = {
|
||||||
|
commands = [
|
||||||
|
{
|
||||||
|
package = config.treefmt.build.wrapper;
|
||||||
|
help = "Format all files";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
package = pkgs.deploy-rs;
|
||||||
|
name = "deploy";
|
||||||
|
help = "Deploy this nix-config to remote hosts";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
60
nix/hosts.nix
Normal file
60
nix/hosts.nix
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
flake =
|
||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
domain = "mesh.vimium.net";
|
||||||
|
mkDeployNode = hostName: {
|
||||||
|
hostname = "${hostName}.${domain}";
|
||||||
|
|
||||||
|
profiles.system = {
|
||||||
|
user = "root";
|
||||||
|
path =
|
||||||
|
inputs.deploy-rs.lib.${
|
||||||
|
config.nixosConfigurations.${hostName}.config.system.build.toplevel.system
|
||||||
|
}.activate.nixos
|
||||||
|
config.nixosConfigurations.${hostName};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
nixosConfigurations = lib.pipe ../hosts [
|
||||||
|
builtins.readDir
|
||||||
|
(lib.filterAttrs (name: value: value == "directory"))
|
||||||
|
(lib.mapAttrs (
|
||||||
|
name: value:
|
||||||
|
inputs.nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
{
|
||||||
|
networking = {
|
||||||
|
inherit domain;
|
||||||
|
hostName = name;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
../hosts/${name}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
))
|
||||||
|
];
|
||||||
|
|
||||||
|
deploy = {
|
||||||
|
magicRollback = true;
|
||||||
|
autoRollback = true;
|
||||||
|
sshUser = "root";
|
||||||
|
nodes = lib.genAttrs [
|
||||||
|
"artemis"
|
||||||
|
"mail"
|
||||||
|
"pi"
|
||||||
|
"skycam"
|
||||||
|
"vps1"
|
||||||
|
"vps2"
|
||||||
|
] mkDeployNode;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
44
pkgs/vk-hdr-layer/package.nix
Normal file
44
pkgs/vk-hdr-layer/package.nix
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
|
lib,
|
||||||
|
meson,
|
||||||
|
ninja,
|
||||||
|
pkg-config,
|
||||||
|
vulkan-headers,
|
||||||
|
vulkan-loader,
|
||||||
|
wayland-scanner,
|
||||||
|
wayland,
|
||||||
|
xorg,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "vk-hdr-layer";
|
||||||
|
version = "303e0c69e1d33acd95158d92b1fc652fb5b85399";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Zamundaaa";
|
||||||
|
repo = "VK_hdr_layer";
|
||||||
|
rev = "303e0c69e1d33acd95158d92b1fc652fb5b85399";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
hash = "sha256-NsC44Ifl/fAHvFqP7NLrVZ71Y+x5mBEkv+r43HN5yn4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
buildInputs = [
|
||||||
|
vulkan-headers
|
||||||
|
vulkan-loader
|
||||||
|
wayland
|
||||||
|
wayland-scanner
|
||||||
|
xorg.libX11
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Vulkan layer utilizing a small color management / HDR protocol for experimentation";
|
||||||
|
homepage = "https://github.com/Zamundaaa/VK_hdr_layer";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
};
|
||||||
|
})
|
@@ -110,6 +110,10 @@ in
|
|||||||
no_update_news = true;
|
no_update_news = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
experimental = {
|
||||||
|
xx_color_management_v4 = true;
|
||||||
|
};
|
||||||
|
|
||||||
decoration = {
|
decoration = {
|
||||||
rounding = 10;
|
rounding = 10;
|
||||||
|
|
||||||
@@ -161,8 +165,8 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
monitor = [
|
monitor = [
|
||||||
"desc:Dell Inc. DELL U3219Q HPTP413, preferred, auto, 1"
|
"desc:Dell Inc. DELL U3219Q HPTP413, preferred, auto, 1, vrr, 0, bitdepth, 10, cm, hdr"
|
||||||
"desc:LG Electronics LG TV SSCR2, 3840x2160@120, 0x0, 1, bitdepth, 10"
|
"desc:LG Electronics LG TV SSCR2, 3840x2160@60, 0x0, 1, vrr, 0, bitdepth, 10, cm, hdr"
|
||||||
];
|
];
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
|
Reference in New Issue
Block a user