602 Commits

Author SHA1 Message Date
c0ca89728e revert statix fixes for empty_pattern
empty_pattern forces {...} to be converted to {_}, which breaks
situations where an import is done multiple ways with the same
attributes, and only some of the imported files use those
attributes (ex. systems/<host>/default.nix)

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-22 00:02:47 +00:00
1b65b78d13 fix all statix warnings and re-enable statix pre-commit
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-22 00:02:47 +00:00
0e090cb76a adds wakatime to alice's dependencies
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:42:43 +00:00
b10992795e add sops as a shared module for home-manager
also adds wakatime-api-key variable to personal sops-config (using new
sops capability)

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
aa4bcc61a4 comment the shell construction
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
9c3330b006 convert if/else to lib.optionals
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
ce9e8d9eaa fix alignment and attrset
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
d4916c36d3 bulk re-ordering of imports
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
97eb8e2767 adds comments for pre-commit checks
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
93ebc1ed0c Add frequently used nix packages to the shell
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
262c18e03b fix erroneous output warning, remove vscode json file from check
vscode json files allow comments, but check-json only allows regular
json. the check now ignores settings.json

moves inherit for outputs to the let, as it was attempting to output the
outputs variable.

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
af7a901bbf clean up devshell inputs
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
9b2ee295ea remove commented out devshell
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
4015daea0a Full rewrite of devshell
migrates pre-commit to cachix's pre-commit-hooks

adds a ton of new hooks:
- check-added-large-files
- check-case-conflicts
- check-json
- check-merge-conflicts
- detect-private-keys
- fmt-check
- nil
- no-commit-to-branch
- statix (disabled for now)

migrates devshell to new devshells, set up modularly to have separate
functionality for sops, pre-commit-hooks, and our custom packages

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
db7aeb7f03 Documentation for lib/systems
Additionally:
- fix a typo in lib/default with the type hinting
- fix a likely breaking change with lib.rad-dev.genNonX86, as it was
returning an attrset instead of a list of attrsets
- rename var to cond in lib.rad-dev.genWrapper, to make it clearer that
a condition is expected

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
63ca84cfb8 change rad-dev to inherit in flake.nix
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
e94fe7d7f2 fix flake lock for nixpkgs-stable
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
46aee20d9e migrate system scanning logic to lib/
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
6b5dda1f39 remove nom.patch, change filterSource to path
nom.patch gets pulled in to the modules unless filtering is set up, but
we're not building custom nixos-rebuild anymore (and haven't for a
while)

migrates to builtins.path over builtins.filterSource since the semantics
seem a bit nicer

Removes all the filtering on the directory as we likely don't need it

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
0ddf01baef migrate constructSystem to lib/
migrates the bulk of constructSystem to lib/ and splits out the largest
chunks into individual functions (namely SOPS, home-manager, and user creation);

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-21 23:34:58 +00:00
Richie Cahill
20abca4a8b adding steam 2024-05-21 22:29:00 +00:00
0d6c05f708 wifi fixes
artemision is currently having some really weird issues whenever its
using the local unbound DNS, so this is demoting the local DNS and
adding some public networks

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-19 18:39:27 +00:00
github-actions[bot]
fa8d7e7ce4 flake.lock: Update
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/2c4905096782e8e908205e7fa54ef987fba62793' (2024-05-13)
  → 'github:nix-community/fenix/f7737feef42fa8abe70de20b9a13b845a113cfeb' (2024-05-19)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/5bf2f85c8054d80424899fa581db1b192230efb5' (2024-05-09)
  → 'github:rust-lang/rust-analyzer/6524922b1b1cfdf16d1e08785dec03f352f693a2' (2024-05-18)
• Updated input 'home-manager':
    'github:nix-community/home-manager/44677a1c96810a8e8c4ffaeaad10c842402647c1' (2024-05-12)
  → 'github:nix-community/home-manager/e3ad5108f54177e6520535768ddbf1e6af54b59d' (2024-05-17)
• Updated input 'nix-index-database':
    'github:Mic92/nix-index-database/f9027322f48b427da23746aa359a6510dfcd0228' (2024-05-12)
  → 'github:Mic92/nix-index-database/6b94c48c3bb22d5181333c3fb71beff44116e251' (2024-05-19)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/a4e2b7909fc1bdf30c30ef21d388fde0b5cdde4a' (2024-05-08)
  → 'github:NixOS/nixos-hardware/b55712de78725c8fcde422ee0a0fe682046e73c3' (2024-05-18)
• Updated input 'nixos-modules':
    'github:SuperSandro2000/nixos-modules/01f2ebe7bd7845ecb939849b54809524ac19aa7c' (2024-05-12)
  → 'github:SuperSandro2000/nixos-modules/683b0fd959c6595317a98c9f080c4e93b4882605' (2024-05-16)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/21b7c1e62f1856bb793d41198ef4760058c6ebd5' (2024-05-14)
  → 'github:nixos/nixpkgs/68ead29211bb9890f494af3a8b5643a831d9d4c4' (2024-05-19)
• Updated input 'nixpkgs-stable':
    'github:nixos/nixpkgs/44072e24566c5bcc0b7aa9178a0104f4cfffab19' (2024-05-12)
  → 'github:nixos/nixpkgs/e7cc61784ddf51c81487637b3031a6dd2d6673a2' (2024-05-18)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/1d8fcbbfcfd3476c2665384a46ee9d07ef2b4dd9' (2024-05-14)
  → 'github:oxalica/rust-overlay/cfc8776011bd83508324115d353222475e1601c0' (2024-05-19)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/b6cb5de2ce57acb10ecdaaf9bbd62a5ff24fa02e' (2024-05-12)
  → 'github:Mic92/sops-nix/0bf1808e70ce80046b0cff821c019df2b19aabf5' (2024-05-19)
2024-05-19 16:00:36 +00:00
05fc189ec7 remove triggers-rebuild
as discussed as part of the PR

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-19 15:43:00 +00:00
7cd32e0018 remove autopull config from artemision (used for testing)
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-19 15:43:00 +00:00
6b2c0fe69f rename flake-update-service.nix to autopull.nix
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-19 15:43:00 +00:00
af14f123e1 migrate flake update service to submodules
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-19 15:43:00 +00:00
5261a65ecc migrate lib functions to lib/, remove extra overlays
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-19 15:43:00 +00:00
298d7423c6 type changes
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-19 15:43:00 +00:00
0ce3d57e46 fix enable type
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-19 15:43:00 +00:00
3696ebd976 convert flake-update to a submodule type
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-19 15:43:00 +00:00
github-actions[bot]
3fb96c2248 flake.lock: Update
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/297c756ba6249d483c1dafe42378560458842173' (2024-05-10)
  → 'github:nix-community/fenix/2c4905096782e8e908205e7fa54ef987fba62793' (2024-05-13)
• Updated input 'home-manager':
    'github:nix-community/home-manager/d7682620185f213df384c363288093b486b2883f' (2024-05-10)
  → 'github:nix-community/home-manager/44677a1c96810a8e8c4ffaeaad10c842402647c1' (2024-05-12)
• Updated input 'hyprland-contrib':
    'github:hyprwm/contrib/110e6dc761d5c3d352574def3479a9c39dfc4358' (2024-04-22)
  → 'github:hyprwm/contrib/46d2206858657d439792926958f52b037534de49' (2024-05-13)
• Updated input 'nix-index-database':
    'github:Mic92/nix-index-database/a362555e9dbd4ecff3bb98969bbdb8f79fe87f10' (2024-05-05)
  → 'github:Mic92/nix-index-database/f9027322f48b427da23746aa359a6510dfcd0228' (2024-05-12)
• Updated input 'nixos-modules':
    'github:SuperSandro2000/nixos-modules/bdf962bfc010ce6cc0243f191def6067d1b1a459' (2024-05-05)
  → 'github:SuperSandro2000/nixos-modules/01f2ebe7bd7845ecb939849b54809524ac19aa7c' (2024-05-12)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/52b40f6c4be12742b1504ca2eb4527e597bf2526' (2024-05-11)
  → 'github:nixos/nixpkgs/21b7c1e62f1856bb793d41198ef4760058c6ebd5' (2024-05-14)
• Updated input 'nixpkgs-stable':
    'github:nixos/nixpkgs/9a9960b98418f8c385f52de3b09a63f9c561427a' (2024-05-09)
  → 'github:nixos/nixpkgs/44072e24566c5bcc0b7aa9178a0104f4cfffab19' (2024-05-12)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/8eb8671512cb0c72c748058506e50c54fb5d8e2b' (2024-05-11)
  → 'github:oxalica/rust-overlay/1d8fcbbfcfd3476c2665384a46ee9d07ef2b4dd9' (2024-05-14)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/0dc50257c00ee3c65fef3a255f6564cfbfe6eb7f' (2024-05-09)
  → 'github:Mic92/sops-nix/b6cb5de2ce57acb10ecdaaf9bbd62a5ff24fa02e' (2024-05-12)
• Updated input 'wired-notify':
    'github:Toqozz/wired-notify/19b8896f6d89321531c78ef5c2575963501e1a65' (2024-04-25)
  → 'github:Toqozz/wired-notify/18b44306b2636fc7f238a9d946c7b8aac217122d' (2024-05-12)
• Updated input 'wired-notify/flake-parts':
    'github:hercules-ci/flake-parts/9126214d0a59633752a136528f5f3b9aa8565b7d' (2024-04-01)
  → 'github:hercules-ci/flake-parts/e5d10a24b66c3ea8f150e47dfdb0416ab7c3390e' (2024-05-02)
• Updated input 'wired-notify/flake-parts/nixpkgs-lib':
    'github:NixOS/nixpkgs/d8fe5e6c92d0d190646fb9f1056741a229980089?dir=lib' (2024-03-29)
  → '50eb7ecf4c.tar.gz?narHash=sha256-QBx10%2Bk6JWz6u7VsohfSw8g8hjdBZEf8CFzXH1/1Z94%3D' (2024-05-02)
2024-05-14 22:54:47 +00:00
5f80da3b98 add c++/python lsp
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-12 20:00:28 +00:00
github-actions[bot]
b1ed7ea9c2 flake.lock: Update
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/f90ff54f3637d455352780f4f27715725a0d6841' (2024-04-22)
  → 'github:nix-community/fenix/297c756ba6249d483c1dafe42378560458842173' (2024-05-10)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/47a901b9bf1f99b1ec5222d478684fc412d526a5' (2024-04-21)
  → 'github:rust-lang/rust-analyzer/5bf2f85c8054d80424899fa581db1b192230efb5' (2024-05-09)
• Updated input 'home-manager':
    'github:nix-community/home-manager/46833c3115e8858370880d892748f0927d8193c3' (2024-04-22)
  → 'github:nix-community/home-manager/d7682620185f213df384c363288093b486b2883f' (2024-05-10)
• Updated input 'nix':
    'github:NixOS/nix/3272ed0d5813175ea240ce2dfadf9de24c9d14ae' (2024-03-26)
  → 'github:NixOS/nix/adba2f19a02eaa74336a06a026d3c37af8020559' (2024-05-09)
• Added input 'nix/flake-parts':
    'github:hercules-ci/flake-parts/9126214d0a59633752a136528f5f3b9aa8565b7d' (2024-04-01)
• Added input 'nix/flake-parts/nixpkgs-lib':
    follows 'nix/nixpkgs'
• Added input 'nix/pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/40e6053ecb65fcbf12863338a6dcefb3f55f1bf8' (2024-04-12)
• Added input 'nix/pre-commit-hooks/flake-compat':
    follows 'nix'
• Added input 'nix/pre-commit-hooks/flake-utils':
    'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02)
• Added input 'nix/pre-commit-hooks/gitignore':
    follows 'nix'
• Added input 'nix/pre-commit-hooks/nixpkgs':
    follows 'nix/nixpkgs'
• Added input 'nix/pre-commit-hooks/nixpkgs-stable':
    follows 'nix/nixpkgs'
• Updated input 'nix-index-database':
    'github:Mic92/nix-index-database/07ece11b22217b8459df589f858e92212b74f1a1' (2024-04-21)
  → 'github:Mic92/nix-index-database/a362555e9dbd4ecff3bb98969bbdb8f79fe87f10' (2024-05-05)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/5d48925b815fd202781bfae8fb6f45c07112fdb2' (2024-04-19)
  → 'github:NixOS/nixos-hardware/a4e2b7909fc1bdf30c30ef21d388fde0b5cdde4a' (2024-05-08)
• Updated input 'nixos-modules':
    'github:SuperSandro2000/nixos-modules/4ea537af4d87828138225399c9811b56e04bff6a' (2024-04-14)
  → 'github:SuperSandro2000/nixos-modules/bdf962bfc010ce6cc0243f191def6067d1b1a459' (2024-05-05)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/de52a47e961d45f6a8c7f9f086c60ff89ecdddaf' (2024-04-22)
  → 'github:nixos/nixpkgs/52b40f6c4be12742b1504ca2eb4527e597bf2526' (2024-05-11)
• Updated input 'nixpkgs-stable':
    'github:nixos/nixpkgs/a5e4bbcb4780c63c79c87d29ea409abf097de3f7' (2024-04-21)
  → 'github:nixos/nixpkgs/9a9960b98418f8c385f52de3b09a63f9c561427a' (2024-05-09)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/606c0ecb23c676c444a0b026eecf800d5bd5fec2' (2024-04-22)
  → 'github:oxalica/rust-overlay/8eb8671512cb0c72c748058506e50c54fb5d8e2b' (2024-05-11)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/4371a1301c4d36cc791069d90ae522613a3a335e' (2024-04-22)
  → 'github:Mic92/sops-nix/0dc50257c00ee3c65fef3a255f6564cfbfe6eb7f' (2024-05-09)
• Updated input 'wired-notify':
    'github:Toqozz/wired-notify/54bae8ac6154e52215c4c0f7d25fb5e735b9179e' (2024-03-31)
  → 'github:Toqozz/wired-notify/19b8896f6d89321531c78ef5c2575963501e1a65' (2024-04-25)
• Updated input 'wired-notify/flake-parts':
    'github:hercules-ci/flake-parts/f7b3c975cf067e56e7cda6cb098ebe3fb4d74ca2' (2024-03-01)
  → 'github:hercules-ci/flake-parts/9126214d0a59633752a136528f5f3b9aa8565b7d' (2024-04-01)
• Updated input 'wired-notify/flake-parts/nixpkgs-lib':
    'github:NixOS/nixpkgs/1536926ef5621b09bba54035ae2bb6d806d72ac8?dir=lib' (2024-02-29)
  → 'github:NixOS/nixpkgs/d8fe5e6c92d0d190646fb9f1056741a229980089?dir=lib' (2024-03-29)
2024-05-11 19:06:33 +00:00
d60a95f938 tidy up a bunch of flake.nix, remove user machine functionality
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-11 15:46:58 +00:00
3c86d6ab1c move all artemision files into systems/
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-11 15:46:58 +00:00
6f6da5bddc fix hydra secret for gitlab
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>

try a different PAT

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>

try a different PAT

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>

try a different PAT

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>

Revert "try a different PAT"

This reverts commit 8b79b0c8a5a511d7d2f2cbd075844781dc74d0bc.

add david's repo for hydra tokens

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>

finalize pat tokens

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-11 15:43:50 +00:00
fc39426b2a add private fork authorization
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-11 15:43:50 +00:00
Richie Cahill
60341c6ee9 turns off all sounds and announcements 2024-05-11 14:05:45 +00:00
Richie Cahill
6bfec38289 organized settings.json 2024-05-11 14:05:45 +00:00
Richie Cahill
a34dc65d8d setup direnv 2024-05-11 14:05:45 +00:00
Richie Cahill
44bc4f1531 moved syncthing_base.nix 2024-05-11 14:05:45 +00:00
Richie Cahill
9c23dad021 created zerotier.nix 2024-05-11 14:05:45 +00:00
3ebf127970 remove zsh-nix-shell
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-11 13:15:11 +00:00
8009b3c272 enable direnv, fixes nix-shell issues
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-11 13:15:11 +00:00
8885cae07e enable steam-run, gamescope
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-11 12:54:57 +00:00
3cd1302140 add zfs arc settings for palatine-hill
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-05-05 17:20:56 +00:00
Richie Cahill
2ebe1c76f7 added vscode settings 2024-05-05 16:21:04 +00:00
Richie Cahill
0ea8e9ee84 updated default boot limit config 2024-05-05 16:21:04 +00:00
Richie Cahill
dce0c77371 added nemo 2024-05-05 16:21:04 +00:00