Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4941f99993 | ||
|
|
3f66b773e3 | ||
|
|
58076ab05e | ||
|
|
5152bc6c47 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +0,0 @@
|
|||||||
result*
|
|
||||||
.gcroots
|
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
see TODO.md for my aspirations
|
|
||||||
|
|
||||||
## usage
|
## usage
|
||||||
|
|
||||||
### install
|
### install
|
||||||
|
|||||||
20
TODO.md
20
TODO.md
@@ -1,20 +0,0 @@
|
|||||||
- add other remote
|
|
||||||
- fully automate remote provisioning (remote keys)
|
|
||||||
- fix ipv6 on remotes
|
|
||||||
- modularize home manager
|
|
||||||
- add services?
|
|
||||||
- 0x0
|
|
||||||
- forgejo
|
|
||||||
- matrix homeserver
|
|
||||||
- matrix webclient
|
|
||||||
- radicale
|
|
||||||
- tor relay
|
|
||||||
- wireguard as vpn
|
|
||||||
- add home functionality
|
|
||||||
- better term emulator
|
|
||||||
- switch browser?
|
|
||||||
- chromium: much better sandboxing
|
|
||||||
- ladybird: be an early tester, contribute
|
|
||||||
- glide: sexier tridactyl implementation
|
|
||||||
- browsh: the GOAT
|
|
||||||
- get mouse out of here
|
|
||||||
454
flake.lock
generated
454
flake.lock
generated
@@ -10,11 +10,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770165109,
|
"lastModified": 1762618334,
|
||||||
"narHash": "sha256-9VnK6Oqai65puVJ4WYtCTvlJeXxMzAp/69HhQuTdl/I=",
|
"narHash": "sha256-wyT7Pl6tMFbFrs8Lk/TlEs81N6L+VSybPfiIgzU8lbQ=",
|
||||||
"owner": "ryantm",
|
"owner": "ryantm",
|
||||||
"repo": "agenix",
|
"repo": "agenix",
|
||||||
"rev": "b027ee29d959fda4b60b57566d64c98a202e0feb",
|
"rev": "fcdea223397448d35d9b31f798479227e80183f6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -23,28 +23,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"anki-cli": {
|
|
||||||
"inputs": {
|
|
||||||
"fenix": "fenix",
|
|
||||||
"naersk": "naersk",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1776540672,
|
|
||||||
"narHash": "sha256-D43SN81mM21icdtK/9JDwaXsIhFv+gm4G8KXhJDCxsQ=",
|
|
||||||
"ref": "refs/heads/master",
|
|
||||||
"rev": "bcd83506ea691861562ade66ce23f57b27e57ee2",
|
|
||||||
"revCount": 12,
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.mtgmonkey.net/Andromeda/anki-cli.git"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.mtgmonkey.net/Andromeda/anki-cli.git"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"base16": {
|
"base16": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"fromYaml": "fromYaml"
|
"fromYaml": "fromYaml"
|
||||||
@@ -113,22 +91,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"blobs": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1604995301,
|
|
||||||
"narHash": "sha256-wcLzgLec6SGJA8fx1OEN1yV/Py5b+U5iyYpksUY/yLw=",
|
|
||||||
"owner": "simple-nixos-mailserver",
|
|
||||||
"repo": "blobs",
|
|
||||||
"rev": "2cccdf1ca48316f2cfd1c9a0017e8de5a7156265",
|
|
||||||
"type": "gitlab"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "simple-nixos-mailserver",
|
|
||||||
"repo": "blobs",
|
|
||||||
"type": "gitlab"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"darwin": {
|
"darwin": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -151,59 +113,14 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fenix": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"anki-cli",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"rust-analyzer-src": "rust-analyzer-src"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1776153734,
|
|
||||||
"narHash": "sha256-QvkVX4Go+BnNgQQLc5Ma3WNBZOG5Jpdqsy8Ri0/CbSQ=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "fenix",
|
|
||||||
"rev": "a8b0e62fb39299fbeb1aa365f4b57e2c258a178e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "fenix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fenix_2": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"anki-cli",
|
|
||||||
"naersk",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"rust-analyzer-src": "rust-analyzer-src_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1752475459,
|
|
||||||
"narHash": "sha256-z6QEu4ZFuHiqdOPbYss4/Q8B0BFhacR8ts6jO/F/aOU=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "fenix",
|
|
||||||
"rev": "bf0d6f70f4c9a9cf8845f992105652173f4b617f",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "fenix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"firefox-gnome-theme": {
|
"firefox-gnome-theme": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775176642,
|
"lastModified": 1764724327,
|
||||||
"narHash": "sha256-2veEED0Fg7Fsh81tvVDNYR6SzjqQxa7hbi18Jv4LWpM=",
|
"narHash": "sha256-OkFLrD3pFR952TrjQi1+Vdj604KLcMnkpa7lkW7XskI=",
|
||||||
"owner": "rafaelmardojai",
|
"owner": "rafaelmardojai",
|
||||||
"repo": "firefox-gnome-theme",
|
"repo": "firefox-gnome-theme",
|
||||||
"rev": "179704030c5286c729b5b0522037d1d51341022c",
|
"rev": "66b7c635763d8e6eb86bd766de5a1e1fbfcc1047",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -213,22 +130,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1767039857,
|
|
||||||
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-compat_2": {
|
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751685974,
|
"lastModified": 1751685974,
|
||||||
@@ -273,11 +174,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769996383,
|
"lastModified": 1760948891,
|
||||||
"narHash": "sha256-AnYjnFWgS49RlqX7LrC4uA+sCCDBj0Ry/WOJ5XWAsa0=",
|
"narHash": "sha256-TmWcdiUUaWk8J4lpjzu4gCGxWY6/Ok7mOK4fIFfBuU4=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "57928607ea566b5db3ad13af0e57e921e6b12381",
|
"rev": "864599284fc7c0ba6357ed89ed5e2cd5040f0c04",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -294,11 +195,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775087534,
|
"lastModified": 1763759067,
|
||||||
"narHash": "sha256-91qqW8lhL7TLwgQWijoGBbiD4t7/q75KTi8NxjVmSmA=",
|
"narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "3107b77cd68437b9a76194f0f7f9c55f2329ca5b",
|
"rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -323,69 +224,23 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"git-hooks": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": [
|
|
||||||
"nixos-mailserver",
|
|
||||||
"flake-compat"
|
|
||||||
],
|
|
||||||
"gitignore": "gitignore",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixos-mailserver",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1775585728,
|
|
||||||
"narHash": "sha256-8Psjt+TWvE4thRKktJsXfR6PA/fWWsZ04DVaY6PUhr4=",
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "git-hooks.nix",
|
|
||||||
"rev": "580633fa3fe5fc0379905986543fd7495481913d",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "git-hooks.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"gitignore": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixos-mailserver",
|
|
||||||
"git-hooks",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1709087332,
|
|
||||||
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"gnome-shell": {
|
"gnome-shell": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767737596,
|
"host": "gitlab.gnome.org",
|
||||||
"narHash": "sha256-eFujfIUQDgWnSJBablOuG+32hCai192yRdrNHTv0a+s=",
|
"lastModified": 1764524476,
|
||||||
|
"narHash": "sha256-bTmNn3Q4tMQ0J/P0O5BfTQwqEnCiQIzOGef9/aqAZvk=",
|
||||||
"owner": "GNOME",
|
"owner": "GNOME",
|
||||||
"repo": "gnome-shell",
|
"repo": "gnome-shell",
|
||||||
"rev": "ef02db02bf0ff342734d525b5767814770d85b49",
|
"rev": "c0e1ad9f0f703fd0519033b8f46c3267aab51a22",
|
||||||
"type": "github"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
"host": "gitlab.gnome.org",
|
||||||
"owner": "GNOME",
|
"owner": "GNOME",
|
||||||
|
"ref": "gnome-49",
|
||||||
"repo": "gnome-shell",
|
"repo": "gnome-shell",
|
||||||
"rev": "ef02db02bf0ff342734d525b5767814770d85b49",
|
"type": "gitlab"
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
@@ -416,32 +271,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776562531,
|
"lastModified": 1766980997,
|
||||||
"narHash": "sha256-Lh5Ns9DI67E+lSMOCGK0S+mFPy0mz0yOGiJTUXiR9JI=",
|
"narHash": "sha256-oegDNAvyQwaG3GqSi4U5jpKM7SYHGESGVIuKMRV/lbw=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "5b56ad02dc643808b8af6d5f3ff179e2ce9593f4",
|
"rev": "7a7b43c7231a439d248179ba8d561dd6cd81799b",
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home-manager_3": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"impermanence",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1768598210,
|
|
||||||
"narHash": "sha256-kkgA32s/f4jaa4UG+2f8C225Qvclxnqs76mf8zvTVPg=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"rev": "c47b2cc64a629f8e075de52e4742de688f930dc6",
|
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -451,16 +285,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"impermanence": {
|
"impermanence": {
|
||||||
"inputs": {
|
|
||||||
"home-manager": "home-manager_3",
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
},
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769548169,
|
"lastModified": 1737831083,
|
||||||
"narHash": "sha256-03+JxvzmfwRu+5JafM0DLbxgHttOQZkUtDWBmeUkN8Y=",
|
"narHash": "sha256-LJggUHbpyeDvNagTUrdhe/pRVp4pnS6wVKALS782gRI=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "impermanence",
|
"repo": "impermanence",
|
||||||
"rev": "7b1d382faf603b6d264f58627330f9faa5cba149",
|
"rev": "4b3e914cdf97a5b536a889e939fb2fd2b043a170",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -471,11 +301,11 @@
|
|||||||
},
|
},
|
||||||
"mnw": {
|
"mnw": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770419553,
|
"lastModified": 1758834834,
|
||||||
"narHash": "sha256-b1XqsH7AtVf2dXmq2iyRr2NC1yG7skY7Z6N2MpWHlK4=",
|
"narHash": "sha256-Y7IvY4F8vajZyp3WGf+KaiIVwondEkMFkt92Cr9NZmg=",
|
||||||
"owner": "Gerg-L",
|
"owner": "Gerg-L",
|
||||||
"repo": "mnw",
|
"repo": "mnw",
|
||||||
"rev": "2aaffa8030d0b262176146adbb6b0e6374ce2957",
|
"rev": "cfbc7d1cc832e318d0863a5fc91d940a96034001",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -484,96 +314,31 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"naersk": {
|
|
||||||
"inputs": {
|
|
||||||
"fenix": "fenix_2",
|
|
||||||
"nixpkgs": [
|
|
||||||
"anki-cli",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1776193198,
|
|
||||||
"narHash": "sha256-U4w4GpgYt72z8pBKMDaqzlnPJRxI9pn+8tr7SOAxocE=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "naersk",
|
|
||||||
"rev": "e4e2ee6c9af67ecd4abb102fc32b9e49c70d92ff",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "naersk",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ndg": {
|
"ndg": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": "nixpkgs_2"
|
||||||
"nvf",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768214250,
|
"lastModified": 1765720983,
|
||||||
"narHash": "sha256-hnBZDQWUxJV3KbtvyGW5BKLO/fAwydrxm5WHCWMQTbw=",
|
"narHash": "sha256-tWtukpABmux6EC/FuCJEgA1kmRjcRPtED44N+GGPq+4=",
|
||||||
"owner": "feel-co",
|
"owner": "feel-co",
|
||||||
"repo": "ndg",
|
"repo": "ndg",
|
||||||
"rev": "a6bd3c1ce2668d096e4fdaaa03ad7f03ba1fbca8",
|
"rev": "f399ace8bb8e1f705dd8942b24d207aa4d75c936",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "feel-co",
|
"owner": "feel-co",
|
||||||
"ref": "refs/tags/v2.6.0",
|
|
||||||
"repo": "ndg",
|
"repo": "ndg",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nix-zulip": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1775149560,
|
|
||||||
"narHash": "sha256-UoF4z9JL0J5hh3d33ToZKY8ve1R3+3X7bPMVXxN2oMw=",
|
|
||||||
"ref": "refs/heads/main",
|
|
||||||
"rev": "0ee7f76d6d40f550e10041932aa73ea03b9915cd",
|
|
||||||
"revCount": 90,
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.afnix.fr/nix-zulip/nix-zulip"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.afnix.fr/nix-zulip/nix-zulip"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixos-mailserver": {
|
|
||||||
"inputs": {
|
|
||||||
"blobs": "blobs",
|
|
||||||
"flake-compat": "flake-compat",
|
|
||||||
"git-hooks": "git-hooks",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1776557524,
|
|
||||||
"narHash": "sha256-mOIdjVcnB+IOdJu5FBvRJMD6gQSl7JZJopSiaW1bEdc=",
|
|
||||||
"owner": "simple-nixos-mailserver",
|
|
||||||
"repo": "nixos-mailserver",
|
|
||||||
"rev": "fdb1be9b5064df55d5fe27247932aa0c01cd71d4",
|
|
||||||
"type": "gitlab"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "simple-nixos-mailserver",
|
|
||||||
"repo": "nixos-mailserver",
|
|
||||||
"type": "gitlab"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768564909,
|
"lastModified": 1766651565,
|
||||||
"narHash": "sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc=",
|
"narHash": "sha256-QEhk0eXgyIqTpJ/ehZKg9IKS7EtlWxF3N7DXy42zPfU=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e4bae1bd10c9c57b2cf517953ab70060a828ee6f",
|
"rev": "3e2499d5539c16d0d173ba53552a4ff8547f4539",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -585,20 +350,40 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776169885,
|
"lastModified": 1764242076,
|
||||||
"narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=",
|
"narHash": "sha256-sKoIWfnijJ0+9e4wRvIgm/HgE27bzwQxcEmo2J/gNpI=",
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9",
|
"rev": "2fad6eac6077f03fe109c4d4eb171cf96791faa4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"noshell": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717396029,
|
||||||
|
"narHash": "sha256-NPIhvnTYkJZqTY+aabbZ6CAaMAgG6IISvh7GZo1MTfQ=",
|
||||||
|
"owner": "viperML",
|
||||||
|
"repo": "noshell",
|
||||||
|
"rev": "4d194d838a50ea106cd0e47c024e47afc154ab42",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "viperML",
|
||||||
|
"repo": "noshell",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
@@ -607,11 +392,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776587421,
|
"lastModified": 1767026366,
|
||||||
"narHash": "sha256-rO2dca1U5xao5BMg+Os2HySVmQlq5hR49NNrGc9dEkg=",
|
"narHash": "sha256-TqJXPpEPYfeFCbraquNdrB1dJYuEqV474Npv8UcNxrs=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "11f5d7471f1999a8130e953209765a19f2fb74e5",
|
"rev": "1f8c02a96c58c0dd90f2de45440b9ef01571abc3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -632,11 +417,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775228139,
|
"lastModified": 1764773531,
|
||||||
"narHash": "sha256-ebbeHmg+V7w8050bwQOuhmQHoLOEOfqKzM1KgCTexK4=",
|
"narHash": "sha256-mCBl7MD1WZ7yCG6bR9MmpPO2VydpNkWFgnslJRIT1YU=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "601971b9c89e0304561977f2c28fa25e73aa7132",
|
"rev": "1d9616689e98beded059ad0384b9951e967a17fa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -647,7 +432,7 @@
|
|||||||
},
|
},
|
||||||
"nvf": {
|
"nvf": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts_2",
|
||||||
"mnw": "mnw",
|
"mnw": "mnw",
|
||||||
"ndg": "ndg",
|
"ndg": "ndg",
|
||||||
@@ -657,11 +442,11 @@
|
|||||||
"systems": "systems_2"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776539146,
|
"lastModified": 1766596669,
|
||||||
"narHash": "sha256-zuaO3Gi+HUf4Udv6wiCsK29SKh/Q6kwacpTn8gIwyZY=",
|
"narHash": "sha256-9C72hpMDa99n4MbqZqsBkrBQZe+HEN9lnu7Sme67nmU=",
|
||||||
"owner": "notashelf",
|
"owner": "notashelf",
|
||||||
"repo": "nvf",
|
"repo": "nvf",
|
||||||
"rev": "2809f4d43071e124f316ecf6dd0c68302f1078af",
|
"rev": "ef1f22efaf4aa37ba9382a7d1807fa8ac9c097fd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -677,69 +462,32 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776592848,
|
"lastModified": 1767512451,
|
||||||
"narHash": "sha256-xpoDCBLPNViU9kxDr8f2z1MuPLvrmCkrJxymUuanv88=",
|
"narHash": "sha256-ig5p+D8ruePISv0bbU3XUhMg4mOtpvpxYXZBKwanh2g=",
|
||||||
"ref": "refs/heads/pages",
|
"ref": "refs/heads/home-manager",
|
||||||
"rev": "1c69c28a9b6184529c0f756a386c6fbfde35a150",
|
"rev": "5b227c1bd23728d57376fe9009c6e1c5569593e1",
|
||||||
"revCount": 2812,
|
"revCount": 2515,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://codeberg.org/andromeda-fp/Phoenix"
|
"url": "file:///home/andromeda/pp/forks/phoenix"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"rev": "1c69c28a9b6184529c0f756a386c6fbfde35a150",
|
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://codeberg.org/andromeda-fp/Phoenix"
|
"url": "file:///home/andromeda/pp/forks/phoenix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
"anki-cli": "anki-cli",
|
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"impermanence": "impermanence",
|
"impermanence": "impermanence",
|
||||||
"nix-zulip": "nix-zulip",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixos-mailserver": "nixos-mailserver",
|
"noshell": "noshell",
|
||||||
"nixpkgs": "nixpkgs_2",
|
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
"nvf": "nvf",
|
"nvf": "nvf",
|
||||||
"phoenix": "phoenix",
|
"phoenix": "phoenix",
|
||||||
"stylix": "stylix"
|
"stylix": "stylix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer-src": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1776115521,
|
|
||||||
"narHash": "sha256-N/R1//Xd8vr84LtyTy8CVz7V2n9NJXXlJEODSunLE9c=",
|
|
||||||
"owner": "rust-lang",
|
|
||||||
"repo": "rust-analyzer",
|
|
||||||
"rev": "5205b52ea60dd49c7e33dd2ad1a3e7ef55bb30ec",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "rust-lang",
|
|
||||||
"ref": "nightly",
|
|
||||||
"repo": "rust-analyzer",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rust-analyzer-src_2": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1752428706,
|
|
||||||
"narHash": "sha256-EJcdxw3aXfP8Ex1Nm3s0awyH9egQvB2Gu+QEnJn2Sfg=",
|
|
||||||
"owner": "rust-lang",
|
|
||||||
"repo": "rust-analyzer",
|
|
||||||
"rev": "591e3b7624be97e4443ea7b5542c191311aa141d",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "rust-lang",
|
|
||||||
"ref": "nightly",
|
|
||||||
"repo": "rust-analyzer",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"stylix": {
|
"stylix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"base16": "base16",
|
"base16": "base16",
|
||||||
@@ -754,17 +502,18 @@
|
|||||||
],
|
],
|
||||||
"nur": "nur_2",
|
"nur": "nur_2",
|
||||||
"systems": "systems_3",
|
"systems": "systems_3",
|
||||||
|
"tinted-foot": "tinted-foot",
|
||||||
"tinted-kitty": "tinted-kitty",
|
"tinted-kitty": "tinted-kitty",
|
||||||
"tinted-schemes": "tinted-schemes",
|
"tinted-schemes": "tinted-schemes",
|
||||||
"tinted-tmux": "tinted-tmux",
|
"tinted-tmux": "tinted-tmux",
|
||||||
"tinted-zed": "tinted-zed"
|
"tinted-zed": "tinted-zed"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776170745,
|
"lastModified": 1766603026,
|
||||||
"narHash": "sha256-Tl1aZVP5EIlT+k0+iAKH018GLHJpLz3hhJ0LNQOWxCc=",
|
"narHash": "sha256-J2DDdRqSU4w9NNgkMfmMeaLIof5PXtS9RG7y6ckDvQE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"rev": "e3861617645a43c9bbefde1aa6ac54dd0a44bfa9",
|
"rev": "551df12ee3ebac52c5712058bd97fd9faa4c3430",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -818,6 +567,23 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"tinted-foot": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1726913040,
|
||||||
|
"narHash": "sha256-+eDZPkw7efMNUf3/Pv0EmsidqdwNJ1TaOum6k7lngDQ=",
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "tinted-foot",
|
||||||
|
"rev": "fd1b924b6c45c3e4465e8a849e67ea82933fcbe4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "tinted-foot",
|
||||||
|
"rev": "fd1b924b6c45c3e4465e8a849e67ea82933fcbe4",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"tinted-kitty": {
|
"tinted-kitty": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -837,11 +603,11 @@
|
|||||||
"tinted-schemes": {
|
"tinted-schemes": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772661346,
|
"lastModified": 1763914658,
|
||||||
"narHash": "sha256-4eu3LqB9tPqe0Vaqxd4wkZiBbthLbpb7llcoE/p5HT0=",
|
"narHash": "sha256-Hju0WtMf3iForxtOwXqGp3Ynipo0EYx1AqMKLPp9BJw=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "schemes",
|
"repo": "schemes",
|
||||||
"rev": "13b5b0c299982bb361039601e2d72587d6846294",
|
"rev": "0f6be815d258e435c9b137befe5ef4ff24bea32c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -853,11 +619,11 @@
|
|||||||
"tinted-tmux": {
|
"tinted-tmux": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772934010,
|
"lastModified": 1764465359,
|
||||||
"narHash": "sha256-x+6+4UvaG+RBRQ6UaX+o6DjEg28u4eqhVRM9kpgJGjQ=",
|
"narHash": "sha256-lbSVPqLEk2SqMrnpvWuKYGCaAlfWFMA6MVmcOFJjdjE=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "tinted-tmux",
|
"repo": "tinted-tmux",
|
||||||
"rev": "c3529673a5ab6e1b6830f618c45d9ce1bcdd829d",
|
"rev": "edf89a780e239263cc691a987721f786ddc4f6aa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -869,11 +635,11 @@
|
|||||||
"tinted-zed": {
|
"tinted-zed": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772909925,
|
"lastModified": 1764464512,
|
||||||
"narHash": "sha256-jx/5+pgYR0noHa3hk2esin18VMbnPSvWPL5bBjfTIAU=",
|
"narHash": "sha256-rCD/pAhkMdCx6blsFwxIyvBJbPZZ1oL2sVFrH07lmqg=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "base16-zed",
|
"repo": "base16-zed",
|
||||||
"rev": "b4d3a1b3bcbd090937ef609a0a3b37237af974df",
|
"rev": "907dbba5fb8cf69ebfd90b00813418a412d0a29a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
50
flake.nix
50
flake.nix
@@ -4,23 +4,15 @@
|
|||||||
url = "github:ryantm/agenix";
|
url = "github:ryantm/agenix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
anki-cli = {
|
|
||||||
url = "git+https://git.mtgmonkey.net/Andromeda/anki-cli.git";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
impermanence.url = "github:nix-community/impermanence";
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
nixos-mailserver = {
|
|
||||||
url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nix-zulip = {
|
noshell = {
|
||||||
url = "git+https://git.afnix.fr/nix-zulip/nix-zulip";
|
url = "github:viperML/noshell";
|
||||||
flake = false;
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nur = {
|
nur = {
|
||||||
url = "github:nix-community/NUR";
|
url = "github:nix-community/NUR";
|
||||||
@@ -31,8 +23,7 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
phoenix = {
|
phoenix = {
|
||||||
# TODO when pull #270 gets merged use celenity again
|
url = "git+file:///home/andromeda/pp/forks/phoenix";
|
||||||
url = "git+https://codeberg.org/andromeda-fp/Phoenix?rev=1c69c28a9b6184529c0f756a386c6fbfde35a150";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
stylix = {
|
stylix = {
|
||||||
@@ -42,19 +33,16 @@
|
|||||||
};
|
};
|
||||||
outputs = {
|
outputs = {
|
||||||
agenix,
|
agenix,
|
||||||
anki-cli,
|
|
||||||
home-manager,
|
home-manager,
|
||||||
impermanence,
|
impermanence,
|
||||||
nixos-mailserver,
|
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
nix-zulip,
|
noshell,
|
||||||
nur,
|
nur,
|
||||||
nvf,
|
nvf,
|
||||||
phoenix,
|
phoenix,
|
||||||
stylix,
|
stylix,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
nix-zulip' = (import "${nix-zulip}/nix/default.nix" {}).output;
|
|
||||||
machines = import ./machines.nix;
|
machines = import ./machines.nix;
|
||||||
configuration = machine: modules:
|
configuration = machine: modules:
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
@@ -63,34 +51,24 @@
|
|||||||
modules =
|
modules =
|
||||||
modules
|
modules
|
||||||
++ [
|
++ [
|
||||||
|
./machines/${machine.hostname}/configuration.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
./modules/nixos/common.nix
|
|
||||||
agenix.nixosModules.default
|
|
||||||
impermanence.nixosModules.impermanence
|
impermanence.nixosModules.impermanence
|
||||||
nixos-mailserver.nixosModule
|
agenix.nixosModules.default
|
||||||
nix-zulip'.nixosModules.zulip
|
];
|
||||||
phoenix.nixosModules.default
|
|
||||||
({pkgs, ...}: {
|
|
||||||
nixpkgs.overlays = [
|
|
||||||
agenix.overlays.default
|
|
||||||
nur.overlays.default
|
|
||||||
nix-zulip'.overlays.default
|
|
||||||
(self: super: {
|
|
||||||
anki-cli = anki-cli.packages.${machine.system}.default;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
})
|
|
||||||
]
|
|
||||||
++ machine.modules;
|
|
||||||
};
|
};
|
||||||
configurationWithHomeManager = machine: (configuration machine
|
configurationWithHomeManager = machine: (configuration machine
|
||||||
[
|
[
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
agenix.overlays.default
|
||||||
|
nur.overlays.default
|
||||||
|
phoenix.overlays.default
|
||||||
|
];
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.extraSpecialArgs = {inherit machine;};
|
home-manager.extraSpecialArgs = {inherit machine;};
|
||||||
home-manager.backupFileExtension = "bak";
|
|
||||||
home-manager.users =
|
home-manager.users =
|
||||||
builtins.mapAttrs
|
builtins.mapAttrs
|
||||||
(name: value: value)
|
(name: value: value)
|
||||||
@@ -101,6 +79,7 @@
|
|||||||
name: {
|
name: {
|
||||||
imports = [
|
imports = [
|
||||||
agenix.homeManagerModules.default
|
agenix.homeManagerModules.default
|
||||||
|
phoenix.homeModules.default
|
||||||
stylix.homeModules.stylix
|
stylix.homeModules.stylix
|
||||||
nvf.homeManagerModules.default
|
nvf.homeManagerModules.default
|
||||||
./users/${name}/home.nix
|
./users/${name}/home.nix
|
||||||
@@ -109,6 +88,7 @@
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
noshell.nixosModules.default
|
||||||
]);
|
]);
|
||||||
in {
|
in {
|
||||||
nixosConfigurations =
|
nixosConfigurations =
|
||||||
|
|||||||
@@ -1,24 +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 = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
}
|
|
||||||
75
machines.nix
75
machines.nix
@@ -2,81 +2,16 @@
|
|||||||
lenovo = {
|
lenovo = {
|
||||||
hostname = "lenovo";
|
hostname = "lenovo";
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
users = ["andromeda"];
|
users = [
|
||||||
modules = [
|
"andromeda"
|
||||||
# impermanence
|
"mtgmonkey"
|
||||||
./modules/nixos/impermanence.nix
|
|
||||||
./modules/nixos/impermanence-ssh.nix
|
|
||||||
|
|
||||||
# hardware configuration
|
|
||||||
# includes `system.stateVersion`
|
|
||||||
./modules/nixos/machines/lenovo.nix
|
|
||||||
./modules/nixos/zram.nix
|
|
||||||
|
|
||||||
# boot process
|
|
||||||
# systemd-boot
|
|
||||||
./modules/nixos/boot/lenovo.nix
|
|
||||||
|
|
||||||
# networking
|
|
||||||
./modules/nixos/laptop.nix
|
|
||||||
|
|
||||||
# vpn
|
|
||||||
# ./modules/nixos/openvpn-client.nix
|
|
||||||
|
|
||||||
# ly display manager
|
|
||||||
./modules/nixos/ly.nix
|
|
||||||
|
|
||||||
# sway window manager
|
|
||||||
./modules/nixos/sway.nix
|
|
||||||
|
|
||||||
# apps
|
|
||||||
# UNFREE
|
|
||||||
./modules/nixos/steam.nix
|
|
||||||
|
|
||||||
# substitutors
|
|
||||||
./substitutors.nix
|
|
||||||
|
|
||||||
{
|
|
||||||
services.guix = {
|
|
||||||
enable = true;
|
|
||||||
stateDir = "/gnu/var";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"109-199-104-83" = {
|
"109-199-104-83" = {
|
||||||
hostname = "109-199-104-83";
|
hostname = "109-199-104-83";
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
users = [];
|
users = [
|
||||||
modules = [
|
"mtgmonkey"
|
||||||
# hardware configuration
|
|
||||||
# from gitlab:whitequark/nixos-bite
|
|
||||||
./modules/nixos/machines/109-199-104-83.nix
|
|
||||||
|
|
||||||
# networking
|
|
||||||
./modules/nixos/networking/domains/galaxious.de.nix
|
|
||||||
|
|
||||||
# ssh through port 5522 among other things
|
|
||||||
# andromeda@lenovo is the only user allowed access
|
|
||||||
./modules/nixos/networking/hard-ssh.nix
|
|
||||||
({config, ...}: {users.users.root.openssh.authorizedKeys.keys = [config.pub-keys.ssh.andromeda];})
|
|
||||||
|
|
||||||
# simple-nixos-mailserver email server
|
|
||||||
# mail.domain
|
|
||||||
./modules/nixos/mailserver.nix
|
|
||||||
|
|
||||||
# roundcube webmail client
|
|
||||||
# webmail.domain
|
|
||||||
./modules/nixos/roundcube.nix
|
|
||||||
|
|
||||||
# BROKEN
|
|
||||||
# forgejo
|
|
||||||
# git.domain
|
|
||||||
# ./modules/nixos/forgejo.nix
|
|
||||||
|
|
||||||
# zulip chat client
|
|
||||||
# chat.domain
|
|
||||||
# ./modules/nixos/zulip.nix
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
{modulesPath, ...}: {
|
{
|
||||||
|
config,
|
||||||
|
modulesPath,
|
||||||
|
machine,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
|
nix.settings.experimental-features = ["flakes" "nix-command"];
|
||||||
# Hardware
|
|
||||||
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
|
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/sda1";
|
device = "/dev/sda1";
|
||||||
@@ -12,13 +16,12 @@
|
|||||||
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront"];
|
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront"];
|
||||||
boot.initrd.kernelModules = ["nvme"];
|
boot.initrd.kernelModules = ["nvme"];
|
||||||
boot.tmp.cleanOnBoot = true;
|
boot.tmp.cleanOnBoot = true;
|
||||||
|
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
|
|
||||||
# Networking
|
|
||||||
networking = {
|
networking = {
|
||||||
useNetworkd = true;
|
useNetworkd = true;
|
||||||
usePredictableInterfaceNames = true;
|
usePredictableInterfaceNames = true;
|
||||||
|
hostName = machine.hostname;
|
||||||
|
domain = "galaxious.de";
|
||||||
};
|
};
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -32,7 +35,11 @@
|
|||||||
}
|
}
|
||||||
{Gateway = "fe80::1";}
|
{Gateway = "fe80::1";}
|
||||||
];
|
];
|
||||||
dns = ["2020:fe::10" "9.9.9.10"];
|
dns = ["2620:fe::fe" "9.9.9.9"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
services.openssh.enable = true;
|
||||||
|
users.mutableUsers = false;
|
||||||
|
users.users.root.openssh.authorizedKeys.keys = [config.pub-keys.ssh.andromeda];
|
||||||
|
programs.noshell.enable = true;
|
||||||
}
|
}
|
||||||
119
machines/lenovo/configuration.nix
Normal file
119
machines/lenovo/configuration.nix
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
modulesPath,
|
||||||
|
machine,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
./impermanence.nix
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
age.secrets = {
|
||||||
|
secret0.file = ../../secrets/secret0.age;
|
||||||
|
secret1.file = ../../secrets/secret1.age;
|
||||||
|
};
|
||||||
|
boot.loader = {
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
};
|
||||||
|
hardware.bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = true;
|
||||||
|
};
|
||||||
|
i18n.defaultLocale = "de_DE.UTF-8";
|
||||||
|
networking = {
|
||||||
|
dhcpcd.enable = true;
|
||||||
|
firewall.enable = true;
|
||||||
|
hostName = machine.hostname;
|
||||||
|
networkmanager.enable = true;
|
||||||
|
};
|
||||||
|
nix.settings.experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [
|
||||||
|
"steam"
|
||||||
|
"steam-original"
|
||||||
|
"steam-unwrapped"
|
||||||
|
"steam-run"
|
||||||
|
];
|
||||||
|
programs = {
|
||||||
|
noshell.enable = true;
|
||||||
|
steam.enable = true;
|
||||||
|
sway.enable = true;
|
||||||
|
};
|
||||||
|
services = {
|
||||||
|
blueman.enable = true;
|
||||||
|
displayManager = {
|
||||||
|
enable = true;
|
||||||
|
ly.enable = true;
|
||||||
|
};
|
||||||
|
libinput.enable = true;
|
||||||
|
openssh.enable = true;
|
||||||
|
printing.enable = true;
|
||||||
|
};
|
||||||
|
system.stateVersion = "26.05";
|
||||||
|
time.timeZone = "Europe/Berlin";
|
||||||
|
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "sdhci_pci"];
|
||||||
|
boot.initrd.kernelModules = [];
|
||||||
|
boot.kernelModules = ["kvm-intel"];
|
||||||
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
#device = "none";
|
||||||
|
#fsType = "tmpfs";
|
||||||
|
#options = ["defaults" "size=60%" "mode=755"];
|
||||||
|
device = "/dev/disk/by-uuid/5455cfb4-0efd-4f55-b496-d2cab3f419b7";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = ["subvol=root"];
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.initrd.postResumeCommands = lib.mkAfter ''
|
||||||
|
mkdir /btrfs_tmp
|
||||||
|
mount ${config.fileSystems."/".device} /btrfs_tmp
|
||||||
|
if [[ -e /btrfs_tmp/root ]]; then
|
||||||
|
mkdir -p /btrfs_tmp/old_roots
|
||||||
|
timestamp=$(date --date="@$(stat -c %Y /btrfs_tmp/root)" "+%Y-%m-%-d_%H:$M:%S")
|
||||||
|
mv /btrfs_tmp/root "/btrfs_tmp/old_roots/$timestamp"
|
||||||
|
fi
|
||||||
|
|
||||||
|
delete_subvolume_recursively() {
|
||||||
|
IFS=$'\n'
|
||||||
|
for i in $(btrfs subvolume list -o "$1" | cut -f 9- -d ' '); do
|
||||||
|
delete_subvolume_recursively "/btrfs_tmp/$i"
|
||||||
|
done
|
||||||
|
btrfs subvolume delete "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
for i in $(find /btrfs_tmp/old_roots/ -maxdepth 1 -mtime +30); do
|
||||||
|
delete_subvolume_recursively "$i"
|
||||||
|
done
|
||||||
|
|
||||||
|
btrfs subvolume create /btrfs_tmp/root
|
||||||
|
mkdir /btrfs_tmp/root/nix
|
||||||
|
mkdir /btrfs_tmp/root/etc
|
||||||
|
mount ${config.fileSystems."/nix".device} /btrfs_tmp/root/nix
|
||||||
|
cp /btrfs_tmp/root/nix/persist/etc/ssh /btrfs_tmp/root/etc/ssh -r
|
||||||
|
umount /btrfs_tmp/root/nix
|
||||||
|
rm -r /btrfs_tmp/root/nix
|
||||||
|
umount /btrfs_tmp
|
||||||
|
'';
|
||||||
|
|
||||||
|
fileSystems."/nix" = {
|
||||||
|
device = "/dev/disk/by-uuid/0e586651-36f4-42b0-99b3-3f0704a894d6";
|
||||||
|
fsType = "btrfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/F425-55BA";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = ["fmask=0022" "dmask=0022"];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
@@ -1,16 +1,19 @@
|
|||||||
{
|
{
|
||||||
fileSystems."/persist".neededForBoot = true;
|
environment.persistence."/nix/persist" = {
|
||||||
environment.persistence."/persist" = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
hideMounts = true;
|
hideMounts = true;
|
||||||
directories = [
|
directories = [
|
||||||
"/var/log"
|
"/var/log"
|
||||||
|
"/var/lib/bluetooth"
|
||||||
"/var/lib/nixos"
|
"/var/lib/nixos"
|
||||||
"/var/lib/systemd/coredump"
|
"/var/lib/systemd/coredump"
|
||||||
"/gnu"
|
"/etc/NetworkManager/system-connections"
|
||||||
|
"/etc/ssh"
|
||||||
|
"/etc/ly/custom-sessions"
|
||||||
];
|
];
|
||||||
files = [
|
files = [
|
||||||
"/etc/machine-id"
|
"/etc/machine-id"
|
||||||
|
"/etc/ly/save.txt"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
boot.loader = {
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
systemd-boot.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
# flakes usage
|
|
||||||
nix.settings.experimental-features = [
|
|
||||||
"flakes"
|
|
||||||
"nix-command"
|
|
||||||
];
|
|
||||||
|
|
||||||
# allows users to customize shell in `$XDG_CONFIG_HOME/shell` rather than
|
|
||||||
# needing /etc/shells. Useful for home-manager.
|
|
||||||
# programs.noshell.enable = true;
|
|
||||||
|
|
||||||
# cleans /tmp to maintain a tidy system
|
|
||||||
boot.tmp.cleanOnBoot = true;
|
|
||||||
|
|
||||||
networking.domain = lib.mkDefault config.networking.hostName;
|
|
||||||
|
|
||||||
# disable lecture
|
|
||||||
security.sudo.extraConfig = ''Defaults lecture="never"'';
|
|
||||||
|
|
||||||
# make users immutable
|
|
||||||
users.mutableUsers = false;
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
{config, ...}: {
|
|
||||||
services.nginx = {
|
|
||||||
virtualHosts.${config.services.forgejo.settings.server.DOMAIN} = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
extraConfig = ''
|
|
||||||
client_max_body_size 512M
|
|
||||||
'';
|
|
||||||
locations."/".proxyPass = "https://localhost:${builtins.toString config.services.forgejo.settings.server.HTTP_PORT}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.forgejo = {
|
|
||||||
enable = true;
|
|
||||||
database.type = "postgres";
|
|
||||||
lfs.enable = true;
|
|
||||||
settings = {
|
|
||||||
server = rec {
|
|
||||||
DOMAIN = "git.galaxious.de";
|
|
||||||
ROOT_URL = "https://${DOMAIN}";
|
|
||||||
HTTP_PORT = 4043;
|
|
||||||
SSH_PORT = 4022;
|
|
||||||
};
|
|
||||||
service.DISABLE_REGISTRATION = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.openssh.ports = [config.services.forgejo.settings.server.SSH_PORT];
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
# ONLY include this module AFTER a machine has been provisioned
|
|
||||||
environment.persistence."/persist".directories = ["/etc/ssh"];
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
{
|
|
||||||
# bluetooth
|
|
||||||
hardware.bluetooth = {
|
|
||||||
enable = true;
|
|
||||||
powerOnBoot = true;
|
|
||||||
};
|
|
||||||
services.blueman.enable = true;
|
|
||||||
|
|
||||||
# locale
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
time.timeZone = "Europe/Berlin";
|
|
||||||
|
|
||||||
# networking
|
|
||||||
networking = {
|
|
||||||
firewall.enable = true;
|
|
||||||
networkmanager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# misc
|
|
||||||
services = {
|
|
||||||
printing.enable = true;
|
|
||||||
|
|
||||||
# trackpad
|
|
||||||
libinput.enable = true;
|
|
||||||
|
|
||||||
# ssh
|
|
||||||
openssh.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# impermanence
|
|
||||||
environment.persistence."/persist".directories = [
|
|
||||||
# bluetooth
|
|
||||||
"/var/lib/bluetooth"
|
|
||||||
# wifi connections
|
|
||||||
"/etc/NetworkManager/system-connections"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
services.displayManager = {
|
|
||||||
enable = true;
|
|
||||||
ly.enable = true;
|
|
||||||
};
|
|
||||||
# TODO needs to be manually updated when new users added
|
|
||||||
environment.persistence."/persist" = {
|
|
||||||
directories = ["/etc/ly/custom-sessions"];
|
|
||||||
files = ["/etc/ly/save.txt"];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,108 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
|
||||||
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "sdhci_pci"];
|
|
||||||
boot.initrd.kernelModules = [];
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
boot.kernelModules = ["kvm-intel"];
|
|
||||||
boot.extraModulePackages = [];
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "/dev/disk/by-uuid/5455cfb4-0efd-4f55-b496-d2cab3f419b7";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = ["subvol=root"];
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd.systemd = {
|
|
||||||
services.impermanent-btrfs = {
|
|
||||||
description = "saves old root and makes new one";
|
|
||||||
unitConfig.DefaultDependencies = false;
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
StandardOutput = "journal+console";
|
|
||||||
StandardError = "journal+console";
|
|
||||||
};
|
|
||||||
requiredBy = [
|
|
||||||
"initrd.target"
|
|
||||||
];
|
|
||||||
before = [
|
|
||||||
"sysroot.mount"
|
|
||||||
];
|
|
||||||
requires = [
|
|
||||||
"initrd-root-device.target"
|
|
||||||
];
|
|
||||||
after = [
|
|
||||||
"initrd-root-device.target"
|
|
||||||
"local-fs-pre.target"
|
|
||||||
];
|
|
||||||
script = ''
|
|
||||||
mkdir /btrfs_tmp
|
|
||||||
mount ${config.fileSystems."/".device} /btrfs_tmp
|
|
||||||
if [[ -e /btrfs_tmp/root ]]; then
|
|
||||||
mkdir -p /btrfs_tmp/old_roots
|
|
||||||
timestamp=$(date --date="@$(stat -c %Y /btrfs_tmp/root)" "+%Y-%m-%-d_%H:$M:%S")
|
|
||||||
mv /btrfs_tmp/root "/btrfs_tmp/old_roots/$timestamp"
|
|
||||||
fi
|
|
||||||
|
|
||||||
delete_subvolume_recursively() {
|
|
||||||
IFS=$'\n'
|
|
||||||
for i in $(btrfs subvolume list -o "$1" | cut -f 9- -d ' '); do
|
|
||||||
delete_subvolume_recursively "/btrfs_tmp/$i"
|
|
||||||
done
|
|
||||||
btrfs subvolume delete "$1"
|
|
||||||
}
|
|
||||||
|
|
||||||
for i in $(find /btrfs_tmp/old_roots/ -maxdepth 1 -mtime +30); do
|
|
||||||
delete_subvolume_recursively "$i"
|
|
||||||
done
|
|
||||||
|
|
||||||
btrfs subvolume create /btrfs_tmp/root
|
|
||||||
mkdir /btrfs_tmp/root/persist
|
|
||||||
mkdir /btrfs_tmp/root/etc
|
|
||||||
mount ${config.fileSystems."/persist".device} /btrfs_tmp/root/persist -o subvol=persist
|
|
||||||
cp /btrfs_tmp/root/persist/etc/ssh /btrfs_tmp/root/etc/ssh -r
|
|
||||||
umount /btrfs_tmp/root/persist
|
|
||||||
rm -r /btrfs_tmp/root/persist
|
|
||||||
umount /btrfs_tmp
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
extraBin = {
|
|
||||||
"mkdir" = "${pkgs.coreutils}/bin/mkdir";
|
|
||||||
"date" = "${pkgs.coreutils}/bin/date";
|
|
||||||
"stat" = "${pkgs.coreutils}/bin/stat";
|
|
||||||
"mv" = "${pkgs.coreutils}/bin/mv";
|
|
||||||
"cp" = "${pkgs.coreutils}/bin/cp";
|
|
||||||
"rm" = "${pkgs.coreutils}/bin/rm";
|
|
||||||
"btrfs" = "${pkgs.btrfs-progs}/bin/btrfs";
|
|
||||||
# find, mount, umount already there
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/nix" = {
|
|
||||||
device = "/dev/disk/by-uuid/0e586651-36f4-42b0-99b3-3f0704a894d6";
|
|
||||||
fsType = "btrfs";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/persist" = {
|
|
||||||
device = "/dev/disk/by-uuid/5455cfb4-0efd-4f55-b496-d2cab3f419b7";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = ["subvol=persist"];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/F425-55BA";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = ["fmask=0022" "dmask=0022"];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [];
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
system.stateVersion = "26.05";
|
|
||||||
}
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
{config, ...}: {
|
|
||||||
mailserver = {
|
|
||||||
enable = true;
|
|
||||||
stateVersion = 3;
|
|
||||||
|
|
||||||
# domain bs
|
|
||||||
fqdn = "mail.${config.networking.domain}";
|
|
||||||
domains = ["${config.networking.domain}"];
|
|
||||||
x509.useACMEHost = config.mailserver.fqdn;
|
|
||||||
|
|
||||||
loginAccounts = {
|
|
||||||
# test acc
|
|
||||||
"test@${config.networking.domain}" = {
|
|
||||||
hashedPasswordFile = builtins.toString config.age.secrets.mailserver-acc-test-pw.path;
|
|
||||||
};
|
|
||||||
"admin@${config.networking.domain}" = {
|
|
||||||
hashedPasswordFile = builtins.toString config.age.secrets.mailserver-acc-admin-pw.path;
|
|
||||||
aliases = ["@${config.networking.domain}"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# put dkim key into /etc for declarability
|
|
||||||
mailserver.dkimKeyDirectory = "/etc/dkim";
|
|
||||||
environment.etc."dkim/${config.networking.domain}.${config.mailserver.dkimSelector}.key" = {
|
|
||||||
source = config.age.secrets."dkim-${config.networking.domain}.${config.mailserver.dkimSelector}.key".path;
|
|
||||||
mode = "600";
|
|
||||||
user = config.services.rspamd.user;
|
|
||||||
group = config.services.rspamd.group;
|
|
||||||
};
|
|
||||||
|
|
||||||
# does acme for me
|
|
||||||
services.nginx = {
|
|
||||||
enable = true;
|
|
||||||
virtualHosts = {
|
|
||||||
"mail.${config.networking.domain}" = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
};
|
|
||||||
"${config.networking.domain}" = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
security.acme = {
|
|
||||||
acceptTerms = true;
|
|
||||||
defaults.email = "mtgmonket@gmail.com";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
networking.domain = "galaxious.de";
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
allowSFTP = false;
|
|
||||||
ports = [5522];
|
|
||||||
settings = {
|
|
||||||
PasswordAuthentication = false;
|
|
||||||
KbdInteractiveAuthentication = true;
|
|
||||||
};
|
|
||||||
extraConfig = ''
|
|
||||||
AllowTcpForwarding no
|
|
||||||
AllowAgentForwarding no
|
|
||||||
MaxAuthTries 3
|
|
||||||
MaxSessions 4
|
|
||||||
TCPKeepAlive no
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{lib, ...}: {
|
|
||||||
services.openssh.settings.PermitRootLogin = lib.mkForce "yes";
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{config, ...}: {
|
|
||||||
services.roundcube = {
|
|
||||||
enable = true;
|
|
||||||
hostName = "webmail.${config.networking.domain}";
|
|
||||||
extraConfig = ''
|
|
||||||
$config['imap_host'] = "ssl://${config.mailserver.fqdn}";
|
|
||||||
$config['smtp_host'] = "ssl://${config.mailserver.fqdn}";
|
|
||||||
$config['smtp_user'] = "%u";
|
|
||||||
$config['smtp_pass'] = "%p";
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{lib, ...}: {
|
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
||||||
builtins.elem (lib.getName pkg) [
|
|
||||||
"steam"
|
|
||||||
"steam-original"
|
|
||||||
"steam-unwrapped"
|
|
||||||
"steam-run"
|
|
||||||
];
|
|
||||||
programs.steam.enable = true;
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
programs.sway.enable = true;
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
zramSwap = {
|
|
||||||
enable = true;
|
|
||||||
priority = 100;
|
|
||||||
algorithm = "zstd";
|
|
||||||
memoryPercent = 75;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
{config, ...}: {
|
|
||||||
services.zulip = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
# lets it set up my postgresql for me
|
|
||||||
enablePostgresqlLocally = true;
|
|
||||||
|
|
||||||
# host domain
|
|
||||||
host = "chat.${config.networking.domain}";
|
|
||||||
|
|
||||||
# secrets; head rolled on keyboard for all :)
|
|
||||||
camoKeyFile = builtins.toString config.age.secrets.zulip-camoKey.path;
|
|
||||||
rabbitmqPasswordFile = builtins.toString config.age.secrets.zulip-rabbitmqPassword.path;
|
|
||||||
secretKeyFile = builtins.toString config.age.secrets.zulip-secretKey.path;
|
|
||||||
sharedSecretKeyFile = builtins.toString config.age.secrets.zulip-sharedSecretKey.path;
|
|
||||||
avatarSaltKeyFile = builtins.toString config.age.secrets.zulip-avatarSaltKey.path;
|
|
||||||
|
|
||||||
# TODO check for parity with `mailserver-acc-admin-pw.age`
|
|
||||||
extraSecrets.email_password = builtins.toString config.age.secrets.zulip-extraSecrets-email_password.path;
|
|
||||||
|
|
||||||
# settings
|
|
||||||
zulipSettings = rec {
|
|
||||||
# email users
|
|
||||||
ZULIP_ADMINISTRATOR = "admin@${config.networking.domain}";
|
|
||||||
EMAIL_HOST_USER = ZULIP_ADMINISTRATOR;
|
|
||||||
|
|
||||||
# configure mailserver port
|
|
||||||
EMAIL_HOST = config.mailserver.fqdn;
|
|
||||||
EMAIL_USE_SSL = true;
|
|
||||||
EMAIL_PORT = 465;
|
|
||||||
|
|
||||||
# setting to allow realm creation; probably unsafe, might delete later :3
|
|
||||||
OPEN_REALM_CREATION = true;
|
|
||||||
|
|
||||||
# send all noreply emails from `admin@galaxious.de`
|
|
||||||
# TODO configure admin to send from any address
|
|
||||||
ADD_TOKENS_TO_NOREPLY_ADDRESS = false;
|
|
||||||
NOREPLY_EMAIL_ADDRESS = ZULIP_ADMINISTRATOR;
|
|
||||||
|
|
||||||
# domain name
|
|
||||||
EXTERNAL_HOST = config.services.zulip.host;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# persist
|
|
||||||
environment.persistence."/persist".directories = [
|
|
||||||
# messages
|
|
||||||
"/var/lib/rabbitmq"
|
|
||||||
# uploads
|
|
||||||
"/var/lib/zulip"
|
|
||||||
|
|
||||||
# contrived, but in the store a couple layers down
|
|
||||||
# "/var/lib/redis-zulip"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [];
|
|
||||||
options = {};
|
|
||||||
config = {};
|
|
||||||
}
|
|
||||||
18
pub-keys.nix
18
pub-keys.nix
@@ -1,24 +1,14 @@
|
|||||||
{
|
{
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
andromeda-pw.file = ./secrets/andromeda-pw.age;
|
secret0.file = ./secrets/secret0.age;
|
||||||
conduit-secretFile.file = ./secrets/conduit-secretFile.age;
|
secret1.file = ./secrets/secret1.age;
|
||||||
"dkim-galaxious.de.mail.key".file = ./secrets/dkim-galaxious.de.mail.key.age;
|
secret2.file = ./secrets/secret2.age;
|
||||||
mtgmonkey-pw.file = ./secrets/mtgmonkey-pw.age;
|
|
||||||
mailserver-acc-test-pw.file = ./secrets/mailserver-acc-test-pw.age;
|
|
||||||
mailserver-acc-admin-pw.file = ./secrets/mailserver-acc-admin-pw.age;
|
|
||||||
"mailserver-acc-zulip+admin-pw".file = "${./secrets}/mailserver-acc-zulip+admin-pw.age";
|
|
||||||
zulip-avatarSaltKey.file = ./secrets/zulip-avatarSaltKey.age;
|
|
||||||
zulip-camoKey.file = ./secrets/zulip-camoKey.age;
|
|
||||||
zulip-extraSecrets-email_password.file = ./secrets/zulip-extraSecrets-email_password.age;
|
|
||||||
zulip-rabbitmqPassword.file = ./secrets/zulip-rabbitmqPassword.age;
|
|
||||||
zulip-secretKey.file = ./secrets/zulip-secretKey.age;
|
|
||||||
zulip-sharedSecretKey.file = ./secrets/zulip-sharedSecretKey.age;
|
|
||||||
};
|
};
|
||||||
pub-keys = {
|
pub-keys = {
|
||||||
ssh = {
|
ssh = {
|
||||||
andromeda = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJy2VD362wUcu0lKj2d6OIU8dbAna0Lu/NaAYIj8gdIA andromeda@lenovo";
|
andromeda = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJy2VD362wUcu0lKj2d6OIU8dbAna0Lu/NaAYIj8gdIA andromeda@lenovo";
|
||||||
lenovo = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHG4eqsLTq2os2mxfwhys3BpVnowcJrqt2CbRFzN2pJb root@lenovo";
|
lenovo = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHG4eqsLTq2os2mxfwhys3BpVnowcJrqt2CbRFzN2pJb root@lenovo";
|
||||||
_109-199-104-83 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPkg4vbyGDxrAtKFK7Pecr/qDK9cUjv+kfhQMjO6M/Ft root@vmi2998419";
|
_109-199-104-83 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJe5ol56yC23fivSEKeK4HZQm934ROX46AM7o0aE2hMq root@vmi2998419";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 mT2fyg geMV+A9hasvKDnYiQMQWpz2o9mkUhX/Qmc1m4uvKIBs
|
|
||||||
3vYZmwZPDVwqYRe2GHmxPXXx4qSWa3eqcWuH+sKWEYw
|
|
||||||
-> ssh-ed25519 UHxfvA FzNzq3yYNeDZ5x/g3cRVEaRu0txR3RORSeNFssrVuyc
|
|
||||||
dRQGhtVRMC65sHqlmxSXjwpsxtCqhifkVNWvBrrB4b8
|
|
||||||
--- bHi+Q07PCpmPzalAkbaN+/H1tXLyJNbpBs3VMpDnSnU
|
|
||||||
+y¾2‚µÊZ4å<34>'RÔ”ÅÍPX—òR;HŠ”ÞHÆÏw‡éF7dÎñÖO¥<>߀•ïs«.„ó<E2809E>J<EFBFBD>èärXqB¬ûPÉ¢™XÖ<58>ËÈE‘£»%¿¡Öè+(ä^=øÙöeugïêS;“2
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 mT2fyg k+ePDybTbw1Pwy6P8+5HlGg6oCWQsTKVT4j/WUpZcCI
|
|
||||||
F2ySmW8tJ1BDBvLbqtrTMrnPkESAtwXBgzcQ7nVh8+A
|
|
||||||
-> ssh-ed25519 UHxfvA /RzKa63+zOkHudFPCS1hLxj4PjGZCtZ2UIIK0mdItBQ
|
|
||||||
TqdH3kQgMCEtG+rxx+dR+5/tcw05s63Dc1UFflRkoMA
|
|
||||||
-> ssh-ed25519 ZwF9sQ FvquxZ8PsmsoV06o4dBsKZOq46S08Rn1aT3Aco9TuDg
|
|
||||||
UnBKQCYXPa897ahVsj90XsVPuU4RKQ8RmMStY8BuubQ
|
|
||||||
--- MbfHHesbaIlXIg5jziBe4YG95I85ZuikuJLc9F/TEeQ
|
|
||||||
L("Ùß%DYÅ$°Ový¤:G5ÏzèWsœ¡šÏ‹pï<>/ËúðV¹}ëû2xˆ«gRT‰Ã3|Pµ°/§n¼•òÆcIq(7Q-W[ä»ÐØL]ØE¥LS%y3w}¶Œµ°€°“Ütµ/£¿äO /<<3C>þm ÜfþCôn’4”ºÑPyÚ'%+NY´à›B@>œF<>ÐÒ è`,æ-–¯0Ox)<1D>á
|
|
||||||
Ä)kT”ÍVòBxYì‹
|
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,9 +0,0 @@
|
|||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 mT2fyg gUoqW4Oc/4kGV97GqzjBgoAGbDlPr30HQjCSi95IakU
|
|
||||||
WLqdKLGAY//HKMhiWeOEbRkVTUm+bNcGCRwvZ+jxFiQ
|
|
||||||
-> ssh-ed25519 UHxfvA w82yDFitNUAnKzT/0mPNIm4Od9YLwDK+JIHBd6qRsSQ
|
|
||||||
uHYX5DugH0tLqLR1phnyYBNiP2XOV2Hj9tw63+MD1JI
|
|
||||||
-> ssh-ed25519 ZwF9sQ 6dTsOKixioy+ypnpWm1YtKYPrHcS/RSKsoq3o2bnjk8
|
|
||||||
WYED7jkCVNLBaputl0JcfEz8GOX4doUNEihj6ZHx8Eo
|
|
||||||
--- XOUmVi4QpCXDy4yVCZuwiv8Sg+LOsX9vfydM6OqGfTM
|
|
||||||
»?A³Ý'©p…@¶cUØ£Ì8º“1&9aXgÔyj°(óýz+$P36£<36>#ºîƒÊrçRDÊŒ7ªß¥.óÖ\:Ãþpcß<63>œÇp¯Ø€GÓ&+”Öb¢|ž’ß<E28099>6¢ é’Ý»YŽ
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 mT2fyg vcICwHDjTfVHh0+Ip1XKs/6Fo0H1i5lTjBAw1M4NSHA
|
|
||||||
ZzxDjKEUdmyhFjPivAslXxr7tZnj7CVTcffuIhVdekI
|
|
||||||
-> ssh-ed25519 UHxfvA UPc1hBrbx37a4wn/XBxjwQLOk1M0HnHbHpqAQFUhnn8
|
|
||||||
girao3TUDhFe1knuCUtYOh39ukXumjd7s1qzXXLGPjQ
|
|
||||||
-> ssh-ed25519 ZwF9sQ O2QJh1Zsdu0tIA90pTv5NrfcXDAcYFyduq8AtTG7Ujs
|
|
||||||
ahnpyUSFuSwW1Zx7WzqDXFJtYCaUfwJdCyyr5enLz5I
|
|
||||||
--- fYyjQduWvTrenIiJtljSkEZXuyTRWJOvx9LeWoI3ew0
|
|
||||||
…ußߘLÒ8ïÎ:ÂT·$…<10> ñJë´+LÄ?„zÇÍü5rL(MìýÁÑiÀý˜<C3BD>ˆFÀ’N‚±.W+ß·U28Èd$µ<>¯<EFBFBD>Á£‘8Üõm¡4:‘N´<g)©Š‰Ä&Í$Jþ=‚Ævœ
|
|
||||||
Binary file not shown.
7
secrets/secret0.age
Normal file
7
secrets/secret0.age
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 mT2fyg 4fCTrNibFdjnVfsIbXi6plbd56K8ZDDqtgryXPk2SUA
|
||||||
|
vKlbDi+HpyYlSsN39GRh6GRwdHRSjypCEqguOaHPFDM
|
||||||
|
-> ssh-ed25519 UHxfvA RqrDa4xJoAy1Gdzvq6Z5eTSNTDtHzUmzRoLC+j+HxiI
|
||||||
|
+5CohUFSDB9oiLU0T25FKrQrz07DCviVuzZsVcUltOc
|
||||||
|
--- SQ5zQx9lL5UdNinOgP6yG5WWiBdhSwFqJVt6u3SNpLA
|
||||||
|
î6<EFBFBD>©ç¥UÛð¦pî<70>‡„øÚúQÙ]ÜNû;K;1yœµ™
|
||||||
BIN
secrets/secret1.age
Normal file
BIN
secrets/secret1.age
Normal file
Binary file not shown.
BIN
secrets/secret2.age
Normal file
BIN
secrets/secret2.age
Normal file
Binary file not shown.
@@ -4,30 +4,7 @@ let
|
|||||||
lenovo = pub-keys.ssh.lenovo;
|
lenovo = pub-keys.ssh.lenovo;
|
||||||
_109-199-104-83 = pub-keys.ssh._109-199-104-83;
|
_109-199-104-83 = pub-keys.ssh._109-199-104-83;
|
||||||
in {
|
in {
|
||||||
# user passwords
|
"secret0.age".publicKeys = [andromeda lenovo];
|
||||||
"andromeda-pw.age".publicKeys = [andromeda lenovo];
|
"secret1.age".publicKeys = [andromeda lenovo];
|
||||||
"mtgmonkey-pw.age".publicKeys = [andromeda lenovo];
|
"secret2.age".publicKeys = [andromeda lenovo _109-199-104-83];
|
||||||
|
|
||||||
# contains the following env
|
|
||||||
# CONDUIT_JWT_SECRET
|
|
||||||
# CONDUIT_TURN_SECRET
|
|
||||||
"conduit-secretFile.age".publicKeys = [andromeda lenovo _109-199-104-83];
|
|
||||||
|
|
||||||
# dkim private keys
|
|
||||||
"dkim-galaxious.de.mail.key.age".publicKeys = [andromeda lenovo _109-199-104-83];
|
|
||||||
|
|
||||||
# mail account passwords
|
|
||||||
"mailserver-acc-test-pw.age".publicKeys = [andromeda lenovo _109-199-104-83];
|
|
||||||
"mailserver-acc-admin-pw.age".publicKeys = [andromeda lenovo _109-199-104-83];
|
|
||||||
"mailserver-acc-zulip+admin-pw.age".publicKeys = [andromeda lenovo _109-199-104-83];
|
|
||||||
|
|
||||||
# zulip keys
|
|
||||||
"zulip-avatarSaltKey.age".publicKeys = [andromeda lenovo _109-199-104-83];
|
|
||||||
"zulip-camoKey.age".publicKeys = [andromeda lenovo _109-199-104-83];
|
|
||||||
"zulip-rabbitmqPassword.age".publicKeys = [andromeda lenovo _109-199-104-83];
|
|
||||||
"zulip-secretKey.age".publicKeys = [andromeda lenovo _109-199-104-83];
|
|
||||||
"zulip-sharedSecretKey.age".publicKeys = [andromeda lenovo _109-199-104-83];
|
|
||||||
|
|
||||||
# zulip-secrets.conf values
|
|
||||||
"zulip-extraSecrets-email_password.age".publicKeys = [andromeda lenovo _109-199-104-83];
|
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -1,9 +0,0 @@
|
|||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 mT2fyg cz2kWYGsZU08Sh3+mJHqhTC9lhqHvwzmgIHu+SUkVxU
|
|
||||||
bDFcYokAEj4UulAtYNvW9inoRJzoD+z1lSCQRcpyd7o
|
|
||||||
-> ssh-ed25519 UHxfvA 0npgMgYOhrxSgprdVNXIRFtrkeMWL5xEoaOjg0MAu0M
|
|
||||||
53VyXcDQxM7hoGt1deuJfKuOkKwz0P++JvUHOW7PxpQ
|
|
||||||
-> ssh-ed25519 ZwF9sQ F+Hx3aJDjCAPe4wEhBg8kjZla/iF92kzFWfdh1ll0BU
|
|
||||||
yUFzyxm40BVyIKLR/LfB2mTwNzIpPxJ0Ix1/x6vYVjg
|
|
||||||
--- PMzNF3mxVzePmAZBtX36NtPf04L7x30kCjv69G6nMSQ
|
|
||||||
¼¡žˆÈ
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 mT2fyg eVTpn6pJgpLbIqorjaLhK+VRCcVIjYZEWkUqSmSWQQU
|
|
||||||
j5C4x3gBgVoVmOZicfNu6r7QVebx8jFcWlvy0/Ku4jI
|
|
||||||
-> ssh-ed25519 UHxfvA Hnf8ZGN4cpyeR4VVEaQbatDP3mDj7XsfoTrpzYmLjDA
|
|
||||||
2lCD8WzjiIxYhSa69Jb1QO2tjFBikffBuMszpD2W1y0
|
|
||||||
-> ssh-ed25519 ZwF9sQ 9Z6NdJ1Aeexe4NZmV/PO6ChB1B36U4MZura/jHgaxns
|
|
||||||
V/xIoskMZQIIZGNwWK0THfhWX1dKk0cG8stawVJfCZo
|
|
||||||
--- FNvKumqiJ1HBogji3Orpzo+gr0ug4ZxJUqBjaBuMgj8
|
|
||||||
uó*àaPj"µ2wÔ6Þø<C39E>C§_p=;$œ%²‡SœˆkÏžE¾oª-8
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 mT2fyg uUrI8E1hJ4i9HvhuiIOkS1mq3ndb0+XGKt28QxykWFo
|
|
||||||
pfgscE+abzJJCebpnwbJqwX44hpEalpAXqaxpFFZxZA
|
|
||||||
-> ssh-ed25519 UHxfvA PHnGkUxtgDq7Ga+ncROQm9SL3Nuc1TsbMY6ygi8GHQ4
|
|
||||||
oqkbG58Ic498g/WXAEyyqF3KiP/+3gHWPhq6YjE678w
|
|
||||||
-> ssh-ed25519 ZwF9sQ FI2MOOEgVUKaNh5kVzcB47uWkbVpqFEXguw9K+qER38
|
|
||||||
t0TkUx2KcGh0VWs9rpWTEcQtDcnzFvf9JPtzi+xaJWI
|
|
||||||
--- kaUIyFhjX4STKsMWF895pyYy8x2Jec4nkPJaZfm1hb0
|
|
||||||
äí…'ñ*—9.°‰|¿¢ÚÛQ°ÔØ›‡gr”ê†@Û*Λۅ`O)Ëœp'Z2Õ³W!ŽÌ÷a!²Þ?VäIÓ(€õ±zæ˜
|
|
||||||
Binary file not shown.
@@ -1,9 +0,0 @@
|
|||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 mT2fyg 4WzB2cKVeTprMRbzzeWqvUieOAqmge52lLEVJXg8tGA
|
|
||||||
RH32zi4PfJKPycdps995m8AX6WuVMVERYrMqJzQwim8
|
|
||||||
-> ssh-ed25519 UHxfvA OQCGh+cRuROC9FxKYGQy4dZSXcTkMdR4UAslUDnIxEs
|
|
||||||
wTxR9650mpxfuDlfcRXUJ/Gk5K1N0HQAfvhpEQIBLHY
|
|
||||||
-> ssh-ed25519 ZwF9sQ PlG426CbQYbRwM7NqMtXIyMnZzucT/lgLqkmznIM9EM
|
|
||||||
3Xgy9OoejdHtU7aiXFz3xm1JLMY6gJMGqUq93yLKxS4
|
|
||||||
--- G7bINjEQ5e6AAYex0W9GPc4Djn9yd0+J1lmSYYNBwz0
|
|
||||||
é#1†Eu¥˜ý³UGnÚCA›¬4ã]¸nÞõóIãŸI8a/w„KõF©b‘÷Éø<C389>S+OªÚ…a`ð€.>†Žiç¿« Ëï’ÃÔØ]
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
# spectrum
|
|
||||||
nix.settings.substituters = ["https://cache.dataaturservice.se/spectrum/"];
|
|
||||||
nix.settings.trusted-public-keys = [
|
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
||||||
"spectrum-os.org-2:foQk3r7t2VpRx92CaXb5ROyy/NBdRJQG2uX2XJMYZfU="
|
|
||||||
];
|
|
||||||
}
|
|
||||||
48
users.nix
48
users.nix
@@ -3,7 +3,9 @@
|
|||||||
lib,
|
lib,
|
||||||
machine,
|
machine,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
machines = import ./machines.nix;
|
||||||
|
in {
|
||||||
users.users =
|
users.users =
|
||||||
builtins.mapAttrs
|
builtins.mapAttrs
|
||||||
(name: value: lib.mkIf (builtins.elem name machine.users) value)
|
(name: value: lib.mkIf (builtins.elem name machine.users) value)
|
||||||
@@ -11,37 +13,57 @@
|
|||||||
"andromeda" = {
|
"andromeda" = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "andromeda";
|
description = "andromeda";
|
||||||
hashedPasswordFile = builtins.toString config.age.secrets.andromeda-pw.path;
|
hashedPasswordFile = builtins.toString config.age.secrets.secret0.path;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"networkmanager" # network configuration
|
"networkmanager"
|
||||||
"wheel" # serial
|
"wheel"
|
||||||
"dialout" # access to serial ports
|
];
|
||||||
|
};
|
||||||
|
"mtgmonkey" = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "mtgmonkey";
|
||||||
|
hashedPasswordFile = builtins.toString config.age.secrets.secret1.path;
|
||||||
|
extraGroups = [
|
||||||
|
(lib.mkIf
|
||||||
|
(machine == machines.lenovo)
|
||||||
|
"networkmanager")
|
||||||
|
"wheel"
|
||||||
|
];
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
(lib.mkIf
|
||||||
|
(machine == machines."109-199-104-83")
|
||||||
|
config.pub-keys.ssh.andromeda)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
environment.persistence."/persist".users = lib.mkIf config.environment.persistence."/persist".enable (
|
environment.persistence."/nix/persist".users = lib.mkIf config.environment.persistence."/nix/persist".enable (
|
||||||
builtins.mapAttrs
|
builtins.mapAttrs
|
||||||
(name: value: lib.mkIf (builtins.elem name machine.users) value)
|
(name: value: lib.mkIf (builtins.elem name machine.users) value)
|
||||||
{
|
{
|
||||||
"andromeda" = {
|
"andromeda" = {
|
||||||
directories = [
|
directories = [
|
||||||
".backups"
|
".backups"
|
||||||
".gnupg"
|
|
||||||
".local/share/AAAAXY"
|
|
||||||
".local/share/Anki2"
|
".local/share/Anki2"
|
||||||
".local/share/chat.fluffy.fluffychat"
|
".local/share/chat.fluffy.fluffychat"
|
||||||
".local/share/Mindustry"
|
".local/share.zoxide"
|
||||||
".local/share/Steam"
|
|
||||||
".local/share/zoxide"
|
|
||||||
".ssh"
|
".ssh"
|
||||||
".steam"
|
|
||||||
"conf"
|
"conf"
|
||||||
"Downloads"
|
"Downloads"
|
||||||
"conf_v1"
|
|
||||||
"pp"
|
"pp"
|
||||||
];
|
];
|
||||||
files = [
|
files = [
|
||||||
".bash_history"
|
".bash_history"
|
||||||
|
".brush_history"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
"mtgmonkey" = {
|
||||||
|
directories = [
|
||||||
|
".local/share/zoxide"
|
||||||
|
".ssh"
|
||||||
|
];
|
||||||
|
files = [
|
||||||
|
".bash_history"
|
||||||
|
".brush_history"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,8 +16,85 @@
|
|||||||
"${config.home.homeDirectory}/${background-path}"
|
"${config.home.homeDirectory}/${background-path}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
sway_config' = builtins.toFile "sway_config" ''
|
||||||
|
set $mod Mod4
|
||||||
|
set $left h
|
||||||
|
set $down j
|
||||||
|
set $up k
|
||||||
|
set $right l
|
||||||
|
set $term alacritty
|
||||||
|
set $menu wmenu-run
|
||||||
|
set $screenshot grim -g "$(slurp)"
|
||||||
|
floating_modifier $mod normal
|
||||||
|
|
||||||
|
workspace_layout stacking
|
||||||
|
output * bg ${config.home.homeDirectory}/${background-path} fill
|
||||||
|
|
||||||
|
# launch programs
|
||||||
|
bindsym $mod+Shift+Return exec $term
|
||||||
|
bindsym $mod+Shift+d exec $menu
|
||||||
|
bindsym $mod+Shift+a exec anki
|
||||||
|
bindsym $mod+Shift+q exec librewolf
|
||||||
|
bindsym $mod+Shift+s exec $screenshot
|
||||||
|
|
||||||
|
bindsym $mod+Shift+c kill
|
||||||
|
|
||||||
|
bindsym $mod+Shift+r reload
|
||||||
|
|
||||||
|
bindsym $mod+Shift+Alt+q exit
|
||||||
|
|
||||||
|
bindsym $mod+$left focus left
|
||||||
|
bindsym $mod+$down focus down
|
||||||
|
bindsym $mod+$up focus up
|
||||||
|
bindsym $mod+$right focus right
|
||||||
|
|
||||||
|
bindsym $mod+Shift+$left move left
|
||||||
|
bindsym $mod+Shift+$down move down
|
||||||
|
bindsym $mod+Shift+$up move up
|
||||||
|
bindsym $mod+Shift+$right move right
|
||||||
|
|
||||||
|
bindsym $mod+1 workspace number 1
|
||||||
|
bindsym $mod+2 workspace number 2
|
||||||
|
bindsym $mod+3 workspace number 3
|
||||||
|
bindsym $mod+4 workspace number 4
|
||||||
|
bindsym $mod+5 workspace number 5
|
||||||
|
bindsym $mod+6 workspace number 6
|
||||||
|
bindsym $mod+7 workspace number 7
|
||||||
|
bindsym $mod+8 workspace number 8
|
||||||
|
bindsym $mod+9 workspace number 9
|
||||||
|
bindsym $mod+0 workspace number 0
|
||||||
|
|
||||||
|
bindsym $mod+Shift+1 move container to workspace number 1
|
||||||
|
bindsym $mod+Shift+2 move container to workspace number 2
|
||||||
|
bindsym $mod+Shift+3 move container to workspace number 3
|
||||||
|
bindsym $mod+Shift+4 move container to workspace number 4
|
||||||
|
bindsym $mod+Shift+5 move container to workspace number 5
|
||||||
|
bindsym $mod+Shift+6 move container to workspace number 6
|
||||||
|
bindsym $mod+Shift+7 move container to workspace number 7
|
||||||
|
bindsym $mod+Shift+8 move container to workspace number 8
|
||||||
|
bindsym $mod+Shift+9 move container to workspace number 9
|
||||||
|
bindsym $mod+Shift+0 move container to workspace number 0
|
||||||
|
|
||||||
|
bindsym $mod+f fullscreen
|
||||||
|
bindsym $mod+Shift+space floating toggle
|
||||||
|
bindsym $mod+Shift+minus move scratchpad
|
||||||
|
bindsym $mod+minus scratchpad show
|
||||||
|
|
||||||
|
bindsym --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle
|
||||||
|
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5%
|
||||||
|
bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5%
|
||||||
|
bindsym --locked XF86AudioMicMute exec pact set-source-mute \@DEFAULT_SOURCE@ toggle
|
||||||
|
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||||
|
bindsym --locked XF86MonbrightnessUp exec brightnessctl set 5%+
|
||||||
|
|
||||||
|
default_border none
|
||||||
|
font pango:monospace 0.001
|
||||||
|
titlebar_border_thickness 0
|
||||||
|
titlebar_padding 0
|
||||||
|
'';
|
||||||
in {
|
in {
|
||||||
imports = [./stylix.nix];
|
imports = [./stylix.nix];
|
||||||
|
xdg.configFile."shell".source = lib.getExe pkgs.brush;
|
||||||
xdg.configFile."sway/config".source = lib.mkForce sway_config;
|
xdg.configFile."sway/config".source = lib.mkForce sway_config;
|
||||||
wayland.windowManager.sway.enable = true;
|
wayland.windowManager.sway.enable = true;
|
||||||
home = {
|
home = {
|
||||||
@@ -25,35 +102,25 @@ in {
|
|||||||
homeDirectory = "/home/${config.home.username}";
|
homeDirectory = "/home/${config.home.username}";
|
||||||
stateVersion = "26.05";
|
stateVersion = "26.05";
|
||||||
packages = [
|
packages = [
|
||||||
pkgs.aaaaxy
|
|
||||||
pkgs.acpi
|
pkgs.acpi
|
||||||
pkgs.agenix
|
pkgs.agenix
|
||||||
pkgs.alacritty
|
pkgs.alacritty
|
||||||
pkgs.anki
|
pkgs.anki
|
||||||
pkgs.anki-cli
|
|
||||||
pkgs.brightnessctl
|
pkgs.brightnessctl
|
||||||
|
pkgs.brush
|
||||||
pkgs.dust
|
pkgs.dust
|
||||||
pkgs.fluffychat
|
pkgs.fluffychat
|
||||||
pkgs.fzf
|
pkgs.fzf
|
||||||
pkgs.gdb
|
|
||||||
pkgs.geeqie
|
|
||||||
pkgs.glow
|
pkgs.glow
|
||||||
pkgs.grim
|
pkgs.grim
|
||||||
pkgs.hexdump
|
|
||||||
pkgs.http-server
|
|
||||||
pkgs.jmtpfs
|
pkgs.jmtpfs
|
||||||
pkgs.mindustry-wayland
|
|
||||||
pkgs.nasm
|
|
||||||
pkgs.nix-output-monitor
|
pkgs.nix-output-monitor
|
||||||
pkgs.npins
|
|
||||||
pkgs.ranger
|
pkgs.ranger
|
||||||
pkgs.rip2
|
pkgs.rip2
|
||||||
pkgs.ripgrep
|
pkgs.ripgrep
|
||||||
pkgs.slurp
|
pkgs.slurp
|
||||||
pkgs.tokei
|
|
||||||
pkgs.tree
|
pkgs.tree
|
||||||
pkgs.wget
|
pkgs.zoxide
|
||||||
pkgs.xxd
|
|
||||||
];
|
];
|
||||||
file.${background-path}.source = config.stylix.image;
|
file.${background-path}.source = config.stylix.image;
|
||||||
};
|
};
|
||||||
@@ -61,7 +128,6 @@ in {
|
|||||||
alacritty.enable = true;
|
alacritty.enable = true;
|
||||||
bash = {
|
bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = false;
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
neofetch = "fastfetch";
|
neofetch = "fastfetch";
|
||||||
ls = lib.mkForce "lsd";
|
ls = lib.mkForce "lsd";
|
||||||
@@ -73,6 +139,7 @@ in {
|
|||||||
};
|
};
|
||||||
bashrcExtra = ''
|
bashrcExtra = ''
|
||||||
PS1="\u@\h:\w$"
|
PS1="\u@\h:\w$"
|
||||||
|
eval "$(zoxide init bash)"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
btop = {
|
btop = {
|
||||||
@@ -100,23 +167,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
fastfetch.enable = true;
|
fastfetch.enable = true;
|
||||||
firefox = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.firefox.override {
|
|
||||||
cfg.enableTridactylNative = true;
|
|
||||||
};
|
|
||||||
profiles.${config.home.username} = {
|
|
||||||
extensions = {
|
|
||||||
force = true;
|
|
||||||
packages = [
|
|
||||||
pkgs.nur.repos.rycee.firefox-addons.tridactyl
|
|
||||||
];
|
|
||||||
};
|
|
||||||
settings = {
|
|
||||||
"extensions.autoDisableScopes" = 0;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
@@ -128,15 +178,29 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
gh.enable = true;
|
gh.enable = true;
|
||||||
gpg = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
|
firefox = {
|
||||||
|
enable = true;
|
||||||
|
profiles."andromeda".name = "andromeda";
|
||||||
|
package = pkgs.withPhoenix pkgs.firefox;
|
||||||
|
};
|
||||||
|
firefox.phoenix = {
|
||||||
|
enable = true;
|
||||||
|
profiles = ["andromeda"];
|
||||||
|
};
|
||||||
|
# librewolf = {
|
||||||
|
# enable = true;
|
||||||
|
# package = pkgs.librewolf.override {
|
||||||
|
# cfg.enableTridactylNative = true;
|
||||||
|
# };
|
||||||
|
# profiles.${config.home.username}.extensions.packages = [
|
||||||
|
# pkgs.nur.repos.rycee.firefox-addons.tridactyl
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
lsd.enable = true;
|
lsd.enable = true;
|
||||||
nvf = {
|
nvf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.vim = {
|
settings.vim = {
|
||||||
startPlugins = [pkgs.vimPlugins.parinfer-rust];
|
|
||||||
autocomplete.nvim-cmp.enable = false;
|
autocomplete.nvim-cmp.enable = false;
|
||||||
formatter.conform-nvim = {
|
formatter.conform-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -204,12 +268,6 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
lsp.enable = true;
|
lsp.enable = true;
|
||||||
};
|
};
|
||||||
rust = {
|
|
||||||
enable = true;
|
|
||||||
format.enable = true;
|
|
||||||
lsp.enable = true;
|
|
||||||
treesitter.enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
lineNumberMode = "relative";
|
lineNumberMode = "relative";
|
||||||
options = {
|
options = {
|
||||||
@@ -226,13 +284,5 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
zoxide = {
|
|
||||||
enable = true;
|
|
||||||
enableBashIntegration = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.gpg-agent = {
|
|
||||||
enable = true;
|
|
||||||
pinentry.package = pkgs.pinentry-curses;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,12 +55,6 @@ bindsym $mod+Shift+8 move container to workspace number 8
|
|||||||
bindsym $mod+Shift+9 move container to workspace number 9
|
bindsym $mod+Shift+9 move container to workspace number 9
|
||||||
bindsym $mod+Shift+0 move container to workspace number 0
|
bindsym $mod+Shift+0 move container to workspace number 0
|
||||||
|
|
||||||
seat * hide_cursor 100
|
|
||||||
input type:touchpad events disabled
|
|
||||||
|
|
||||||
bindsym $mod+r exec 'swaymsg "seat * hide_cursor 100"; swaymsg "input type:touchpad events disabled"'
|
|
||||||
bindsym $mod+t exec 'swaymsg "seat * hide_cursor 0"; swaymsg "input type:touchpad events enabled"'
|
|
||||||
|
|
||||||
bindsym $mod+f fullscreen
|
bindsym $mod+f fullscreen
|
||||||
bindsym $mod+Shift+space floating toggle
|
bindsym $mod+Shift+space floating toggle
|
||||||
bindsym $mod+Shift+minus move scratchpad
|
bindsym $mod+Shift+minus move scratchpad
|
||||||
@@ -70,8 +64,8 @@ bindsym --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle
|
|||||||
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5%
|
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5%
|
||||||
bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5%
|
bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5%
|
||||||
bindsym --locked XF86AudioMicMute exec pact set-source-mute \@DEFAULT_SOURCE@ toggle
|
bindsym --locked XF86AudioMicMute exec pact set-source-mute \@DEFAULT_SOURCE@ toggle
|
||||||
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 2%-
|
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||||
bindsym --locked XF86MonbrightnessUp exec brightnessctl set 2%+
|
bindsym --locked XF86MonbrightnessUp exec brightnessctl set 5%+
|
||||||
|
|
||||||
default_border none
|
default_border none
|
||||||
font pango:monospace 0.001
|
font pango:monospace 0.001
|
||||||
|
|||||||
172
users/mtgmonkey/home.nix
Normal file
172
users/mtgmonkey/home.nix
Normal file
@@ -0,0 +1,172 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
machine,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [./stylix.nix];
|
||||||
|
xdg.configFile."shell".source = lib.getExe pkgs.brush;
|
||||||
|
home = {
|
||||||
|
username = "mtgmonkey";
|
||||||
|
homeDirectory = "/home/${config.home.username}";
|
||||||
|
stateVersion = "26.05";
|
||||||
|
packages = [
|
||||||
|
pkgs.acpi
|
||||||
|
pkgs.brightnessctl
|
||||||
|
pkgs.brush
|
||||||
|
pkgs.dust
|
||||||
|
pkgs.fzf
|
||||||
|
pkgs.glow
|
||||||
|
pkgs.jmtpfs
|
||||||
|
pkgs.nix-output-monitor
|
||||||
|
pkgs.ranger
|
||||||
|
pkgs.rip2
|
||||||
|
pkgs.ripgrep
|
||||||
|
pkgs.tree
|
||||||
|
pkgs.zoxide
|
||||||
|
];
|
||||||
|
};
|
||||||
|
programs = {
|
||||||
|
bash = {
|
||||||
|
enable = true;
|
||||||
|
shellAliases = {
|
||||||
|
neofetch = "fastfetch";
|
||||||
|
ls = lib.mkForce "lsd";
|
||||||
|
ll = lib.mkForce "lsd -l";
|
||||||
|
l = "lsd -la";
|
||||||
|
cd = "z";
|
||||||
|
gg = "git log --oneline --abbrev-commit --all --graph --decorate --color";
|
||||||
|
md = "glow";
|
||||||
|
};
|
||||||
|
bashrcExtra = ''
|
||||||
|
PS1="\u@\h:\w$"
|
||||||
|
eval "$(zoxide init bash)"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
btop = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
theme_background = false;
|
||||||
|
vim_keys = true;
|
||||||
|
rounded_corners = false;
|
||||||
|
graph_symbol = "braille";
|
||||||
|
update_ms = 150;
|
||||||
|
proc_sorting = "cpu lazy";
|
||||||
|
proc_gradient = false;
|
||||||
|
proc_left = true;
|
||||||
|
cpu_single_graph = true;
|
||||||
|
cpu_bottom = true;
|
||||||
|
clock_format = "/user@/host:/uptime@%H:%M";
|
||||||
|
background_update = true;
|
||||||
|
mem_graphs = false;
|
||||||
|
mem_below_net = true;
|
||||||
|
show_swap = false;
|
||||||
|
only_physical = true;
|
||||||
|
show_io_stat = true;
|
||||||
|
io_mode = false;
|
||||||
|
io_graph_combined = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
fastfetch.enable = true;
|
||||||
|
git = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
user = {
|
||||||
|
name = config.home.username;
|
||||||
|
email = "${config.home.username}@${machine.hostname}";
|
||||||
|
};
|
||||||
|
init.defaultBranch = "master";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
gh.enable = true;
|
||||||
|
home-manager.enable = true;
|
||||||
|
lsd.enable = true;
|
||||||
|
nvf = {
|
||||||
|
enable = true;
|
||||||
|
settings.vim = {
|
||||||
|
autocomplete.nvim-cmp.enable = false;
|
||||||
|
formatter.conform-nvim = {
|
||||||
|
enable = true;
|
||||||
|
setupOpts.format_on_save = {
|
||||||
|
lsp_format = "fallback";
|
||||||
|
timeout_ms = 5000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
lsp.otter-nvim.enable = true;
|
||||||
|
git.enable = true;
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
key = "<Down>";
|
||||||
|
mode = ["i" "n" "v" "c"];
|
||||||
|
action = "<NOP>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<Up>";
|
||||||
|
mode = ["i" "n" "v" "c"];
|
||||||
|
action = "<NOP>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<Left>";
|
||||||
|
mode = ["i" "n" "v" "c"];
|
||||||
|
action = "<NOP>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<Right>";
|
||||||
|
mode = ["i" "n" "v" "c"];
|
||||||
|
action = "<NOP>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "jj";
|
||||||
|
mode = ["i"];
|
||||||
|
action = "<Esc>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "kk";
|
||||||
|
mode = ["i"];
|
||||||
|
action = "<Esc>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "jk";
|
||||||
|
mode = ["i"];
|
||||||
|
action = "<Esc>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "kj";
|
||||||
|
mode = ["i"];
|
||||||
|
action = "<Esc>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<Esc>";
|
||||||
|
mode = ["i"];
|
||||||
|
action = "<Nop>";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
languages = {
|
||||||
|
nix = {
|
||||||
|
enable = true;
|
||||||
|
format.enable = true;
|
||||||
|
lsp.enable = true;
|
||||||
|
};
|
||||||
|
haskell = {
|
||||||
|
enable = true;
|
||||||
|
lsp.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
lineNumberMode = "relative";
|
||||||
|
options = {
|
||||||
|
tabstop = 2;
|
||||||
|
shiftwidth = 2;
|
||||||
|
expandtab = true;
|
||||||
|
smarttab = true;
|
||||||
|
foldmethod = "indent";
|
||||||
|
number = true;
|
||||||
|
colorcolumn = "80";
|
||||||
|
};
|
||||||
|
statusline.lualine.enable = true;
|
||||||
|
syntaxHighlighting = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
ssh.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
29
users/mtgmonkey/stylix.nix
Normal file
29
users/mtgmonkey/stylix.nix
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
stylix = {
|
||||||
|
enable = true;
|
||||||
|
# rebecca has lavener bkg
|
||||||
|
# tube has dark gray bkg
|
||||||
|
# silk-light is light theme
|
||||||
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-material-dark-hard.yaml";
|
||||||
|
polarity = "dark";
|
||||||
|
fonts = {
|
||||||
|
monospace = {
|
||||||
|
package = pkgs.miracode;
|
||||||
|
name = "Miracode";
|
||||||
|
};
|
||||||
|
serif = config.stylix.fonts.sansSerif;
|
||||||
|
emoji = {
|
||||||
|
package = pkgs.noto-fonts-color-emoji;
|
||||||
|
name = "Noto Color Emoji";
|
||||||
|
};
|
||||||
|
sizes = {
|
||||||
|
applications = 12;
|
||||||
|
terminal = 10;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user