Compare commits
78 Commits
c5847b08f0
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a85ad21cb | |||
| 7318c0e094 | |||
| 449dc22173 | |||
| 723da71a35 | |||
| b5a83638bf | |||
|
|
a5b4d685b7 | ||
|
|
61bc144093 | ||
|
|
57980742c6 | ||
|
|
6c3ee01b9c | ||
|
|
d176f6a5b2 | ||
|
|
22fab9f431 | ||
|
|
d8fce003c9 | ||
|
|
286288a41e | ||
|
|
a19519b292 | ||
| 210768d538 | |||
| 0f8348d3fe | |||
| f85dafd5a8 | |||
| e30ccf72e6 | |||
| 28de659218 | |||
|
|
b4923858d2 | ||
|
|
28ab585a34 | ||
| e6a91a0d49 | |||
| df5d85cc43 | |||
| 73ac52a1f7 | |||
| ddc1563ef2 | |||
| a14f1da387 | |||
| bc4ee5be49 | |||
| 65242cd03a | |||
| 1beb97c222 | |||
| e0d803ff20 | |||
| 4c1dcec61b | |||
| eb1283157a | |||
| 6b4488cf8d | |||
|
|
9404428af6 | ||
| 34ab90a16c | |||
| 66c15c5574 | |||
| 73ff35996b | |||
| 752fdc02d5 | |||
| aa9289161e | |||
| 69fa2b5c9e | |||
| 23cc978729 | |||
| 5f340a4b0d | |||
| bb466db985 | |||
| 8f7fa94a17 | |||
| 93cf3e672d | |||
| 17b9678ed4 | |||
| d0901ac304 | |||
| 10ecc8b7e1 | |||
| 52bbf04d18 | |||
| 4652006f3f | |||
| 725c13a6b6 | |||
| 3ed4ccca9e | |||
| dd0f88ee53 | |||
| f16cd8ccd7 | |||
| 14d9fc775d | |||
| c36a17f50c | |||
| f955772781 | |||
| a5ab78db3d | |||
| 1d6ac4d930 | |||
| 0050624f26 | |||
| f320176ae2 | |||
| 7eb6dd5d08 | |||
| 11c04eb724 | |||
| 5317363787 | |||
| 33e6960112 | |||
| 2ab49fbfc8 | |||
| d412f1ac6c | |||
| f6d356c066 | |||
| 1df8f3f638 | |||
| c9d70da47e | |||
| 93691d8cf9 | |||
| 5af517aba8 | |||
| c262042788 | |||
| f28948c783 | |||
| 178e595332 | |||
| 4a0efa9eb8 | |||
| b4bfa6885b | |||
| 96583078cc |
31
.gitea/workflows/test-on-push.yaml
Normal file
31
.gitea/workflows/test-on-push.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Test Flake
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
test_flake:
|
||||
runs-on: nixos
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: check nixos flake
|
||||
run: /run/current-system/sw/bin/nix --extra-experimental-features nix-command --extra-experimental-features flakes flake check --all-systems --verbose
|
||||
|
||||
- name: check home-manager flake
|
||||
run: "/run/current-system/sw/bin/nix --extra-experimental-features nix-command --extra-experimental-features flakes eval .#homeConfigurations --apply 'builtins.mapAttrs (_n: v: v.activationPackage.drvPath)' --verbose"
|
||||
|
||||
dry_build:
|
||||
runs-on: nixos
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Test Build
|
||||
run: |
|
||||
/run/current-system/sw/bin/nixos-rebuild dry-build --flake .#yukigekko
|
||||
/run/current-system/sw/bin/nixos-rebuild dry-build --flake .#lesbos
|
||||
/run/current-system/sw/bin/nixos-rebuild dry-build --flake .#wsl-hive
|
||||
/run/current-system/sw/bin/nixos-rebuild dry-build --flake .#hoardfrost
|
||||
26
.gitea/workflows/update.yaml
Normal file
26
.gitea/workflows/update.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Update Flake
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 23 * * *'
|
||||
jobs:
|
||||
update_flake:
|
||||
runs-on: nixos
|
||||
steps:
|
||||
- name: Prevent re-runs
|
||||
run: |
|
||||
if [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo "No re-runs for you. Go away."
|
||||
exit 1
|
||||
else
|
||||
echo "not a re-run"
|
||||
fi
|
||||
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Update Flake
|
||||
run: /run/current-system/sw/bin/nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update --refresh --commit-lock-file --verbose
|
||||
|
||||
- name: Push Changes
|
||||
run: git push
|
||||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.envrc
|
||||
|
||||
10
boxes/archlinux/box-archlinux.nix
Normal file
10
boxes/archlinux/box-archlinux.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
programs.distrobox.containers.archlinux = {
|
||||
additional_packages = "helix zsh git";
|
||||
image = "archlinux:latest";
|
||||
nvidia = false;
|
||||
init = false;
|
||||
pull = true;
|
||||
};
|
||||
}
|
||||
272
flake.lock
generated
272
flake.lock
generated
@@ -1,13 +1,33 @@
|
||||
{
|
||||
"nodes": {
|
||||
"currents": {
|
||||
"inputs": {
|
||||
"home-manager": "home-manager",
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1760073801,
|
||||
"narHash": "sha256-bvU0yFi8sqSKYEaLPVl7ayLl6xbpJ6CzSxxGw1GCqF8=",
|
||||
"owner": "autumnalmusing",
|
||||
"repo": "currents",
|
||||
"rev": "932d6ea3ec21fcc25b7f5edf938aec98df879fb1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "autumnalmusing",
|
||||
"ref": "main",
|
||||
"repo": "currents",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-compat": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1747046372,
|
||||
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
|
||||
"lastModified": 1765121682,
|
||||
"narHash": "sha256-4VBOP18BFeiPkyhy9o4ssBNQEvfvv1kXkasAYd0+rrA=",
|
||||
"owner": "edolstra",
|
||||
"repo": "flake-compat",
|
||||
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
|
||||
"rev": "65f23138d8d09a92e30f1e5c87611b23ef451bf3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -16,18 +36,69 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flakey-profile": {
|
||||
"locked": {
|
||||
"lastModified": 1712898590,
|
||||
"narHash": "sha256-FhGIEU93VHAChKEXx905TSiPZKga69bWl1VB37FK//I=",
|
||||
"owner": "lf-",
|
||||
"repo": "flakey-profile",
|
||||
"rev": "243c903fd8eadc0f63d205665a92d4df91d42d9d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "lf-",
|
||||
"repo": "flakey-profile",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1760061988,
|
||||
"narHash": "sha256-CeuMo7fjWm3XaoK+b1PGyaVIlE1GHudoxk9jrJFvfbY=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "c7f4214faca2f196c551b767c12a70bfa0614510",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager_2": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1756022458,
|
||||
"narHash": "sha256-J1i35r4HfNDdPpwL0vOBaZopQudAUVtartEerc1Jryc=",
|
||||
"lastModified": 1765980955,
|
||||
"narHash": "sha256-rB45jv4uwC90vM9UZ70plfvY/2Kdygs+zlQ07dGQFk4=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "9e3a33c0bcbc25619e540b9dfea372282f8a9740",
|
||||
"rev": "89c9508bbe9b40d36b3dc206c2483ef176f15173",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -36,17 +107,54 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"lix": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1766001599,
|
||||
"narHash": "sha256-avWZpy84s8bdMGsbOjfc4n0LYUqR5H5+Wj4QmgwsBzg=",
|
||||
"rev": "32d7c02b96259d05f50a482c2b7e55d59a70294c",
|
||||
"type": "tarball",
|
||||
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/32d7c02b96259d05f50a482c2b7e55d59a70294c.tar.gz"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
"url": "https://git.lix.systems/lix-project/lix/archive/main.tar.gz"
|
||||
}
|
||||
},
|
||||
"lix-module": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"flakey-profile": "flakey-profile",
|
||||
"lix": [
|
||||
"lix"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1764519849,
|
||||
"narHash": "sha256-XnNABKfIYKSimQVvKc9FnlC2H0LurOhd9MS6l0Z67lE=",
|
||||
"rev": "6c95c0b6f73f831226453fc6905c216ab634c30f",
|
||||
"type": "tarball",
|
||||
"url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/6c95c0b6f73f831226453fc6905c216ab634c30f.tar.gz"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
"url": "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz"
|
||||
}
|
||||
},
|
||||
"nixos-wsl": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat",
|
||||
"nixpkgs": "nixpkgs"
|
||||
"nixpkgs": "nixpkgs_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1755261305,
|
||||
"narHash": "sha256-EOqCupB5X5WoGVHVcfOZcqy0SbKWNuY3kq+lj1wHdu8=",
|
||||
"lastModified": 1765841014,
|
||||
"narHash": "sha256-55V0AJ36V5Egh4kMhWtDh117eE3GOjwq5LhwxDn9eHg=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NixOS-WSL",
|
||||
"rev": "203a7b463f307c60026136dd1191d9001c43457f",
|
||||
"rev": "be4af8042e7a61fa12fda58fe9a3b3babdefe17b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -58,11 +166,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1754725699,
|
||||
"narHash": "sha256-iAcj9T/Y+3DBy2J0N+yF9XQQQ8IEb5swLFzs23CdP88=",
|
||||
"lastModified": 1759831965,
|
||||
"narHash": "sha256-vgPm2xjOmKdZ0xKA6yLXPJpjOtQPHfaZDRtH+47XEBo=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "85dbfc7aaf52ecb755f87e577ddbe6dbbdbc1054",
|
||||
"rev": "c9b6fb798541223bbb396d287d16f43520250518",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -74,15 +182,15 @@
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1756125398,
|
||||
"narHash": "sha256-XexyKZpf46cMiO5Vbj+dWSAXOnr285GHsMch8FBoHbc=",
|
||||
"owner": "nixos",
|
||||
"lastModified": 1759831965,
|
||||
"narHash": "sha256-vgPm2xjOmKdZ0xKA6yLXPJpjOtQPHfaZDRtH+47XEBo=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "3b9f00d7a7bf68acd4c4abb9d43695afb04e03a5",
|
||||
"rev": "c9b6fb798541223bbb396d287d16f43520250518",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
@@ -90,11 +198,11 @@
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1756787288,
|
||||
"narHash": "sha256-rw/PHa1cqiePdBxhF66V7R+WAP8WekQ0mCDG4CFqT8Y=",
|
||||
"lastModified": 1765472234,
|
||||
"narHash": "sha256-9VvC20PJPsleGMewwcWYKGzDIyjckEz8uWmT0vCDYK0=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d0fc30899600b9b3466ddb260fd83deb486c32f1",
|
||||
"rev": "2fbfb1d73d239d2402a8fe03963e37aab15abe8b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -104,122 +212,44 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"pydev": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
"pyproject-build-systems": "pyproject-build-systems",
|
||||
"pyproject-nix": "pyproject-nix_2",
|
||||
"uv2nix": "uv2nix"
|
||||
},
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"path": "./system/extras/pydev/",
|
||||
"type": "path"
|
||||
},
|
||||
"original": {
|
||||
"path": "./system/extras/pydev/",
|
||||
"type": "path"
|
||||
},
|
||||
"parent": []
|
||||
},
|
||||
"pyproject-build-systems": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"pydev",
|
||||
"nixpkgs"
|
||||
],
|
||||
"pyproject-nix": "pyproject-nix",
|
||||
"uv2nix": [
|
||||
"pydev",
|
||||
"uv2nix"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1756087852,
|
||||
"narHash": "sha256-4jc3JDQt75fYXFrglgqyzF6C6zLU0QGLymzian4aP+U=",
|
||||
"owner": "pyproject-nix",
|
||||
"repo": "build-system-pkgs",
|
||||
"rev": "6edb3ae27395cd88be3d64b732d1539957dad59c",
|
||||
"lastModified": 1765779637,
|
||||
"narHash": "sha256-KJ2wa/BLSrTqDjbfyNx70ov/HdgNBCBBSQP3BIzKnv4=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "1306659b587dc277866c7b69eb97e5f07864d8c4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "pyproject-nix",
|
||||
"repo": "build-system-pkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"pyproject-nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"pydev",
|
||||
"pyproject-build-systems",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1755886095,
|
||||
"narHash": "sha256-oMQ1YERKqiac28LB1cKjl4d0gjvK98SbGejFMfK0WGE=",
|
||||
"owner": "nix-community",
|
||||
"repo": "pyproject.nix",
|
||||
"rev": "7ea903d50c20d4d3ea45ccaad7ee0d21996780c9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "pyproject.nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"pyproject-nix_2": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"pydev",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1756395552,
|
||||
"narHash": "sha256-5aJM14MpoLk2cdZAetu60OkLQrtFLWTICAyn1EP7ZpM=",
|
||||
"owner": "pyproject-nix",
|
||||
"repo": "pyproject.nix",
|
||||
"rev": "030dffc235dcf240d918c651c78dc5f158067b51",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "pyproject-nix",
|
||||
"repo": "pyproject.nix",
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"home-manager": "home-manager",
|
||||
"currents": "currents",
|
||||
"home-manager": "home-manager_2",
|
||||
"lix": "lix",
|
||||
"lix-module": "lix-module",
|
||||
"nixos-wsl": "nixos-wsl",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"pydev": "pydev"
|
||||
"nixpkgs": "nixpkgs_4"
|
||||
}
|
||||
},
|
||||
"uv2nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"pydev",
|
||||
"nixpkgs"
|
||||
],
|
||||
"pyproject-nix": [
|
||||
"pydev",
|
||||
"pyproject-nix"
|
||||
]
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1756466761,
|
||||
"narHash": "sha256-ALXRHIMXQ4qVNfCbcWykC23MjMwUoHn9BreoBfqmq0Y=",
|
||||
"owner": "pyproject-nix",
|
||||
"repo": "uv2nix",
|
||||
"rev": "0529e6d8227517205afcd1b37eee3088db745730",
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "pyproject-nix",
|
||||
"repo": "uv2nix",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
|
||||
82
flake.nix
82
flake.nix
@@ -3,14 +3,34 @@
|
||||
description = "Autumn's multi-system configs";
|
||||
|
||||
inputs = {
|
||||
pydev.url ="./system/extras/pydev/";
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
#dev stuff
|
||||
# pydev.url ="./system/extras/pydev/";
|
||||
currents.url = "github:autumnalmusing/currents/main";
|
||||
#regular flakes
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
lix.url = "https://git.lix.systems/lix-project/lix/archive/main.tar.gz";
|
||||
lix.flake = false;
|
||||
lix-module = {
|
||||
url = "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.lix.follows = "lix";
|
||||
};
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, pydev, nixos-wsl, ... }@inputs:
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
lix-module,
|
||||
lix,
|
||||
home-manager,
|
||||
# pydev,
|
||||
currents,
|
||||
nixos-wsl,
|
||||
...
|
||||
}@inputs:
|
||||
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
@@ -29,39 +49,73 @@
|
||||
extraSpecialArgs = specialArgs;
|
||||
pkgs = pkgs;
|
||||
modules = [
|
||||
./home-manager/autumn/home.nix
|
||||
./home-manager/autumn/sysconfs/yukigekko.nix
|
||||
./home/autumn/home.nix
|
||||
./home/autumn/sysconfs/yukigekko.nix
|
||||
];
|
||||
};
|
||||
"autumn@lesbos" = home-manager.lib.homeManagerConfiguration{
|
||||
extraSpecialArgs = specialArgs;
|
||||
pkgs = pkgs;
|
||||
modules = [
|
||||
./home-manager/autumn/home.nix
|
||||
# ./home-manager/autumn/sysconfs/lesbos.nix
|
||||
./home/autumn/home.nix
|
||||
./home-manager/autumn/sysconfs/lesbos.nix
|
||||
];
|
||||
};
|
||||
"autumn@wsl-hive" = home-manager.lib.homeManagerConfiguration{
|
||||
extraSpecialArgs = specialArgs;
|
||||
pkgs = pkgs;
|
||||
modules = [
|
||||
./home-manager/autumn/home.nix
|
||||
./home/autumn/home.nix
|
||||
./home/autumn/sysconfs/wsl-hive.nix
|
||||
];
|
||||
};
|
||||
"autumn@hoardfrost" = home-manager.lib.homeManagerConfiguration{
|
||||
extraSpecialArgs = specialArgs;
|
||||
pkgs = pkgs;
|
||||
modules = [
|
||||
./home/autumn/sysconfs/hoardfrost.nix
|
||||
];
|
||||
};
|
||||
"autumn@rhiannon" = home-manager.lib.homeManagerConfiguration{
|
||||
extraSpecialArgs = specialArgs;
|
||||
pkgs = pkgs;
|
||||
modules = [
|
||||
./home/autumn/home.nix
|
||||
./home/autumn/sysconfs/yukigekko.nix
|
||||
];
|
||||
};
|
||||
"autumn@macha" = home-manager.lib.homeManagerConfiguration{
|
||||
extraSpecialArgs = specialArgs;
|
||||
pkgs = pkgs;
|
||||
modules = [
|
||||
./home/autumn/home.nix
|
||||
./home/autumn/sysconfs/lesbos.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
nixosConfigurations = {
|
||||
"yukigekko" = nixpkgs.lib.nixosSystem{
|
||||
system = system;
|
||||
specialArgs = specialArgs;
|
||||
modules = [
|
||||
./system/yukigekko/configuration.nix
|
||||
lix-module.nixosModules.default
|
||||
];
|
||||
};
|
||||
"lesbos" = nixpkgs.lib.nixosSystem{
|
||||
system = system;
|
||||
specialArgs = specialArgs;
|
||||
modules = [
|
||||
./system/lesbos/configuration.nix
|
||||
];
|
||||
};
|
||||
"hoardfrost" = nixpkgs.lib.nixosSystem{
|
||||
system = system;
|
||||
specialArgs = specialArgs;
|
||||
modules = [
|
||||
./system/hoardfrost/configuration.nix
|
||||
];
|
||||
};
|
||||
"wsl-hive" = nixpkgs.lib.nixosSystem{
|
||||
specialArgs = specialArgs;
|
||||
system = system;
|
||||
@@ -70,5 +124,17 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
hydraJobs = {
|
||||
nixos = {
|
||||
yukigekko = self.nixosConfigurations.yukigekko.config.system.build.toplevel;
|
||||
lesbos = self.nixosConfigurations.lesbos.config.system.build.toplevel;
|
||||
wsl-hive = self.nixosConfigurations.wsl-hive.config.system.build.toplevel;
|
||||
};
|
||||
homes = {
|
||||
"autumn@yukigekko" = self.homeConfigurations."autumn@yukigekko".activationPackage;
|
||||
"autumn@lesbos" = self.homeConfigurations."autumn@lesbos".activationPackage;
|
||||
"autumn@wsl-hive" = self.homeConfigurations."autumn@wsl-hive".activationPackage;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
imports = [
|
||||
../../packages/river/river.nix
|
||||
../../packages/waybar/waybar.nix
|
||||
];
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
theme = "everforest_dark";
|
||||
settings = {
|
||||
font = {
|
||||
italic = {
|
||||
family = "Hack Nerd Font";
|
||||
style = "Regular";
|
||||
};
|
||||
normal = {
|
||||
family = "Hack Nerd Font";
|
||||
style = "Regular";
|
||||
};
|
||||
};
|
||||
window = {
|
||||
opacity = 0.9;
|
||||
blur = true;
|
||||
padding = {x=0;y=15;};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
@@ -1,156 +0,0 @@
|
||||
add_newline = false
|
||||
|
||||
|
||||
format = """
|
||||
[█](#D52D00)\
|
||||
$username\
|
||||
[](bg:#EF7627 fg:#D52D00)\
|
||||
$directory\
|
||||
[](fg:#EF7627 bg:#FF9A56)\
|
||||
$git_branch\
|
||||
$git_status\
|
||||
[](fg:#FF9A56 bg:#D162A4)\
|
||||
$c\
|
||||
$python\
|
||||
$elixir\
|
||||
$elm\
|
||||
$golang\
|
||||
$haskell\
|
||||
$java\
|
||||
$julia\
|
||||
$nodejs\
|
||||
$nim\
|
||||
$rust\
|
||||
$zig\
|
||||
[](fg:#D162A4 bg:#B55690)\
|
||||
$docker_context\
|
||||
[](fg:#B55690 bg:#A30262)\
|
||||
$time\
|
||||
[ ](fg:#A30262)\
|
||||
\n\
|
||||
$status\
|
||||
$cmd_duration\
|
||||
[ ](fg:#d52d00)
|
||||
"""
|
||||
# You can also replace your username with a neat symbol like to save some space
|
||||
[username]
|
||||
show_always = true
|
||||
style_user = "bg:#D52D00"
|
||||
style_root = "bg:#D52D00"
|
||||
format = '[$user ]($style)'
|
||||
|
||||
[directory]
|
||||
style = "bg:#EF7627"
|
||||
format = "[ $path ]($style)"
|
||||
truncation_length = 3
|
||||
truncation_symbol = "…/"
|
||||
|
||||
# Here is how you can shorten some long paths by text replacement
|
||||
# similar to mapped_locations in Oh My Posh:
|
||||
[directory.substitutions]
|
||||
"Documents" = " "
|
||||
"Downloads" = " "
|
||||
"Music" = " "
|
||||
"Pictures" = " "
|
||||
# Keep in mind that the order matters. For example:
|
||||
# "Important Documents" = " "
|
||||
# will not be replaced, because "Documents" was already substituted before.
|
||||
# So either put "Important Documents" before "Documents" or use the substituted version:
|
||||
# "Important " = " "
|
||||
|
||||
[c]
|
||||
symbol = " "
|
||||
style = "fg:#d3c6aa bg:#D162A4"
|
||||
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#D162A4)]($style)'
|
||||
|
||||
[docker_context]
|
||||
symbol = " "
|
||||
style = "fg:#666666 bg:#06969a"
|
||||
format = '[[ $symbol $context ](fg:#666666 bg:#06969A)]($style) $path'
|
||||
|
||||
[elixir]
|
||||
symbol = " "
|
||||
style = "fg:#d3c6aa bg:#D162A4"
|
||||
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#D162A4)]($style)'
|
||||
|
||||
[elm]
|
||||
symbol = " "
|
||||
style = "fg:#d3c6aa bg:#D162A4"
|
||||
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#D162A4)]($style)'
|
||||
|
||||
[git_branch]
|
||||
symbol = " "
|
||||
style = "fg:#666666 bg:#FF9A56"
|
||||
format = '[[ $symbol $branch ](fg:#666666 bg:#FF9A56)]($style)'
|
||||
|
||||
[git_status]
|
||||
style = "fg:#666666 bg:#FF9A56"
|
||||
format = '[[($all_status$ahead_behind )](fg:#666666 bg:#FF9A56)]($style)'
|
||||
|
||||
[golang]
|
||||
symbol = " "
|
||||
style = "fg:#d3c6aa bg:#D162A4"
|
||||
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#D162A4)]($style)'
|
||||
|
||||
[haskell]
|
||||
symbol = " "
|
||||
style = "fg:#d3c6aa bg:#D162A4"
|
||||
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#D162A4)]($style)'
|
||||
|
||||
[java]
|
||||
symbol = " "
|
||||
style = "fg:#d3c6aa bg:#D162A4"
|
||||
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#D162A4)]($style)'
|
||||
|
||||
[julia]
|
||||
symbol = " "
|
||||
style = "fg:#d3c6aa bg:#D162A4"
|
||||
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#D162A4)]($style)'
|
||||
|
||||
[nodejs]
|
||||
symbol = " "
|
||||
style = "fg:#d3c6aa bg:#D162A4"
|
||||
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#D162A4)]($style)'
|
||||
|
||||
[nim]
|
||||
symbol = " "
|
||||
style = "fg:#d3c6aa bg:#D162A4"
|
||||
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#D162A4)]($style)'
|
||||
|
||||
[rust]
|
||||
symbol = " "
|
||||
style = "fg:#d3c6aa bg:#D162A4"
|
||||
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#D162A4)]($style)'
|
||||
|
||||
[ruby]
|
||||
symbol = " "
|
||||
style = "fg:#d3c6aa bg:#D162A4"
|
||||
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#D162A4)]($style)'
|
||||
|
||||
[python]
|
||||
symbol = " "
|
||||
style = "fg:#d3c6aa bg:#D162A4"
|
||||
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#D162A4)]($style)'
|
||||
|
||||
[time]
|
||||
disabled = false
|
||||
time_format = "%R" # Hour:Minute Format
|
||||
style = "fg:#d3c6aa bg:#A30262"
|
||||
format = '[[ ♥ $time ](bg:#A30262)]($style)'
|
||||
|
||||
[status]
|
||||
disabled = false
|
||||
symbol = " "
|
||||
success_symbol = " "
|
||||
not_executable_symbol = " "
|
||||
not_found_symbol = " "
|
||||
sigint_symbol = " "
|
||||
signal_symbol = " "
|
||||
recognize_signal_code = false
|
||||
style = "fg:#d3c6aa bg:#D52D00"
|
||||
format = '[ $symbol ]($style)'
|
||||
|
||||
[cmd_duration]
|
||||
min_time = 10_000
|
||||
style = "fg:#d3c6aa bg:#d52d00"
|
||||
format = '[$duration]($style)'
|
||||
@@ -1,191 +0,0 @@
|
||||
* {
|
||||
font-family: JetBrains Mono, Font Awesome 6 Free;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
color: #ffffff;
|
||||
background-color: #1e3b28;
|
||||
border-bottom: 3px solid #8f2fef;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
button {
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: inherit;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 15px;
|
||||
background-color: transparent;
|
||||
border: 2px solid #8f2fef
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background-color: #8f2fef;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #f38ba8;
|
||||
}
|
||||
|
||||
#backlight,
|
||||
#battery,
|
||||
#clock,
|
||||
#cpu,
|
||||
#memory,
|
||||
#mode,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#temperature,
|
||||
#tray,
|
||||
#idle_inhibitor,
|
||||
#keyboard-state,
|
||||
#power-profiles-daemon {
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 8px;
|
||||
}
|
||||
|
||||
.modules-left>widget:first-child>#workspaces {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.modules-right>widget:last-child>#workspaces {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #cba6f7;
|
||||
}
|
||||
|
||||
#battery {
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #a6e3a1;
|
||||
}
|
||||
|
||||
#battery.critical.discharging {
|
||||
background-color: #f38ba8;
|
||||
animation: blink 1s infinite;
|
||||
}
|
||||
|
||||
#battery.warning.discharging {
|
||||
background-color: #f9e2af;
|
||||
animation: blink 1s infinite;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
#clock {
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #a6e3a1;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #cba6f7;
|
||||
}
|
||||
|
||||
#memory {
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #f9e2af;
|
||||
}
|
||||
|
||||
#mode {
|
||||
color: #ffffff;
|
||||
background-color: #8f2fef;
|
||||
border-bottom: 3px solid #ffffff;
|
||||
}
|
||||
|
||||
#network {
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #a6e3a1;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #f38ba8;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #a6e3a1;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #f38ba8;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #a6e3a1;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #f38ba8;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #8f2fef;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #f9e2af;
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
color: #1e3b28;
|
||||
background-color: #f9e2af;
|
||||
border-bottom: 3px solid #f9e2af;
|
||||
}
|
||||
|
||||
#keyboard-state {
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #fab387;
|
||||
}
|
||||
|
||||
#power-profiles-daemon {
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #94e2d5;
|
||||
}
|
||||
@@ -1,322 +0,0 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
settings = {
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
position = "top";
|
||||
height = 30;
|
||||
spacing = 4;
|
||||
|
||||
# Module layout
|
||||
#
|
||||
modules-left = [
|
||||
"river/tags"
|
||||
];
|
||||
modules-center = [
|
||||
#"river/mode"
|
||||
# "river/layout"
|
||||
"river/window"
|
||||
];
|
||||
modules-right = [
|
||||
"pulseaudio"
|
||||
"network#wifi"
|
||||
"cpu"
|
||||
"memory"
|
||||
"temperature"
|
||||
"backlight"
|
||||
"battery"
|
||||
"clock"
|
||||
"tray"
|
||||
];
|
||||
|
||||
# Module configurations
|
||||
|
||||
"river/tags" = {
|
||||
num-tags = 10;
|
||||
tag-labels = [
|
||||
"1"
|
||||
"2"
|
||||
"3"
|
||||
"4"
|
||||
"5"
|
||||
"6"
|
||||
"7"
|
||||
"8"
|
||||
"9"
|
||||
"0"
|
||||
];
|
||||
set-tags = [
|
||||
2147483649
|
||||
2147483650
|
||||
2147483652
|
||||
2147483656
|
||||
2147483664
|
||||
2147483680
|
||||
2147483712
|
||||
2147483776
|
||||
2147483904
|
||||
2147483648
|
||||
];
|
||||
toggle-tags = [
|
||||
1
|
||||
2
|
||||
4
|
||||
8
|
||||
16
|
||||
32
|
||||
64
|
||||
128
|
||||
256
|
||||
];
|
||||
hide-vacant = true;
|
||||
};
|
||||
|
||||
"river/window" = {
|
||||
format = "{}";
|
||||
max-length = 20;
|
||||
};
|
||||
|
||||
"tray" = {
|
||||
icon-size = 21;
|
||||
spacing = 10;
|
||||
};
|
||||
|
||||
"clock" = {
|
||||
timezone = "America/Denver";
|
||||
tooltip-format = "<big>{calendar}</big>";
|
||||
format-alt = "{:%Y-%m-%d}";
|
||||
};
|
||||
|
||||
"cpu" = {
|
||||
format = "{usage}% ";
|
||||
tooltip = true;
|
||||
};
|
||||
|
||||
"memory" = {
|
||||
format = "{}% ";
|
||||
};
|
||||
|
||||
"temperature" = {
|
||||
# thermal-zone = 2;
|
||||
# hwmon-path = "/sys/class/hwmon/hwmon2/temp1_input";
|
||||
critical-threshold = 80;
|
||||
format-critical = "{temperatureC}°C {icon}";
|
||||
format = "{temperatureC}°C {icon}";
|
||||
format-icons = ["" "" ""];
|
||||
};
|
||||
|
||||
"backlight" = {
|
||||
format = "{percent}% {icon}";
|
||||
format-icons = ["" "" "" "" "" "" "" "" ""];
|
||||
};
|
||||
|
||||
"battery" = {
|
||||
states = {
|
||||
good = 95;
|
||||
warning = 30;
|
||||
critical = 15;
|
||||
};
|
||||
format = "{icon} {capacity}%";
|
||||
format-full = "{icon} Full";
|
||||
format-charging = "{icon} Charging {capacity}% {time}";
|
||||
format-plugged = "{icon} Charge complete";
|
||||
format-good = ">{icon} {capacity}%";
|
||||
format-icons = ["" "" "" "" "" "" "" ""];
|
||||
};
|
||||
|
||||
"network#wifi" = {
|
||||
interface = "wlp*";
|
||||
format-wifi = "{essid} ({signalStrength}%) ";
|
||||
tooltip-format = "{ifname} via {gwaddr} ";
|
||||
format-linked = "{ifname} (No IP) ";
|
||||
format-disconnected = "No WiFi";
|
||||
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
||||
};
|
||||
|
||||
"pulseaudio" = {
|
||||
format = "{volume}% {icon} {format_source}";
|
||||
format-bluetooth = "{volume}% {icon} {format_source}";
|
||||
format-bluetooth-muted = " {icon} {format_source}";
|
||||
format-muted = " {format_source}";
|
||||
format-source = "{volume}% ";
|
||||
format-source-muted = "";
|
||||
format-icons = {
|
||||
headphone = "";
|
||||
hands-free = "";
|
||||
headset = "";
|
||||
phone = "";
|
||||
portable = "";
|
||||
car = "";
|
||||
default = ["" "" ""];
|
||||
on-click = "pavucontrol";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Waybar styling inspired by the referenced swayhome configuration
|
||||
style = ''
|
||||
* {
|
||||
font-family: "Hack Nerd Font Mono";
|
||||
font-size: 13px;
|
||||
}
|
||||
window#waybar {
|
||||
color: #d3c6aa;
|
||||
background-color: #2b3339;
|
||||
border-bottom: 3px solid #7fbbb3;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
button {
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
border: 1px #000000 solid;
|
||||
border-radius: 0;
|
||||
color:#d3c6aa;
|
||||
|
||||
}
|
||||
button:hover {
|
||||
background: inherit;
|
||||
box-shadow: inset 0 -3px #7fbbb3;
|
||||
}
|
||||
|
||||
#tags button {
|
||||
padding: 0 15px;
|
||||
background-color: transparent;
|
||||
border: 2px solid #d3c6aa;
|
||||
}
|
||||
|
||||
#tags button.occupied {
|
||||
background: #d3c6aa;
|
||||
border: 1px solid #2b3339;
|
||||
color:#2b3339;
|
||||
}
|
||||
|
||||
#tags button.focused {
|
||||
background-color: #7fbbb3;
|
||||
color: #2b3339;
|
||||
border: 1px solid #2b3339;
|
||||
border-bottom: 3px solid #2b3339;
|
||||
}
|
||||
|
||||
#tags button.urgent {
|
||||
background-color: #e67e80;
|
||||
}
|
||||
|
||||
|
||||
#backlight,
|
||||
#battery,
|
||||
#clock,
|
||||
#cpu,
|
||||
#memory,
|
||||
#mode,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#temperature,
|
||||
#tray,
|
||||
#power-profiles-daemon {
|
||||
padding: 0 8px;
|
||||
color:#d3c6aa;
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 8px;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #cba6f7;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #a6e3a1;
|
||||
}
|
||||
|
||||
#battery.critical.discharging {
|
||||
background-color: #f38ba8;
|
||||
animation: blink 1s infinite;
|
||||
}
|
||||
|
||||
#battery.warning.discharging {
|
||||
background-color: #f9e2af;
|
||||
animation: blink 1s infinite;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #a6e3a1;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #cba6f7;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #f9e2af;
|
||||
}
|
||||
|
||||
#mode {
|
||||
color: #ffffff;
|
||||
background-color: #6e3a6d;
|
||||
border-bottom: 3px solid #ffffff;
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #a6e3a1;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #f38ba8;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #a6e3a1;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #f38ba8;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #a6e3a1;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #f38ba8;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #6e3a6d;
|
||||
}
|
||||
#power-profiles-daemon {
|
||||
background-color: transparent;
|
||||
border-bottom: 3px solid #94e2d5;
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
home = {
|
||||
@@ -6,53 +6,52 @@
|
||||
homeDirectory = "/home/autumn";
|
||||
stateVersion = "25.11";
|
||||
packages = with pkgs; [
|
||||
neofetch
|
||||
vscodium-fhs
|
||||
nerd-fonts.hack
|
||||
vesktop
|
||||
obsidian
|
||||
htop
|
||||
gnumake
|
||||
python314Full
|
||||
eza
|
||||
fm
|
||||
felix
|
||||
swaybg
|
||||
gnumake
|
||||
htop
|
||||
nerd-fonts.hack
|
||||
neofetch
|
||||
uv
|
||||
wev
|
||||
];
|
||||
sessionVariables = {
|
||||
EDITOR = "helix";
|
||||
TERM = "alacritty";
|
||||
};
|
||||
file = {
|
||||
|
||||
};
|
||||
};
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
htop.enable = true;
|
||||
bash.initExtra= ''fish'';
|
||||
pls = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
};
|
||||
nixpkgs.config = {
|
||||
alowUnfree = true;
|
||||
allowUnfreePredicate = (_: true);
|
||||
};
|
||||
# wayland.windowManager.river.enable = true;
|
||||
imports = [
|
||||
|
||||
## Themeing
|
||||
|
||||
# cursor theme
|
||||
../themefiles/cursor.nix
|
||||
|
||||
# packages with further configuration
|
||||
../packages/alacritty/alacritty.nix
|
||||
../packages/crawl/crawl.nix
|
||||
../packages/direnv/direnv.nix
|
||||
../packages/fish/fish.nix
|
||||
../packages/fuzzel/fuzzel.nix
|
||||
../packages/git/git.nix
|
||||
../packages/helix/helix.nix
|
||||
../packages/spotifyd/spotifyd.nix
|
||||
../packages/starship/starship.nix
|
||||
../packages/thunderbird/thunderbird.nix
|
||||
../packages/zellij/zellij.nix
|
||||
../packages/zoxide/zoxide.nix
|
||||
../packages/zsh/zsh.nix
|
||||
# package bundles
|
||||
./bundles/langs.nix
|
||||
];
|
||||
../bundles/langs.nix
|
||||
|
||||
];
|
||||
}
|
||||
66
home/autumn/sysconfs/hoardfrost.nix
Normal file
66
home/autumn/sysconfs/hoardfrost.nix
Normal file
@@ -0,0 +1,66 @@
|
||||
{config, pkgs, ...}:
|
||||
|
||||
{
|
||||
home = {
|
||||
username = "autumn";
|
||||
homeDirectory = "/home/autumn";
|
||||
stateVersion = "25.11";
|
||||
packages = with pkgs; [
|
||||
htop
|
||||
gnumake
|
||||
neofetch
|
||||
oh-my-zsh
|
||||
];
|
||||
};
|
||||
xdg.configFile."starship.toml".source = ../../packages/starship/starship.toml;
|
||||
xdg.configFile."rust-motd/rust-motd.kdl".source = ../../packages/rust-motd/rust-motd.kdl;
|
||||
# programs.bash.initExtra = [
|
||||
# "zsh"
|
||||
# "starship init zsh"
|
||||
# ];
|
||||
programs.starship.enable = true;
|
||||
programs.starship.enableZshIntegration = true;
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userEmail = "autumnal.musing@gmail.com";
|
||||
userName = "autumn";
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
antidote = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"zsh-users/zsh-autosuggestions"
|
||||
"zsh-users/zsh-syntax-highlighting"
|
||||
];
|
||||
useFriendlyNames = true;
|
||||
};
|
||||
autosuggestion = {
|
||||
enable = true;
|
||||
};
|
||||
shellAliases = {
|
||||
".." = "cd ..";
|
||||
"..." = "cd ../..";
|
||||
"...." = "cd ../../..";
|
||||
"pls" = "pls -d typ -d perm -d user -d group -d size -d mtime -d git";
|
||||
"z" = "zoxide";
|
||||
};
|
||||
sessionVariables ={
|
||||
SERVDIR = "/srv/samba/hoardfrost/mainstore";
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"git"
|
||||
"sudo"
|
||||
"colored-man-pages"
|
||||
"colorize"
|
||||
"cp"
|
||||
# "zoxide"
|
||||
# "ssh-agent"
|
||||
"command-not-found"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
11
home/autumn/sysconfs/lesbos.nix
Normal file
11
home/autumn/sysconfs/lesbos.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
home.packags = with pkgs; [
|
||||
obsidian
|
||||
vscodium-fhs
|
||||
vesktop
|
||||
];
|
||||
imports = [
|
||||
../../packages/fish/fish.nix
|
||||
];
|
||||
}
|
||||
9
home/autumn/sysconfs/wsl-hive.nix
Normal file
9
home/autumn/sysconfs/wsl-hive.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{config, pkgs, ...}:
|
||||
|
||||
{
|
||||
# home.shell = pkgs.zsh;
|
||||
imports = [
|
||||
../../packages/zsh/zsh.nix
|
||||
../../packages/zellij/zellij.nix
|
||||
];
|
||||
}
|
||||
27
home/autumn/sysconfs/yukigekko.nix
Normal file
27
home/autumn/sysconfs/yukigekko.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{config, pkgs, inputs, ...}:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
obsidian
|
||||
vscodium-fhs
|
||||
vesktop
|
||||
cursor-cli
|
||||
distrobox
|
||||
];
|
||||
imports = [
|
||||
# ../../packages/fish/fish.nix
|
||||
../../packages/currents/currents.nix
|
||||
../../packages/river/river.nix
|
||||
../../packages/waybar/waybar.nix
|
||||
# ../../packages/twmn/twmn.nix
|
||||
../../packages/mako/mako.nix
|
||||
../../packages/fuzzel/fuzzel.nix
|
||||
../../packages/avizo/avizo.nix
|
||||
../../packages/niri/niri.nix
|
||||
# Distrobox containers
|
||||
# ../../boxes/archlinux/box-archlinux.nix
|
||||
|
||||
inputs.currents.homeManagerModules.currents
|
||||
];
|
||||
|
||||
services.currents.enable = true;
|
||||
}
|
||||
@@ -2,25 +2,37 @@
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
ccls
|
||||
# ccls
|
||||
cmake
|
||||
docker-language-server
|
||||
nil
|
||||
ty
|
||||
rustc
|
||||
rustup
|
||||
gleam
|
||||
ruff
|
||||
ruby
|
||||
rubyPackages_3_4.solargraph
|
||||
nim-2_0
|
||||
nimlangserver
|
||||
kdlfmt
|
||||
superhtml
|
||||
fish-lsp
|
||||
ember-cli
|
||||
ember-language-server
|
||||
yaml-language-server
|
||||
fish-lsp
|
||||
gcc
|
||||
libgcc
|
||||
gleam
|
||||
glib
|
||||
kdlfmt
|
||||
lessc
|
||||
meson
|
||||
nil
|
||||
nim-2_0
|
||||
nimlangserver
|
||||
odin
|
||||
ols
|
||||
# python314
|
||||
pkg-config
|
||||
python313
|
||||
ruby
|
||||
rubyPackages_3_4.solargraph
|
||||
ruff
|
||||
rustc
|
||||
rustup
|
||||
superhtml
|
||||
ty
|
||||
vscode-langservers-extracted
|
||||
vala
|
||||
vala-language-server
|
||||
yaml-language-server
|
||||
];
|
||||
}
|
||||
0
home-manager/flake.lock → home/flake.lock
generated
0
home-manager/flake.lock → home/flake.lock
generated
54
home/packages/alacritty/alacritty.nix
Normal file
54
home/packages/alacritty/alacritty.nix
Normal file
@@ -0,0 +1,54 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font = {
|
||||
italic = {
|
||||
family = "Hack Nerd Font";
|
||||
style = "Regular";
|
||||
};
|
||||
normal = {
|
||||
family = "Hack Nerd Font";
|
||||
style = "Regular";
|
||||
};
|
||||
};
|
||||
window = {
|
||||
padding = {x=0;y=15;};
|
||||
};
|
||||
colors = {
|
||||
primary = {
|
||||
background = "#2b3339";
|
||||
foreground = "#d3c6aa";
|
||||
};
|
||||
cursor = {
|
||||
text = "#2b3339";
|
||||
cursor = "#d3c6aa";
|
||||
};
|
||||
normal = {
|
||||
black = "#323c41";
|
||||
red = "#e67e80";
|
||||
green = "#a7c080";
|
||||
yellow = "#dbbc7f";
|
||||
blue = "#7fbbb3";
|
||||
magenta = "#d699b6";
|
||||
cyan = "#83c092";
|
||||
white = "#d3c6aa";
|
||||
};
|
||||
bright = {
|
||||
black = "#445055";
|
||||
red = "#e67e80";
|
||||
green = "#a7c080";
|
||||
yellow = "#dbbc7f";
|
||||
blue = "#7fbbb3";
|
||||
magenta = "#d699b6";
|
||||
cyan = "#83c092";
|
||||
white = "#9da9a0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
11
home/packages/avizo/avizo.nix
Normal file
11
home/packages/avizo/avizo.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
services.avizo.enable = true;
|
||||
home.file = {
|
||||
"config.ini" = {
|
||||
enable = true;
|
||||
source = ../../packages/avizo/config.ini;
|
||||
target = ".config/avizo/config.ini";
|
||||
};
|
||||
};
|
||||
}
|
||||
60
home/packages/avizo/config.ini
Normal file
60
home/packages/avizo/config.ini
Normal file
@@ -0,0 +1,60 @@
|
||||
[default]
|
||||
# The time to show the notification for.
|
||||
;time = 5.0
|
||||
|
||||
# The base directory to resolve relative image-path against (default is $XDG_DATA_HOME/avizo).
|
||||
image-base-dir = ~/avizo-images
|
||||
|
||||
# The image opacity; allowed values range from 0 (fully transparent) to 1.0 (fully opaque).
|
||||
;image-opacity = 1.0
|
||||
|
||||
# The width of the notification.
|
||||
width = 248
|
||||
|
||||
# The height of the notification.
|
||||
height = 248
|
||||
|
||||
# The inner padding of the notification.
|
||||
;padding = 24
|
||||
|
||||
# A relative offset of the notification to the top of the screen.
|
||||
# Allowed values range from 0 (top) to 1.0 (bottom).
|
||||
y-offset = 0.5
|
||||
|
||||
# A relative offset of the notification to the left of the screen.
|
||||
# Allowed values range from 0 (left) to 1.0 (right).
|
||||
x-offset = 0.5
|
||||
|
||||
# The border radius of the notification in px.
|
||||
border-radius = 4
|
||||
|
||||
# Sets the border width of the notification in px.
|
||||
border-width = 4
|
||||
|
||||
# The block height of the progress indicator.
|
||||
;block-height = 10
|
||||
|
||||
# The spacing between blocks in the progress indicator.
|
||||
;block-spacing = 2
|
||||
|
||||
# Sets the amount of blocks in the progress indicator.
|
||||
;block-count = 20
|
||||
|
||||
# Sets the fade in animation duration in seconds.
|
||||
;fade-in = 0.2
|
||||
|
||||
# Sets the fade out animation duration in seconds.
|
||||
;fade-out = 0.5
|
||||
|
||||
# The color of the notification background in format: rgba([0, 255], [0, 255], [0, 255], [0, 1]).
|
||||
background = rgba(43, 51, 57, 0.8)
|
||||
|
||||
# Sets the color of the notification border in format rgba([0, 255], [0, 255], [0, 255], [0, 1]).
|
||||
border-color = rgba(127, 187, 179, 1.0)
|
||||
|
||||
# The color of the filled bar blocks in format: rgba([0, 255], [0, 255], [0, 255], [0, 1]).
|
||||
bar-fg-color = rgba(127, 187, 179, 1.0)
|
||||
|
||||
# The color of the unfilled bar blocks in format rgba([0, 255], [0, 255], [0, 255], [0, 1]).
|
||||
# Defaults to 'background' with 2/3 brightness.
|
||||
bar-bg-color = rgba(211, 198, 170, 1.0)
|
||||
34
home/packages/currents/currents.nix
Normal file
34
home/packages/currents/currents.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{config, pkgs, inputs, ...}:
|
||||
{
|
||||
services.currents = {
|
||||
enable = true;
|
||||
package = inputs.currents.packages.${pkgs.system}.currents-full;
|
||||
weather = {
|
||||
apiKey = "16722031ac8d5ec075344893fcbd41af";
|
||||
location = "Denver, US";
|
||||
units = "imperial";
|
||||
provider = "openweathermap";
|
||||
apiDailyLimit = 1000;
|
||||
};
|
||||
notifications = {
|
||||
urgency = "normal";
|
||||
sound = false;
|
||||
};
|
||||
polling = {
|
||||
intervalSeconds = 300;
|
||||
retryAttempts = 3;
|
||||
retryDelaySeconds = 60;
|
||||
};
|
||||
forecastHighlights = {
|
||||
temperature = {
|
||||
high = 80.0;
|
||||
highColor = "red";
|
||||
low = 45.0;
|
||||
lowColor = "cyan";
|
||||
};
|
||||
# humidity = {
|
||||
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
18
home/packages/direnv/direnv.nix
Normal file
18
home/packages/direnv/direnv.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# home.file = {
|
||||
# direnvrc = {
|
||||
# enable = true;
|
||||
# executable = true;
|
||||
# target = ".config/direnv/";
|
||||
# source = "./direnvrc";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
{
|
||||
|
||||
home.packages = with pkgs; [
|
||||
oh-my-fish
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
oh-my-fish
|
||||
];
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
@@ -15,7 +15,7 @@
|
||||
".." = "cd ..";
|
||||
"..." = "cd ../..";
|
||||
"...." = "cd ../../..";
|
||||
"ls" = "eza";
|
||||
"pls" = "pls -d typ -d perm -d user -d group -d size -d mtime -d git";
|
||||
"z" = "zoxide";
|
||||
};
|
||||
};
|
||||
@@ -8,7 +8,7 @@
|
||||
dracula_trans = ./dracula_trans.toml;
|
||||
};
|
||||
settings = {
|
||||
theme = "everforest_dark_trans";
|
||||
theme = "everforest_dark";
|
||||
editor = {
|
||||
mouse = true;
|
||||
middle-click-paste = true;
|
||||
19
home/packages/mako/mako.nix
Normal file
19
home/packages/mako/mako.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.mako = {
|
||||
enable = true;
|
||||
settings = {
|
||||
anchor = "top-center";
|
||||
actions = true;
|
||||
sort = "-time";
|
||||
border-size = 3;
|
||||
border-color = "#7fbbb3";
|
||||
background-color = "#2b3339";
|
||||
"urgency=low".border-color = "#a7c080";
|
||||
"urgency=normal".border-color = "#7fbbb3";
|
||||
"urgency=high".border-color = "#e67e80";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
123
home/packages/niri/niri.kdl
Normal file
123
home/packages/niri/niri.kdl
Normal file
@@ -0,0 +1,123 @@
|
||||
input {
|
||||
keyboard {
|
||||
xkb {
|
||||
layout "us"
|
||||
}
|
||||
}
|
||||
touchpad {
|
||||
tap
|
||||
accel-speed 0.0
|
||||
scroll-method "two-finger"
|
||||
middle-emulation
|
||||
drag true
|
||||
tap-button-map "left-right-middle"
|
||||
disabled-on-external-mouse
|
||||
}
|
||||
focus-follows-mouse max-scroll-amount="60%"
|
||||
}
|
||||
layout {
|
||||
gaps 10
|
||||
center-focused-column "on-overflow"
|
||||
preset-column-widths {
|
||||
proportion 0.3333333
|
||||
proportion 0.5
|
||||
proportion 0.6666667
|
||||
proportion 1.0
|
||||
}
|
||||
preset-window-heights{
|
||||
proportion 1.0
|
||||
proportion 0.75
|
||||
proportion 0.5
|
||||
proportion 0.25
|
||||
}
|
||||
default-column-width { proportion 0.6666667; }
|
||||
focus-ring { off; }
|
||||
border {
|
||||
width 4
|
||||
active-color "#7fbbb3"
|
||||
inactive-color "#d3c6aa"
|
||||
urgent-color "#e67e80"
|
||||
}
|
||||
}
|
||||
window-rule {
|
||||
geometry-corner-radius 8
|
||||
clip-to-geometry true
|
||||
}
|
||||
window-rule{
|
||||
match app-id="Alacritty"
|
||||
match is-focused=true
|
||||
opacity 0.95
|
||||
}
|
||||
// spawn-at-startup "waybar"
|
||||
spawn-at-startup "swaybg" "-i" "~/Downloads/wp.jpg"
|
||||
spawn-at-startup "avizo-service"
|
||||
binds {
|
||||
//spawn binds
|
||||
Super+Shift+Slash {show-hotkey-overlay;}
|
||||
Super+Return hotkey-overlay-title="Alacritty" {spawn "alacritty";}
|
||||
Super+R hotkey-overlay-title="Fuzzel" {spawn "fuzzel";}
|
||||
Super+E hotkey-overlay-title="File Manager" {spawn "pcmanfm";}
|
||||
Super+B hotkey-overlay-title="Obsidian" {spawn "obsidian";}
|
||||
Super+Escape hotkey-overlay-title="Lock" {spawn "swaylock --screenshots --clock --indicator --indicator-radius 250 --indicator-thickness 12 --effect-blur 7x5 --ring-color 7fbbb3 --line-color d3c6aa --inside-color 2b3339 --separator-color 83c092";}
|
||||
Super+Shift+E hotkey-overlay-title="Quit" {quit;}
|
||||
Super+Q hotkey-overlay-title="Close" {close-window;}
|
||||
Super+O hotkey-overlay-title="Toggle Overview" {toggle-overview;}
|
||||
Super+KP_Subtract {spawn "swaybg" "-i" "~/Downloads/wp.jpg";}
|
||||
|
||||
Super+H {focus-column-left;}
|
||||
Super+J {focus-window-down;}
|
||||
Super+K {focus-window-up;}
|
||||
Super+L {focus-column-right;}
|
||||
Super+Left {focus-column-left;}
|
||||
Super+Down {focus-window-down;}
|
||||
Super+Up {focus-window-up;}
|
||||
Super+Right {focus-column-right;}
|
||||
Super+Shift+H {move-column-left;}
|
||||
Super+Shift+J {move-window-down;}
|
||||
Super+Shift+K {move-window-up;}
|
||||
Super+Shift+L {move-column-right;}
|
||||
Super+Shift+Left {move-column-left;}
|
||||
Super+Shift+Down {move-window-down;}
|
||||
Super+Shift+Up {move-window-up;}
|
||||
Super+Shift+Right {move-column-right;}
|
||||
Super+Home {focus-column-first;}
|
||||
Super+End {focus-column-last;}
|
||||
Super+1 {focus-workspace 1;}
|
||||
Super+2 {focus-workspace 2;}
|
||||
Super+3 {focus-workspace 3;}
|
||||
Super+4 {focus-workspace 4;}
|
||||
Super+5 {focus-workspace 5;}
|
||||
Super+6 {focus-workspace 6;}
|
||||
Super+7 {focus-workspace 7;}
|
||||
Super+8 {focus-workspace 8;}
|
||||
Super+9 {focus-workspace 9;}
|
||||
// Super+10 {focus-workspace 10;}
|
||||
Super+Shift+1 {move-column-to-workspace 1;}
|
||||
Super+Shift+2 {move-column-to-workspace 2;}
|
||||
Super+Shift+3 {move-column-to-workspace 3;}
|
||||
Super+Shift+4 {move-column-to-workspace 4;}
|
||||
Super+Shift+5 {move-column-to-workspace 5;}
|
||||
Super+Shift+6 {move-column-to-workspace 6;}
|
||||
Super+Shift+7 {move-column-to-workspace 7;}
|
||||
Super+Shift+8 {move-column-to-workspace 8;}
|
||||
Super+Shift+9 {move-column-to-workspace 9;}
|
||||
Super+BracketLeft {consume-or-expel-window-left;}
|
||||
Super+BracketRight {consume-or-expel-window-right;}
|
||||
Super+Comma {consume-window-into-column;}
|
||||
Super+Period {expel-window-from-column;}
|
||||
Super+A {switch-preset-column-width;}
|
||||
Super+Shift+A {switch-preset-window-height;}
|
||||
Super+F {maximize-column;}
|
||||
Super+Shift+F {fullscreen-window;}
|
||||
Super+V {toggle-window-floating;}
|
||||
Super+W {toggle-column-tabbed-display;}
|
||||
Super+Page_Down {focus-workspace-down;}
|
||||
Super+Page_Up {focus-workspace-up;}
|
||||
Super+Shift+Page_Down{move-column-to-workspace-down;}
|
||||
Super+Shift+Page_Up{move-column-to-workspace-up;}
|
||||
XF86AudioRaiseVolume {spawn "volumectl" "-d" "-u" "up";}
|
||||
XF86AudioLowerVolume {spawn "volumectl" "-d" "-u" "down";}
|
||||
XF86AudioMute {spawn "volumectl" "-d" "toggle-mute";}
|
||||
XF86MonBrightnessUp {spawn "lightctl" "-d" "up";}
|
||||
XF86MonBrightnessDown {spawn "lightctl" "-d" "down";}
|
||||
}
|
||||
6
home/packages/niri/niri.nix
Normal file
6
home/packages/niri/niri.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
xdg.configFile."niri/config.kdl".source = ./niri.kdl;
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ in
|
||||
|
||||
home.packages = with pkgs; [
|
||||
wideriver
|
||||
swaybg
|
||||
];
|
||||
|
||||
|
||||
@@ -19,23 +20,34 @@ in
|
||||
systemd.enable = true;
|
||||
settings = {
|
||||
spawn = [
|
||||
#spawn notifiers
|
||||
|
||||
# generic notifier
|
||||
"twmnd"
|
||||
# brightness/media volume notifier
|
||||
"avizo-service"
|
||||
#set wallpaper
|
||||
# "swaybg --image ~/Downloads/wp.jpg"
|
||||
# set gaps on wideriver
|
||||
"~/login-wm-setup.sh"
|
||||
# set gaps on wideriver
|
||||
"~/login-wm-setup-2.sh"
|
||||
];
|
||||
output-layout = "wideriver";
|
||||
rule-add = "ssd";
|
||||
border-color-focused = "0x7fbbb3";
|
||||
border-color-unfocusd = "0xd3c6aa";
|
||||
rule-add = {
|
||||
"-app-id" = {
|
||||
"'twmnd'" = {
|
||||
float = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
border-color-urgent = "0xe67e80";
|
||||
map = {
|
||||
normal = {
|
||||
# spawn binds
|
||||
"Super Return" = "spawn alacritty";
|
||||
"Super R" = "spawn fuzzel";
|
||||
"Super E" = "spawn fm";
|
||||
"Super E" = "spawn pcmanfm";
|
||||
"Super B" = "spawn obsidian";
|
||||
"Super Escape" = "spawn \"swaylock --screenshots --clock --indicator --indicator-radius 250 --indicator-thickness 12 --effect-blur 7x5 --ring-color 7fbbb3 --line-color d3c6aa --inside-color 2b3339 --separator-color 83c092\"";
|
||||
|
||||
# format changes
|
||||
"Super U" = "${cmd} \"--layout left\"";
|
||||
@@ -45,12 +57,22 @@ in
|
||||
"Super N" = "${cmd} \"--layout monocle\"";
|
||||
"Super M" = "${cmd} \"--layout wide\"";
|
||||
|
||||
|
||||
# globals
|
||||
"Alt Q" = "close";
|
||||
"Super+Shift E" = "exit";
|
||||
"Super+Shift Return" = "zoom";
|
||||
"Super F" = "toggle-fullscreen";
|
||||
"Super+Shift F" = "toggle-float";
|
||||
|
||||
# avizo keys
|
||||
"None XF86AudioRaiseVolume" = "spawn \"volumectl -d -u up\"";
|
||||
"None XF86AudioLowerVolume" = "spawn \"volumectl -d -u down\"";
|
||||
"None XF86AudioMute" = "spawn \"volumectl -d toggle-mute\"";
|
||||
"None XF86MonBrightnessUp" = "spawn \"lightctl -d up\"";
|
||||
"None XF86MonBrightnessDown" = "spawn \"lightctl -d down\"";
|
||||
"Super KP_Multiply" = "spawn 'playerctl play-pause'";
|
||||
"Super KP_Minus" = "spawn 'playerctl next'";
|
||||
"Super KP_Divide" = "spawn 'playerctl previous'";
|
||||
|
||||
#movement
|
||||
"Super J" = "focus-view next";
|
||||
@@ -102,6 +124,14 @@ in
|
||||
"Super+Shift 0" = "${tft} 2147483648";
|
||||
"Super+Alt 0" = "${tvt} 2147483648";
|
||||
};
|
||||
locked = {
|
||||
# avizo keys
|
||||
"None XF86AudioRaiseVolume" = "spawn \"volumectl -d -u up\"";
|
||||
"None XF86AudioLowerVolume" = "spawn \"volumectl -d -u down\"";
|
||||
"None XF86AudioMute" = "spawn \"volumectl -d toggle-mute\"";
|
||||
"None XF86MonBrightnessUp" = "spawn \"lightctl -d up\"";
|
||||
"None XF86MonBrightnessDown" = "spawn \"lightctl -d down\"";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
28
home/packages/rust-motd/rust-motd.kdl
Normal file
28
home/packages/rust-motd/rust-motd.kdl
Normal file
@@ -0,0 +1,28 @@
|
||||
global {
|
||||
version "1.0"
|
||||
}
|
||||
components{
|
||||
command color="blue" "hostname | figlet -f sblood"
|
||||
weather loc="Denver" style="full"
|
||||
service-status{
|
||||
service display-name="samba" unit="samba-wsdd.service"
|
||||
service display-name="openssh" unit="sshd.service"
|
||||
service display-name="mealie" unit="podman-mealie.service"
|
||||
service display-name="mealiedb" unit="podman-postgres.service"
|
||||
service display-name="stirling" unit="podman-stirling-pdf.service"
|
||||
service display-name="tbrowser" unit="podman-torrent-browser.service"
|
||||
service display-name="seas" unit="podman-trainsmission-openvpn.service"
|
||||
service display-name="tailscale" unit="tailscaled.service"
|
||||
service display-name="firewall" unit="firewall.service"
|
||||
service display-name="endlessh" unit="endlessh.service"
|
||||
}
|
||||
uptime prefix="up"
|
||||
memory swap-pos="beside"
|
||||
last-login {
|
||||
user username="marcel" num-logins=2
|
||||
}
|
||||
filesystems {
|
||||
filesystem name="root" mount-point="/"
|
||||
}
|
||||
load-avg format="Load (1, 5, 15 min.): {one:.02}, {five:.02}, {fifteen:.02}"
|
||||
}
|
||||
16
home/packages/spotifyd/spotifyd.nix
Normal file
16
home/packages/spotifyd/spotifyd.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
services.spotifyd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
global = {
|
||||
device_name = "yukigekko";
|
||||
volume_controller = "volumectl";
|
||||
backend = "pipe";
|
||||
device_type = "computer";
|
||||
use_mpris = true;
|
||||
disable_discovery = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -5,5 +5,6 @@
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
}
|
||||
189
home/packages/starship/starship.toml
Normal file
189
home/packages/starship/starship.toml
Normal file
@@ -0,0 +1,189 @@
|
||||
add_newline = false
|
||||
|
||||
|
||||
format = """
|
||||
[█](#E67380)\
|
||||
$username\
|
||||
[](bg:#E69875 fg:#E67380)\
|
||||
$directory\
|
||||
[](fg:#E69875 bg:#DBBC7F)\
|
||||
$git_branch\
|
||||
$git_status\
|
||||
[](fg:#DBBC7F bg:#a7c080 )\
|
||||
$c\
|
||||
$python\
|
||||
$elixir\
|
||||
$elm\
|
||||
$gleam\
|
||||
$golang\
|
||||
$haskell\
|
||||
$java\
|
||||
$julia\
|
||||
$nodejs\
|
||||
$nim\
|
||||
$odin\
|
||||
$rust\
|
||||
$scala\
|
||||
$zig\
|
||||
[](fg:#a7c080 bg:#83c092)\
|
||||
$docker_context\
|
||||
[](fg:#83c092 bg:#7fbbb3)\
|
||||
$time\
|
||||
[](fg:#7fbbb3 bg:#d699B6)\
|
||||
$direnv\
|
||||
[ ](fg:#d699B6)\
|
||||
\n\
|
||||
$status\
|
||||
$cmd_duration\
|
||||
[ ](fg:#E67380)
|
||||
"""
|
||||
# You can also replace your username with a neat symbol like to save some space
|
||||
[username]
|
||||
show_always = true
|
||||
style_user = "fg:#434f55 bg:#E67380"
|
||||
style_root = "fg:#434f55 bg:#E67380"
|
||||
format = '[$user ]($style)'
|
||||
|
||||
[directory]
|
||||
style = "fg:#434f55 bg:#E69875"
|
||||
format = "[ $path ]($style)"
|
||||
truncation_length = 3
|
||||
truncation_symbol = "…/"
|
||||
|
||||
# Here is how you can shorten some long paths by text replacement
|
||||
# similar to mapped_locations in Oh My Posh:
|
||||
[directory.substitutions]
|
||||
"Documents" = " "
|
||||
"Downloads" = " "
|
||||
"Music" = " "
|
||||
"Pictures" = " "
|
||||
# Keep in mind that the order matters. For example:
|
||||
# "Important Documents" = " "
|
||||
# will not be replaced, because "Documents" was already substituted before.
|
||||
# So either put "Important Documents" before "Documents" or use the substituted version:
|
||||
# "Important " = " "
|
||||
|
||||
[c]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[docker_context]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#8c092"
|
||||
format = '[[ $symbol $context ](fg:#434f55 bg:#)83c092]($style) $path'
|
||||
|
||||
[elixir]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[elm]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[git_branch]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#dbbc7f"
|
||||
format = '[[ $symbol $branch ](fg:#434f55 bg:#dbbc7f)]($style)'
|
||||
|
||||
[git_status]
|
||||
style = "fg:#434f55 bg:#dbbc7f"
|
||||
format = '[[($all_status$ahead_behind )](fg:#434f55 bg:#dbbc7f)]($style)'
|
||||
|
||||
[gleam]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[golang]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[haskell]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[java]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[julia]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[nodejs]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[nim]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[odin]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[rust]
|
||||
symbol = " "
|
||||
format = '[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )'
|
||||
|
||||
[ruby]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[python]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[scala]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[zig]
|
||||
symbol = " "
|
||||
style = "fg:#434f55 bg:#a7c080 "
|
||||
format = '[[ $symbol ($version) ](fg:#434f55 bg:#a7c080 )]($style)'
|
||||
|
||||
[direnv]
|
||||
disabled = false
|
||||
loaded_msg = " "
|
||||
unloaded_msg = " "
|
||||
allowed_msg = " "
|
||||
not_allowed_msg = " "
|
||||
style = "fg:#434f55 bg:#d699B6"
|
||||
format = '[ $loaded]($style)'
|
||||
|
||||
[time]
|
||||
disabled = false
|
||||
time_format = "%R" # Hour:Minute Format
|
||||
style = "fg:#434f55 bg:#7fbbb3"
|
||||
format = '[ ♥ $time ]($style)'
|
||||
|
||||
[status]
|
||||
disabled = false
|
||||
symbol = " "
|
||||
success_symbol = " "
|
||||
not_executable_symbol = " "
|
||||
not_found_symbol = " "
|
||||
sigint_symbol = " "
|
||||
signal_symbol = " "
|
||||
recognize_signal_code = false
|
||||
style = "fg:#434f55 bg:#E67380"
|
||||
format = '[ $symbol ]($style)'
|
||||
|
||||
[cmd_duration]
|
||||
min_time = 10_000
|
||||
style = "fg:#434f55 bg:#E67380"
|
||||
format = '[$duration]($style)'
|
||||
34
home/packages/twmn/twmn.nix
Normal file
34
home/packages/twmn/twmn.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.twmn = {
|
||||
enable = true;
|
||||
# icons = {
|
||||
# critical = " ";
|
||||
# info = " ";
|
||||
# warning = " ";
|
||||
# };
|
||||
text = {
|
||||
color = "2b3339";
|
||||
font = {
|
||||
family = "Hack Nerd Font";
|
||||
size = 11;
|
||||
};
|
||||
maxLength = 75;
|
||||
};
|
||||
window = {
|
||||
position = "tc";
|
||||
alwaysOnTop = true;
|
||||
color = "#7fbbb3";
|
||||
height = 30;
|
||||
animation = {
|
||||
easeIn = {
|
||||
curve = 25;
|
||||
duration = 750;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
165
home/packages/waybar/waybar.css
Normal file
165
home/packages/waybar/waybar.css
Normal file
@@ -0,0 +1,165 @@
|
||||
* {
|
||||
font-family: "Hack Nerd Font Mono";
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
color: #d3c6aa;
|
||||
background-color: #2b3339;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
.modules-left,
|
||||
.modules-center,
|
||||
.modules-right {
|
||||
border: 3px solid #7fbbb3;
|
||||
border-radius: 4px;
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
#custom-weather {
|
||||
/* border-bottom: #a7c080; */
|
||||
}
|
||||
|
||||
button {
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
border: 1px #000000 solid;
|
||||
border-radius: 0;
|
||||
color: #d3c6aa;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: inherit;
|
||||
box-shadow: inset 0 -3px #7fbbb3;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
#workspaces button,
|
||||
#tags button {
|
||||
padding: 0 5px;
|
||||
background-color: transparent;
|
||||
border: 2px solid #d3c6aa;
|
||||
margin: 3px;
|
||||
}
|
||||
|
||||
#workspaces button.active,
|
||||
#tags button.occupied {
|
||||
background: #d3c6aa;
|
||||
border: 1px solid #2b3339;
|
||||
color: #2b3339;
|
||||
}
|
||||
|
||||
#workspaces button.focused,
|
||||
#tags button.focused {
|
||||
background-color: #7fbbb3;
|
||||
color: #2b3339;
|
||||
border: 1px solid #2b3339;
|
||||
/* border-bottom: 3px solid #2b3339; */
|
||||
}
|
||||
|
||||
#tags button.urgent {
|
||||
background-color: #e67e80;
|
||||
}
|
||||
|
||||
#backlight,
|
||||
#battery,
|
||||
#clock,
|
||||
#cpu,
|
||||
#memory,
|
||||
#mode,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#temperature,
|
||||
#tray,
|
||||
#power-profiles-daemon {
|
||||
padding: 0 8px;
|
||||
color: #d3c6aa;
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 8px;
|
||||
}
|
||||
|
||||
|
||||
#backlight {
|
||||
background-color: transparent;
|
||||
/* border-bottom: 3px solid #7fbbb3; */
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: transparent;
|
||||
border-right: 3px solid #7fbbb3;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#battery.critical.discharging {
|
||||
background-color: #e67e80;
|
||||
/* animation: blink 5s infinite; */
|
||||
}
|
||||
|
||||
#battery.warning.discharging {
|
||||
background-color: #dbbc7f;
|
||||
/* animation: blink 10s infinite; */
|
||||
}
|
||||
|
||||
/* @keyframes blink { */
|
||||
/* to { */
|
||||
/* background-color: transparent; */
|
||||
/* } */
|
||||
/* } */
|
||||
|
||||
#clock {
|
||||
background-color: transparent;
|
||||
/* border-bottom: 3px solid #a7c080; */
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: transparent;
|
||||
border-right: 3px solid #7fbbb3;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: transparent;
|
||||
border-right: 3px solid #7fbbb3;
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: transparent;
|
||||
border-right: 3px solid #7fbbb3;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: transparent;
|
||||
/* border-bottom: 3px solid #f38ba8; */
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: transparent;
|
||||
border-right: 3px solid #7fbbb3;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: transparent;
|
||||
/* border-bottom: 3px solid #e67e80; */
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: transparent;
|
||||
border-right: 3px solid #7fbbb3;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: transparent;
|
||||
/* border-bottom: 3px solid #e67e80; */
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: transparent;
|
||||
border-left: 3px solid #7fbbb3;
|
||||
}
|
||||
177
home/packages/waybar/waybar.nix
Normal file
177
home/packages/waybar/waybar.nix
Normal file
@@ -0,0 +1,177 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
settings = {
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
position = "top";
|
||||
height = 45;
|
||||
spacing = 4;
|
||||
|
||||
# Module layout
|
||||
#
|
||||
modules-left = [
|
||||
"river/tags"
|
||||
"niri/workspaces"
|
||||
];
|
||||
modules-center = [
|
||||
"custom/currents"
|
||||
"river/window"
|
||||
"niri/window"
|
||||
];
|
||||
modules-right = [
|
||||
"pulseaudio"
|
||||
"network#wifi"
|
||||
"cpu"
|
||||
"memory"
|
||||
"temperature"
|
||||
"backlight"
|
||||
"battery"
|
||||
"clock"
|
||||
"tray"
|
||||
];
|
||||
|
||||
# Module configurations
|
||||
|
||||
"river/tags" = {
|
||||
num-tags = 10;
|
||||
tag-labels = [
|
||||
"1"
|
||||
"2"
|
||||
"3"
|
||||
"4"
|
||||
"5"
|
||||
"6"
|
||||
"7"
|
||||
"8"
|
||||
"9"
|
||||
"0"
|
||||
];
|
||||
set-tags = [
|
||||
2147483649
|
||||
2147483650
|
||||
2147483652
|
||||
2147483656
|
||||
2147483664
|
||||
2147483680
|
||||
2147483712
|
||||
2147483776
|
||||
2147483904
|
||||
2147483648
|
||||
];
|
||||
toggle-tags = [
|
||||
1
|
||||
2
|
||||
4
|
||||
8
|
||||
16
|
||||
32
|
||||
64
|
||||
128
|
||||
256
|
||||
];
|
||||
hide-vacant = true;
|
||||
};
|
||||
|
||||
"niri/workspaces" = {
|
||||
format = "{index}";
|
||||
};
|
||||
|
||||
"river/window" = {
|
||||
format = "{}";
|
||||
max-length = 20;
|
||||
};
|
||||
|
||||
"niri/window" = {
|
||||
format = "{}";
|
||||
max-length = 20;
|
||||
};
|
||||
|
||||
"tray" = {
|
||||
icon-size = 21;
|
||||
spacing = 10;
|
||||
};
|
||||
|
||||
"clock" = {
|
||||
timezone = "America/Denver";
|
||||
tooltip-format = "<big>{calendar}</big>";
|
||||
format-alt = "{:%Y-%m-%d}";
|
||||
};
|
||||
|
||||
"cpu" = {
|
||||
format = "{usage}% ";
|
||||
tooltip = true;
|
||||
};
|
||||
|
||||
"memory" = {
|
||||
format = "{}% ";
|
||||
};
|
||||
|
||||
"temperature" = {
|
||||
# thermal-zone = 2;
|
||||
# hwmon-path = "/sys/class/hwmon/hwmon2/temp1_input";
|
||||
critical-threshold = 80;
|
||||
format-critical = "{temperatureC}°C {icon}";
|
||||
format = "{temperatureC}°C {icon}";
|
||||
format-icons = ["" "" ""];
|
||||
};
|
||||
|
||||
"backlight" = {
|
||||
format = "{percent}% {icon}";
|
||||
format-icons = ["" "" "" "" "" "" "" "" ""];
|
||||
};
|
||||
|
||||
"battery" = {
|
||||
states = {
|
||||
good = 95;
|
||||
warning = 30;
|
||||
critical = 15;
|
||||
};
|
||||
format = "{icon} {capacity}%";
|
||||
format-full = "{icon} Full";
|
||||
format-charging = "{icon} {capacity}% {time}";
|
||||
format-plugged = "{icon} ";
|
||||
format-good = ">{icon} {capacity}%";
|
||||
format-icons = [" " " " " " " " " "];
|
||||
};
|
||||
|
||||
"network#wifi" = {
|
||||
interface = "wlp*";
|
||||
format-wifi = "{essid} ({signalStrength}%) ";
|
||||
tooltip-format = "{ifname} via {gwaddr} ";
|
||||
format-linked = "{ifname} (No IP) ";
|
||||
format-disconnected = "No WiFi";
|
||||
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
||||
};
|
||||
|
||||
"pulseaudio" = {
|
||||
format = "{volume}% {icon} {format_source}";
|
||||
format-bluetooth = "{volume}% {icon} {format_source}";
|
||||
format-bluetooth-muted = " {icon} {format_source}";
|
||||
format-muted = " {format_source}";
|
||||
format-source = "{volume}% ";
|
||||
format-source-muted = "";
|
||||
format-icons = {
|
||||
headphone = "";
|
||||
hands-free = "";
|
||||
headset = "";
|
||||
phone = "";
|
||||
portable = "";
|
||||
car = "";
|
||||
default = ["" "" ""];
|
||||
on-click = "pavucontrol";
|
||||
};
|
||||
};
|
||||
"custom/currents"= {
|
||||
interval= 150;
|
||||
exec= "/home/autumn/.local/bin/currents --output";
|
||||
return-type= "json";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
xdg.configFile."waybar/style.css".source = ./waybar.css;
|
||||
}
|
||||
@@ -3,8 +3,8 @@
|
||||
{
|
||||
programs.zellij = {
|
||||
enable = true;
|
||||
# enableFishIntegration = true;
|
||||
exitShellOnExit = true;
|
||||
# enableZshIntegration = true;
|
||||
# exitShellOnExit = true;
|
||||
settings = {
|
||||
themes = {
|
||||
custom = {
|
||||
56
home/packages/zsh/zsh.nix
Normal file
56
home/packages/zsh/zsh.nix
Normal file
@@ -0,0 +1,56 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
|
||||
home.packages = with pkgs; [
|
||||
oh-my-zsh
|
||||
];
|
||||
|
||||
programs ={
|
||||
zsh = {
|
||||
enable = true;
|
||||
# initContent = lib.mkOrder 1200 ''
|
||||
# eval "$(ssh-agent -s)"
|
||||
# ssh-add ~/.ssh/id_ed25519
|
||||
# '';
|
||||
antidote = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"zsh-users/zsh-autosuggestions"
|
||||
"zsh-users/zsh-syntax-highlighting"
|
||||
# "colored-man-pages"
|
||||
# "colorize"
|
||||
# "cp"
|
||||
# "history"
|
||||
# "ssh-agent"
|
||||
# "zoxide"
|
||||
];
|
||||
useFriendlyNames = true;
|
||||
};
|
||||
autosuggestion = {
|
||||
enable = true;
|
||||
};
|
||||
shellAliases = {
|
||||
".." = "cd ..";
|
||||
"..." = "cd ../..";
|
||||
"...." = "cd ../../..";
|
||||
"pls" = "pls -d typ -d perm -d user -d group -d size -d mtime -d git";
|
||||
"z" = "zoxide";
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"git"
|
||||
"sudo"
|
||||
"colored-man-pages"
|
||||
"colorize"
|
||||
"cp"
|
||||
"zoxide"
|
||||
"ssh-agent"
|
||||
"command-not-found"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
14
home/themefiles/cursor.nix
Normal file
14
home/themefiles/cursor.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
home.packages = with pkgs; [oreo-cursors-plus];
|
||||
home.pointerCursor = {
|
||||
name = "oreo-cursors-plus";
|
||||
package = pkgs.oreo-cursors-plus;
|
||||
size = 32;
|
||||
};
|
||||
gtk.enable = true;
|
||||
gtk.cursorTheme = {
|
||||
package = pkgs.oreo-cursors-plus;
|
||||
name = "oreo-cursors-plus";
|
||||
};
|
||||
}
|
||||
@@ -5,4 +5,5 @@
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
}
|
||||
|
||||
4
system/defaults/security.nix
Normal file
4
system/defaults/security.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
security.polkit.enable = true;
|
||||
}
|
||||
@@ -2,15 +2,18 @@
|
||||
|
||||
{
|
||||
services = {
|
||||
printing.enable = true;
|
||||
pulseaudio.enable = false;
|
||||
cron.enable = true;
|
||||
flatpak.enable = true;
|
||||
openssh.enable = true;
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
openssh.enable = true;
|
||||
flatpak.enable = true;
|
||||
playerctld.enable = true;
|
||||
printing.enable = true;
|
||||
pulseaudio.enable = false;
|
||||
tailscale.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
7
system/defaults/system.nix
Normal file
7
system/defaults/system.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
flake = "https://git.coven.systems/autumn/nixos-conf";
|
||||
};
|
||||
}
|
||||
@@ -6,4 +6,5 @@
|
||||
description = "Autumn";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
};
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
};
|
||||
pyproject-build-systems = {
|
||||
url = "github:pyproject-nix/build-system-pkgs";
|
||||
inputs.pyproject-nex.follows = "pyproject-nix";
|
||||
inputs.pyproject-nix.follows = "pyproject-nix";
|
||||
inputs.uv2nix.follows = "uv2nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
159
system/hoardfrost/configuration.nix
Normal file
159
system/hoardfrost/configuration.nix
Normal file
@@ -0,0 +1,159 @@
|
||||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
||||
../packages/rust-motd/rust-motd.nix
|
||||
|
||||
../services/samba.nix
|
||||
../services/openssh.nix
|
||||
../services/endlessh.nix
|
||||
../services/podman.nix
|
||||
# ./services/currents.nix
|
||||
#. ./services/tailscale.nix.
|
||||
|
||||
# ./services/containerization/currents.nix
|
||||
../services/containerization/docker.nix
|
||||
../services/containerization/mealie-2.nix
|
||||
../services/containerization/transtun.nix
|
||||
../services/containerization/stirlingpdf.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
services.tailscale.enable = true;
|
||||
|
||||
networking.hostName = "hoardfrost"; # Define your hostname.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Denver";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "en_US.UTF-8";
|
||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||
LC_MEASUREMENT = "en_US.UTF-8";
|
||||
LC_MONETARY = "en_US.UTF-8";
|
||||
LC_NAME = "en_US.UTF-8";
|
||||
LC_NUMERIC = "en_US.UTF-8";
|
||||
LC_PAPER = "en_US.UTF-8";
|
||||
LC_TELEPHONE = "en_US.UTF-8";
|
||||
LC_TIME = "en_US.UTF-8";
|
||||
};
|
||||
|
||||
# Configure keymap in X11
|
||||
services = {
|
||||
xserver.xkb = {
|
||||
layout = "us";
|
||||
variant = "";
|
||||
};
|
||||
};
|
||||
networking.firewall.enable = true;
|
||||
networking.firewall.allowPing = true;
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
22
|
||||
53
|
||||
137
|
||||
138
|
||||
139
|
||||
389
|
||||
445
|
||||
2022
|
||||
8080
|
||||
5657
|
||||
41641
|
||||
];
|
||||
networking.firewall.allowedUDPPorts = [
|
||||
22
|
||||
53
|
||||
137
|
||||
138
|
||||
139
|
||||
389
|
||||
445
|
||||
2022
|
||||
41641
|
||||
];
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
programs.zsh.enable = true;
|
||||
users = {
|
||||
defaultUserShell = pkgs.zsh;
|
||||
users.autumn = {
|
||||
isNormalUser = true;
|
||||
description = "autumn";
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
helix
|
||||
git
|
||||
nil
|
||||
inetutils
|
||||
nh
|
||||
toybox
|
||||
nodejs_24
|
||||
jdk17
|
||||
rustup
|
||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
# wget
|
||||
];
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
# programs.mtr.enable = true;
|
||||
# programs.gnupg.agent = {
|
||||
# enable = true;
|
||||
# enableSSHSupport = true;
|
||||
# };
|
||||
|
||||
# List services that you want to enable:
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
# services.openssh.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "25.05"; # Did you read the comment?
|
||||
|
||||
}
|
||||
48
system/hoardfrost/flake.lock
generated
Normal file
48
system/hoardfrost/flake.lock
generated
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"nodes": {
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1761191301,
|
||||
"narHash": "sha256-xsRL2Oyb4YRZZ1Tu4WzR2uFg1n931bH+PfLdFcqtLg8=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "4958aafe7b237dc1e857fb0c916efff72075048f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1761114652,
|
||||
"narHash": "sha256-f/QCJM/YhrV/lavyCVz8iU3rlZun6d+dAiC3H+CDle4=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "01f116e4df6a15f4ccdffb1bcd41096869fb385c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"home-manager": "home-manager",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
39
system/hoardfrost/flake.nix
Normal file
39
system/hoardfrost/flake.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
description = "Hoardfrost multipurpose server";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = {self, nixpkgs, home-manager, ...}@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
timezone = "America/Denver";
|
||||
locale = "en_US.UTF-8";
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
inherit system;
|
||||
inherit timezone;
|
||||
inherit locale;
|
||||
};
|
||||
in {
|
||||
|
||||
homeConfigurations.autumn = home-manager.lib.homeManagerConfiguration{
|
||||
extraSpecialArgs = specialArgs;
|
||||
pkgs = pkgs;
|
||||
modules = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
nixosConfigurations.hoardfrost = nixpkgs.lib.nixosSystem{
|
||||
system = system;
|
||||
specialArgs = specialArgs;
|
||||
modules = [
|
||||
./configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
38
system/hoardfrost/hardware-configuration.nix
Normal file
38
system/hoardfrost/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# 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 + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/4f1eff7d-8a8c-4a7f-857b-f4e58b7a5f90";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/C802-4F6B";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# 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.enp5s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
@@ -10,6 +10,7 @@
|
||||
./hardware-configuration.nix
|
||||
|
||||
#system configs
|
||||
../defaults/system.nix
|
||||
../defaults/locale.nix
|
||||
../defaults/boot.nix
|
||||
../defaults/services.nix
|
||||
@@ -60,7 +61,7 @@
|
||||
|
||||
nix.settings = {
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
download-buffer-size = 5245880000;
|
||||
# download-buffer-size = 5245880000;
|
||||
};
|
||||
|
||||
system.stateVersion = "25.05"; # Did you read the comment?
|
||||
|
||||
14
system/packages/bincache.nix
Normal file
14
system/packages/bincache.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Configure systems to use Hydra as a binary cache substituter
|
||||
nix.settings = {
|
||||
substituters = [
|
||||
"http://rhiannon.coven.systems:3000"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"rhiannon.coven.systems:f8KiECrc7rY3vDMSy7sACyToxRLPECtQTcm6p8LFMPk="
|
||||
];
|
||||
};
|
||||
}
|
||||
58
system/packages/rust-motd/rust-motd.nix
Normal file
58
system/packages/rust-motd/rust-motd.nix
Normal file
@@ -0,0 +1,58 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [figlet];
|
||||
programs.rust-motd = {
|
||||
enable = true;
|
||||
order = [
|
||||
"global"
|
||||
"banner"
|
||||
"weather"
|
||||
"uptime"
|
||||
"last_login"
|
||||
"memory"
|
||||
"service_status"
|
||||
"filesystems"
|
||||
"load_avg"
|
||||
];
|
||||
settings = {
|
||||
global = {
|
||||
version = "1.0";
|
||||
};
|
||||
banner = {
|
||||
color = "blue";
|
||||
command = "hostname | figlet -f sblood";
|
||||
};
|
||||
weather = {
|
||||
loc = "America,Denver";
|
||||
style = "full";
|
||||
};
|
||||
service_status = {
|
||||
samba = "samba-wsdd.service";
|
||||
openssh = "sshd.service";
|
||||
mealie = "podman-mealie.service";
|
||||
mealiedb = "podman-postgres.service";
|
||||
stirling = "podman-stirling-pdf.service";
|
||||
tbrowser = "podman-torrent-browser.service";
|
||||
seas = "podman-transmission-openvpn.service";
|
||||
tailscale = "tailscaled.service";
|
||||
firewall = "firewall.service";
|
||||
endlessh = "endlessh.service";
|
||||
};
|
||||
uptime = {
|
||||
prefix = "up";
|
||||
};
|
||||
memory = {
|
||||
swap_pos = "none";
|
||||
};
|
||||
last_login = {
|
||||
autumn = 2;
|
||||
};
|
||||
filesystems = {
|
||||
root = "/";
|
||||
};
|
||||
load_avg = {
|
||||
format = "Load (1, 5, 15 min.): {one:.02}, {five:.02}, {fifteen:.02}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
118
system/packages/starship/starship.toml
Normal file
118
system/packages/starship/starship.toml
Normal file
@@ -0,0 +1,118 @@
|
||||
add_newline = true
|
||||
|
||||
[aws]
|
||||
disabled = true
|
||||
|
||||
[battery]
|
||||
disabled = true
|
||||
|
||||
[character]
|
||||
success_symbol = "[](bold green)"
|
||||
error_symbol = "[](bold red)"
|
||||
vicmd_symbol = "[](bold green)"
|
||||
|
||||
[cmd_duration]
|
||||
|
||||
[conda]
|
||||
|
||||
[directory]
|
||||
truncation_length = 3
|
||||
|
||||
[dotnet]
|
||||
disabled = true
|
||||
|
||||
[env_var]
|
||||
disabled = true
|
||||
|
||||
[elixir]
|
||||
symbol = " "
|
||||
|
||||
[elm]
|
||||
symbol = " "
|
||||
|
||||
[git_branch]
|
||||
symbol = " "
|
||||
|
||||
[git_commit]
|
||||
disabled = false
|
||||
commit_hash_length = 4
|
||||
|
||||
[git_state]
|
||||
disabled = true
|
||||
|
||||
[git_status]
|
||||
conflicted = "=${count}"
|
||||
ahead = "⇡${count}"
|
||||
behind = "⇣${count}"
|
||||
diverged = "⇕⇡${ahead_count}⇣${behind_count}"
|
||||
untracked = "?${count}"
|
||||
stashed = "\\$${count}"
|
||||
modified = "!${count}"
|
||||
staged = "+${count}"
|
||||
renamed = "»${count}"
|
||||
deleted = "✘${count}"
|
||||
|
||||
[gcloud]
|
||||
disabled = true
|
||||
|
||||
[golang]
|
||||
symbol = " "
|
||||
|
||||
[hostname]
|
||||
|
||||
[jobs]
|
||||
|
||||
[kubernetes]
|
||||
symbol = " "
|
||||
disabled = false
|
||||
|
||||
[line_break]
|
||||
disabled = false
|
||||
|
||||
[lua]
|
||||
symbol = " "
|
||||
lua_binary = "luajit"
|
||||
|
||||
[nix_shell]
|
||||
disabled = true
|
||||
|
||||
[memory_usage]
|
||||
disabled = true
|
||||
|
||||
[java]
|
||||
symbol = " "
|
||||
|
||||
[julia]
|
||||
|
||||
[nim]
|
||||
|
||||
[nodejs]
|
||||
symbol = " "
|
||||
|
||||
[package]
|
||||
symbol = " "
|
||||
|
||||
[php]
|
||||
symbol = " "
|
||||
|
||||
[python]
|
||||
symbol = " "
|
||||
|
||||
[ruby]
|
||||
symbol = " "
|
||||
|
||||
[rust]
|
||||
symbol = " "
|
||||
|
||||
[scala]
|
||||
symbol = " "
|
||||
|
||||
[terraform]
|
||||
symbol = " "
|
||||
format = "via [$symbol$version]($style)"
|
||||
|
||||
[time]
|
||||
disabled = true
|
||||
|
||||
[username]
|
||||
disabled = false
|
||||
12
system/services/containerization/docker.nix
Normal file
12
system/services/containerization/docker.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
environment.systemPackages = with pkgs;[
|
||||
podman
|
||||
docker-compose
|
||||
];
|
||||
|
||||
virtualisation = {
|
||||
docker.enable = true;
|
||||
};
|
||||
users.users.autumn.extraGroups = ["docker"];
|
||||
}
|
||||
148
system/services/containerization/mealie-2.nix
Normal file
148
system/services/containerization/mealie-2.nix
Normal file
@@ -0,0 +1,148 @@
|
||||
# Auto-generated by compose2nix.
|
||||
|
||||
{ pkgs, lib, config, ... }:
|
||||
|
||||
{
|
||||
# Containers
|
||||
virtualisation.oci-containers.containers."mealie" = {
|
||||
image = "ghcr.io/mealie-recipes/mealie:v3.6.1";
|
||||
environment = {
|
||||
"ALLOW_SIGNUP" = "false";
|
||||
"BASE_URL" = "https://mealie.yourdomain.com";
|
||||
"DB_ENGINE" = "postgres";
|
||||
"PGID" = "1000";
|
||||
"POSTGRES_DB" = "mealie";
|
||||
"POSTGRES_PASSWORD" = "mealie";
|
||||
"POSTGRES_PORT" = "5432";
|
||||
"POSTGRES_SERVER" = "postgres";
|
||||
"POSTGRES_USER" = "mealie";
|
||||
"PUID" = "1000";
|
||||
"TZ" = "America/Denver";
|
||||
};
|
||||
volumes = [
|
||||
"mealie-data:/app/data:rw"
|
||||
];
|
||||
ports = [
|
||||
"9925:9000/tcp"
|
||||
];
|
||||
dependsOn = [
|
||||
"postgres"
|
||||
];
|
||||
log-driver = "journald";
|
||||
extraOptions = [
|
||||
"--memory=1048576000b"
|
||||
"--network-alias=mealie"
|
||||
"--network=mealieio_default"
|
||||
];
|
||||
};
|
||||
systemd.services."podman-mealie" = {
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 90 "always";
|
||||
};
|
||||
after = [
|
||||
"podman-network-mealieio_default.service"
|
||||
"podman-volume-mealieio_mealie-data.service"
|
||||
];
|
||||
requires = [
|
||||
"podman-network-mealieio_default.service"
|
||||
"podman-volume-mealieio_mealie-data.service"
|
||||
];
|
||||
partOf = [
|
||||
"podman-compose-mealieio-root.target"
|
||||
];
|
||||
wantedBy = [
|
||||
"podman-compose-mealieio-root.target"
|
||||
];
|
||||
};
|
||||
virtualisation.oci-containers.containers."postgres" = {
|
||||
image = "postgres:17";
|
||||
environment = {
|
||||
"PGUSER" = "mealie";
|
||||
"POSTGRES_DB" = "mealie";
|
||||
"POSTGRES_PASSWORD" = "mealie";
|
||||
"POSTGRES_USER" = "mealie";
|
||||
};
|
||||
volumes = [
|
||||
"mealie-pgdata:/var/lib/postgresql/data:rw"
|
||||
];
|
||||
log-driver = "journald";
|
||||
extraOptions = [
|
||||
"--health-cmd=[\"pg_isready\"]"
|
||||
"--health-interval=30s"
|
||||
"--health-retries=3"
|
||||
"--health-timeout=20s"
|
||||
"--network-alias=postgres"
|
||||
"--network=mealieio_default"
|
||||
];
|
||||
};
|
||||
systemd.services."podman-postgres" = {
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 90 "always";
|
||||
};
|
||||
after = [
|
||||
"podman-network-mealieio_default.service"
|
||||
"podman-volume-mealieio_mealie-pgdata.service"
|
||||
];
|
||||
requires = [
|
||||
"podman-network-mealieio_default.service"
|
||||
"podman-volume-mealieio_mealie-pgdata.service"
|
||||
];
|
||||
partOf = [
|
||||
"podman-compose-mealieio-root.target"
|
||||
];
|
||||
wantedBy = [
|
||||
"podman-compose-mealieio-root.target"
|
||||
];
|
||||
};
|
||||
|
||||
# Networks
|
||||
systemd.services."podman-network-mealieio_default" = {
|
||||
path = [ pkgs.podman ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
ExecStop = "podman network rm -f mealieio_default";
|
||||
};
|
||||
script = ''
|
||||
podman network inspect mealieio_default || podman network create mealieio_default
|
||||
'';
|
||||
partOf = [ "podman-compose-mealieio-root.target" ];
|
||||
wantedBy = [ "podman-compose-mealieio-root.target" ];
|
||||
};
|
||||
|
||||
# Volumes
|
||||
systemd.services."podman-volume-mealieio_mealie-data" = {
|
||||
path = [ pkgs.podman ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
script = ''
|
||||
podman volume inspect mealieio_mealie-data || podman volume create mealieio_mealie-data
|
||||
'';
|
||||
partOf = [ "podman-compose-mealieio-root.target" ];
|
||||
wantedBy = [ "podman-compose-mealieio-root.target" ];
|
||||
};
|
||||
systemd.services."podman-volume-mealieio_mealie-pgdata" = {
|
||||
path = [ pkgs.podman ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
script = ''
|
||||
podman volume inspect mealieio_mealie-pgdata || podman volume create mealieio_mealie-pgdata
|
||||
'';
|
||||
partOf = [ "podman-compose-mealieio-root.target" ];
|
||||
wantedBy = [ "podman-compose-mealieio-root.target" ];
|
||||
};
|
||||
|
||||
# Root service
|
||||
# When started, this will automatically create all resources and start
|
||||
# the containers. When stopped, this will teardown all resources.
|
||||
systemd.targets."podman-compose-mealieio-root" = {
|
||||
unitConfig = {
|
||||
Description = "Root target generated by compose2nix.";
|
||||
};
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
}
|
||||
38
system/services/containerization/mealie.nix
Normal file
38
system/services/containerization/mealie.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
virtualisation.oci-containers.containers = {
|
||||
mealie = {
|
||||
image = "ghcr.io/mealie-recipes/mealie:v3.3.2";
|
||||
ports = [
|
||||
"9000:9000"
|
||||
];
|
||||
volumes = [
|
||||
"/home/autumn/mealie/mealie-data:/app/data"
|
||||
];
|
||||
environment = {
|
||||
DB_ENGINE= "postgres";
|
||||
POSTGRES_USER = "mealie";
|
||||
POSTGRES_PASSWORD = "mealie";
|
||||
POSTGRES_SERVER = "localhost:5432";
|
||||
POSTGRES_PORT = "5432";
|
||||
POSTGRES_DB = "mealie";
|
||||
TZ = "America/Denver";
|
||||
};
|
||||
dependsOn = [
|
||||
"postgres-mealie"
|
||||
];
|
||||
};
|
||||
postgres-mealie = {
|
||||
image = "postgres:17";
|
||||
environment = {
|
||||
POSTGRES_USER = "mealie";
|
||||
POSTGRES_PASSWORD = "mealie";
|
||||
PGUSER = "mealie";
|
||||
POSTGRES_DB = "mealie";
|
||||
};
|
||||
volumes = [
|
||||
"/home/autumn/mealie/mealie-pgdata:/var/lib/postgresql/data"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
19
system/services/containerization/stirlingpdf.nix
Normal file
19
system/services/containerization/stirlingpdf.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
|
||||
virtualisation.oci-containers.containers.stirling-pdf = {
|
||||
image = "stirlingtools/stirling-pdf:latest";
|
||||
ports = ["8079:8080"];
|
||||
volumes = [
|
||||
"/home/autumn/StirlingPDF/trainingData:/usr/share/tessdata"
|
||||
"/home/autumn/StirlingPDF/extraConfigs:/configs"
|
||||
"/home/autumn/StirlingPDF/customFiles:/customFiles/"
|
||||
"/home/autumn/StirlingPDF/logs:/logs/"
|
||||
"/home/autumn/StirlingPDF/pipeline:/pipeline/"
|
||||
];
|
||||
environment = {
|
||||
DISABLE_ADDITIONAL_FEATURES="true";
|
||||
LANGS="en_US";
|
||||
};
|
||||
};
|
||||
}
|
||||
55
system/services/containerization/transtun.nix
Normal file
55
system/services/containerization/transtun.nix
Normal file
@@ -0,0 +1,55 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
virtualisation.oci-containers.containers.transmission-openvpn = {
|
||||
image = "haugene/transmission-openvpn:latest";
|
||||
|
||||
ports = [
|
||||
"9091:9091"
|
||||
];
|
||||
|
||||
volumes = [
|
||||
"/home/autumn/transtun/holding-cell:/data"
|
||||
"/home/autumn/transtun/mullvad_userpass.txt:/config/openvpn-credentials.txt"
|
||||
"/home/autumn/transtun/notify-download.sh:/etc/transmission/notify-download.sh:ro"
|
||||
];
|
||||
|
||||
environment = {
|
||||
OPENVPN_PROVIDER = "MULLVAD";
|
||||
OPENVPN_USERNAME = "9413153196446212";
|
||||
OPENVPN_CONFIG = "ca_van";
|
||||
LOCAL_NETWORK = "10.0.0.0/16";
|
||||
OPENVPN_OPTS = "--dev tun0";
|
||||
TRANSMISSION_RPC_BIND_ADDRESS = "0.0.0.0";
|
||||
TRANSMISSION_RPC_WHITELIST = "*";
|
||||
TRANSMISSION_RPC_WHITELIST_ENABLED = "false";
|
||||
TRANSMISSION_SCRIPT_TORRENT_DONE_ENABLED = "true";
|
||||
TRANSMISSION_SCRIPT_TORRENT_DONE_FILENAME = "/etc/transmission/notify-download.sh";
|
||||
};
|
||||
|
||||
extraOptions = [
|
||||
"--cap-add=NET_ADMIN"
|
||||
"--cap-add=SYS_MODULE"
|
||||
"--device=/dev/net/tun:/dev/net/tun"
|
||||
"--privileged"
|
||||
];
|
||||
|
||||
autoStart = true;
|
||||
};
|
||||
|
||||
# Firefox browser container (working version without VPN)
|
||||
virtualisation.oci-containers.containers.torrent-browser = {
|
||||
image = "jlesage/firefox:latest";
|
||||
|
||||
ports = [
|
||||
"8080:5800" # Firefox web interface
|
||||
];
|
||||
|
||||
environment = {
|
||||
DISPLAY = ":0";
|
||||
APP_NAME = "Torrent Browser";
|
||||
APP_ICON = "https://raw.githubusercontent.com/jlesage/docker-templates/master/jlesage/images/firefox-icon.png";
|
||||
};
|
||||
|
||||
autoStart = true;
|
||||
};
|
||||
}
|
||||
7
system/services/endlessh.nix
Normal file
7
system/services/endlessh.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
services.endlessh = {
|
||||
enable = true;
|
||||
port = 22;
|
||||
};
|
||||
}
|
||||
118
system/services/hickory-dns-bak.nix
Normal file
118
system/services/hickory-dns-bak.nix
Normal file
@@ -0,0 +1,118 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
# Define your DNS records declaratively
|
||||
let
|
||||
dnsRecords = {
|
||||
"lan." = {
|
||||
ttl = 86400; # Time-to-live for records in this zone
|
||||
ns = [ "hoardfrost.lan." ]; # Nameserver record
|
||||
soa = {
|
||||
nameServer = "hoardfrost.lan.";
|
||||
adminEmail = "root.lan.";
|
||||
serial = "2025091901"; # Update this serial number with each change
|
||||
refresh = "3600";
|
||||
retry = "1800";
|
||||
expire = "604800";
|
||||
minimum = "86400";
|
||||
};
|
||||
|
||||
# Define your host records (A for IPv4, AAAA for IPv6)
|
||||
records = {
|
||||
# Your NixOS server acting as the DNS server
|
||||
hoardfrost = [
|
||||
{ type = "A"; content = "10.0.0.217"; }
|
||||
{ type = "AAAA"; content = "2601:282:180:630::803b"; }
|
||||
];
|
||||
|
||||
# Other devices on your local network
|
||||
router = [
|
||||
{ type = "A"; content = "10.0.0.1"; }
|
||||
{ type = "AAAA"; content = "fe80::1"; }
|
||||
];
|
||||
|
||||
yukigekko = [
|
||||
{ type = "A"; content = "10.0.0.210"; }
|
||||
{ type = "AAAA"; content = "2601:282:180:630::e2e"; }
|
||||
];
|
||||
|
||||
wesbos = [
|
||||
{ type = "A"; content = "10.0.0.110";}
|
||||
# { type = "AAAA"; content = "";}
|
||||
];
|
||||
|
||||
wsl-hive = [
|
||||
{type = "A"; content = "172.18.84.193";}
|
||||
{type = "AAAA"; content = "fe80::215:5dff:fec1:e4b5";}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# This function generates the zone file string from the Nix expression
|
||||
generateZoneFile = zoneName: zoneConfig:
|
||||
let
|
||||
soaRecord = "${zoneName} ${toString zoneConfig.ttl} IN SOA ${zoneConfig.soa.nameServer} ${zoneConfig.soa.adminEmail} ( ${zoneConfig.soa.serial} ${zoneConfig.soa.refresh} ${zoneConfig.soa.retry} ${zoneConfig.soa.expire} ${zoneConfig.soa.minimum} )";
|
||||
nsRecords = lib.concatStringsSep "\n" (lib.map (ns: "${zoneName} ${toString zoneConfig.ttl} IN NS ${ns}") zoneConfig.ns);
|
||||
hostRecords = lib.concatStringsSep "\n" (lib.flatten (lib.mapAttrsToList (hostname: records:
|
||||
lib.map (record: "${hostname}.${zoneName} ${toString zoneConfig.ttl} IN ${record.type} ${record.content}") records
|
||||
) zoneConfig.records));
|
||||
in
|
||||
''
|
||||
$ORIGIN ${zoneName}
|
||||
${soaRecord}
|
||||
${nsRecords}
|
||||
${hostRecords}
|
||||
'';
|
||||
|
||||
# Generate the zone file using the `generateZoneFile` function
|
||||
lanZoneFile = pkgs.writeText "lan.zone" (generateZoneFile "lan." dnsRecords."lan.");
|
||||
|
||||
# Configure hickory-dns with the generated zone file
|
||||
hickoryConfig = pkgs.writeText "hickory-config.toml" ''
|
||||
listen_addrs_ipv4 = ["127.0.0.1", "10.0.0.217"] # Change to your NixOS server's IPv4
|
||||
listen_addrs_ipv6 = ["::1", "fe80::215:5dff:fec1:e4b5"] # Change to your NixOS server's IPv6
|
||||
|
||||
# Configure as an authoritative server for the local zone
|
||||
[[zones]]
|
||||
zone = "lan."
|
||||
zone_type = "Primary"
|
||||
file = "${lanZoneFile}"
|
||||
|
||||
# Configure as a recursive resolver for all other queries
|
||||
[[recursor]]
|
||||
# All queries *not* matching the "lan." zone will be forwarded here.
|
||||
[[recursor.forwarders]]
|
||||
name_servers = ["8.8.8.8:53", "[2001:4860:4860::8888]:53"]
|
||||
# All other DNS queries will be handled recursively, starting from the root hints.
|
||||
'';
|
||||
|
||||
in
|
||||
{
|
||||
systemd.services.hickory-dns = {
|
||||
enable = true;
|
||||
description = "Hickory DNS with local zone";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = "hickory";
|
||||
Group = "hickory";
|
||||
ExecStart = "${pkgs.hickory-dns}/bin/hickory-dns -c ${hickoryConfig}";
|
||||
Restart = "on-failure";
|
||||
AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ];
|
||||
DynamicUser = true;
|
||||
StateDirectory = "hickory";
|
||||
};
|
||||
};
|
||||
|
||||
users.groups.hickory = {};
|
||||
users.users.hickory = {
|
||||
isSystemUser = true;
|
||||
group = "hickory";
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.hickory-dns ];
|
||||
|
||||
# Configure your NixOS machine to use itself as the DNS resolver
|
||||
services.resolved.enable = false;
|
||||
networking.nameservers = [ "127.0.0.1" "fdaa:a00:0:1::100" ];
|
||||
}
|
||||
151
system/services/hickory-dns.nix
Normal file
151
system/services/hickory-dns.nix
Normal file
@@ -0,0 +1,151 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
# Define your DNS records declaratively
|
||||
let
|
||||
dnsRecords = {
|
||||
"lan." = {
|
||||
ttl = 86400; # Time-to-live for records in this zone
|
||||
ns = [ "hoardfrost.lan." ]; # Nameserver record
|
||||
soa = {
|
||||
nameServer = "hoardfrost.lan.";
|
||||
adminEmail = "root.lan.";
|
||||
serial = "2025012001"; # Increment serial for changes
|
||||
refresh = "3600";
|
||||
retry = "1800";
|
||||
expire = "604800";
|
||||
minimum = "86400";
|
||||
};
|
||||
|
||||
# Define your host records (A for IPv4, AAAA for IPv6)
|
||||
records = {
|
||||
# Your NixOS server acting as the DNS server
|
||||
hoardfrost = [
|
||||
{ type = "A"; content = "10.0.0.217"; }
|
||||
{ type = "AAAA"; content = "2601:282:180:630::cc03"; }
|
||||
];
|
||||
|
||||
# Other devices on your local network
|
||||
router = [
|
||||
{ type = "A"; content = "10.0.0.1"; }
|
||||
{ type = "AAAA"; content = "fe80::1"; }
|
||||
];
|
||||
|
||||
yukigekko = [
|
||||
{ type = "A"; content = "10.0.0.210"; }
|
||||
{ type = "AAAA"; content = "2601:282:180:630::e2e"; }
|
||||
];
|
||||
|
||||
wesbos = [
|
||||
{ type = "A"; content = "10.0.0.110";}
|
||||
# { type = "AAAA"; content = "";}
|
||||
];
|
||||
|
||||
wsl-hive = [
|
||||
{type = "A"; content = "172.18.84.193";}
|
||||
{type = "AAAA"; content = "fe80::215:5dff:fec1:e813";}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# This function generates the zone file string from the Nix expression
|
||||
generateZoneFile = zoneName: zoneConfig:
|
||||
let
|
||||
soaRecord = "${zoneName} ${toString zoneConfig.ttl} IN SOA ${zoneConfig.soa.nameServer} ${zoneConfig.soa.adminEmail} ( ${zoneConfig.soa.serial} ${zoneConfig.soa.refresh} ${zoneConfig.soa.retry} ${zoneConfig.soa.expire} ${zoneConfig.soa.minimum} )";
|
||||
nsRecords = lib.concatStringsSep "\n" (map (ns: "${zoneName} ${toString zoneConfig.ttl} IN NS ${ns}") zoneConfig.ns);
|
||||
hostRecords = lib.concatStringsSep "\n" (lib.flatten (lib.mapAttrsToList (hostname: records:
|
||||
map (record: "${hostname}.${zoneName} ${toString zoneConfig.ttl} IN ${record.type} ${record.content}") records
|
||||
) zoneConfig.records));
|
||||
in
|
||||
''
|
||||
$ORIGIN ${zoneName}
|
||||
${soaRecord}
|
||||
${nsRecords}
|
||||
${hostRecords}
|
||||
'';
|
||||
|
||||
# Generate the zone file using the `generateZoneFile` function
|
||||
lanZoneFile = pkgs.writeText "lan.zone" (generateZoneFile "lan." dnsRecords."lan.");
|
||||
|
||||
# Configure hickory-dns with the generated zone file
|
||||
hickoryConfig = pkgs.writeText "hickory-config.toml" ''
|
||||
listen_addrs_ipv4 = ["127.0.0.1", "10.0.0.217"] # Change to your NixOS server's IPv4
|
||||
listen_addrs_ipv6 = ["::1", "2601:282:180:630::cc03"] # Change to your NixOS server's IPv6
|
||||
|
||||
# Configure as an authoritative server for the local zone
|
||||
[[zones]]
|
||||
zone = "lan."
|
||||
zone_type = "Primary"
|
||||
file = "${lanZoneFile}"
|
||||
|
||||
# Note: Recursive resolution is not supported in Hickory DNS 0.25.2
|
||||
# This server will only serve the local zone
|
||||
'';
|
||||
|
||||
in
|
||||
{
|
||||
systemd.services.hickory-dns = {
|
||||
enable = true;
|
||||
description = "Hickory DNS authoritative server for local zone";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = "hickory";
|
||||
Group = "hickory";
|
||||
ExecStart = "${pkgs.hickory-dns}/bin/hickory-dns -c ${hickoryConfig}";
|
||||
Restart = "on-failure";
|
||||
AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ];
|
||||
DynamicUser = true;
|
||||
StateDirectory = "hickory";
|
||||
};
|
||||
};
|
||||
|
||||
users.groups.hickory = {};
|
||||
users.users.hickory = {
|
||||
isSystemUser = true;
|
||||
group = "hickory";
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.hickory-dns ];
|
||||
|
||||
# Configure systemd-resolved to use Unbound
|
||||
services.resolved.enable = true;
|
||||
services.resolved.dnssec = "false";
|
||||
services.resolved.extraConfig = ''
|
||||
DNS=127.0.0.1@5353
|
||||
'';
|
||||
|
||||
# Configure Unbound as recursive resolver for external queries
|
||||
services.unbound = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
interface = [ "127.0.0.1" ];
|
||||
port = 5353; # Use different port to avoid conflict with Hickory DNS
|
||||
access-control = [ "127.0.0.1 allow" ];
|
||||
hide-identity = true;
|
||||
hide-version = true;
|
||||
};
|
||||
forward-zone = [
|
||||
{
|
||||
name = "lan.";
|
||||
forward-addr = [ "127.0.0.1@53" ]; # Forward lan. queries to Hickory DNS
|
||||
}
|
||||
{
|
||||
name = ".";
|
||||
forward-addr = [
|
||||
"8.8.8.8#dns.google"
|
||||
"2001:4860:4860::8888#dns.google"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Configure NetworkManager to use systemd-resolved and ignore DHCP DNS
|
||||
networking.networkmanager.dns = "systemd-resolved";
|
||||
networking.networkmanager.settings.main.dns = "none";
|
||||
|
||||
# Set the system to use local DNS
|
||||
networking.nameservers = [ "127.0.0.1" ];
|
||||
}
|
||||
7
system/services/mullvad.nix
Normal file
7
system/services/mullvad.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
services.mullvad-vpn = {
|
||||
enable = true;
|
||||
package = pkgs.mullvad-vpn;
|
||||
};
|
||||
}
|
||||
8
system/services/openssh.nix
Normal file
8
system/services/openssh.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
passwordAuthentication = true;
|
||||
ports = [2022];
|
||||
};
|
||||
}
|
||||
20
system/services/podman.nix
Normal file
20
system/services/podman.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
{ pkgs, lib, config, ... }:
|
||||
|
||||
{
|
||||
# Runtime
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
autoPrune.enable = true;
|
||||
# dockerCompat = true;
|
||||
};
|
||||
|
||||
# Enable container name DNS for all Podman networks.
|
||||
networking.firewall.interfaces = let
|
||||
matchAll = if !config.networking.nftables.enable then "podman+" else "podman*";
|
||||
in {
|
||||
"${matchAll}".allowedUDPPorts = [ 53 ];
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.backend = "podman";
|
||||
}
|
||||
44
system/services/samba.nix
Normal file
44
system/services/samba.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
services.samba = {
|
||||
enable = true;
|
||||
# securityType = "user";
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
global = {
|
||||
"workgroup" = "WORKGROUP";
|
||||
"server string" = "smbnix";
|
||||
# "netbios name" = "smbnix";
|
||||
"security" = "user";
|
||||
};
|
||||
"public" = {
|
||||
"path" = "/srv/samba/hoardfrost/mainstore";
|
||||
"browseable" = "yes";
|
||||
public = "yes";
|
||||
"read only" = "no";
|
||||
"guest ok" = "yes";
|
||||
"create mask" = "0644";
|
||||
"directory mask" = "0755";
|
||||
# "force user" = "autumn";
|
||||
# "force group" = "groupname";
|
||||
"valid users" = "autumn lia madeleine";
|
||||
};
|
||||
"private" = {
|
||||
"path" = "/srv/samba/hoardfrost/private";
|
||||
"browseable" = "yes";
|
||||
"read only" = "no";
|
||||
"guest ok" = "no";
|
||||
"create mask" = "0644";
|
||||
"directory mask" = "0755";
|
||||
"force user" = "autumn";
|
||||
# "force group" = "groupname";
|
||||
"valid users" = "autumn";
|
||||
};
|
||||
};
|
||||
};
|
||||
services.samba-wsdd = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
discovery = true;
|
||||
};
|
||||
}
|
||||
16
system/services/swaybg.nix
Normal file
16
system/services/swaybg.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
systemd.user.services.swaybg-autoset = {
|
||||
enable = true;
|
||||
description = "start swaybg on login";
|
||||
after = ["waybar.service"];
|
||||
requires = ["network-online.target"];
|
||||
before = ["multi-user.target"];
|
||||
wantedBy = ["multi-user.target"];
|
||||
serviceConfig = {
|
||||
ExecStart = "swaybg -i ~/Downloads/wp.jpg";
|
||||
User = "autumn";
|
||||
Group = "users";
|
||||
};
|
||||
};
|
||||
}
|
||||
7
system/services/tailscale.nix
Normal file
7
system/services/tailscale.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
|
||||
};
|
||||
}
|
||||
@@ -10,13 +10,16 @@
|
||||
{
|
||||
imports = [
|
||||
# include NixOS-WSL modules
|
||||
../defaults/users.nix
|
||||
<nixos-wsl/modules>
|
||||
];
|
||||
|
||||
wsl.enable = true;
|
||||
wsl.defaultUser = "autumn";
|
||||
networking.hostName = "wsl-hive";
|
||||
networking.extraHosts = "10.0.0.217 hoardfrost";
|
||||
environment.systemPackages = [pkgs.git];
|
||||
programs.zsh.enable = true;
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
|
||||
@@ -9,22 +9,38 @@
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
|
||||
# ../packages/bincache.nix
|
||||
#system configs
|
||||
../defaults/locale.nix
|
||||
../defaults/boot.nix
|
||||
../defaults/locale.nix
|
||||
../defaults/security.nix
|
||||
../defaults/services.nix
|
||||
../defaults/system.nix
|
||||
../defaults/users.nix
|
||||
|
||||
../services/mullvad.nix
|
||||
../services/swaybg.nix
|
||||
|
||||
#system packages
|
||||
../packages/sddm/sddm.nix
|
||||
|
||||
#flatpaks
|
||||
# ../extras/flatpak.nix
|
||||
];
|
||||
|
||||
networking.hostName = "yukigekko"; # Define your hostname.
|
||||
networking.networkmanager.enable = true;
|
||||
networking.extraHosts = ''
|
||||
10.0.0.217 hoardfrost
|
||||
'';
|
||||
|
||||
services.logind.lidSwitchExternalPower = "ignore";
|
||||
services.blueman.enable = true;
|
||||
|
||||
time.timeZone = "${timezone}";
|
||||
|
||||
programs.river.enable = true;
|
||||
programs.river-classic.enable = true;
|
||||
programs.niri.enable = true;
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
config.common.default = "*";
|
||||
@@ -34,7 +50,7 @@
|
||||
};
|
||||
|
||||
programs.firefox.enable = true;
|
||||
programs.bash.interactiveShellInit = "fish";
|
||||
programs.zsh.enable = true;
|
||||
programs.appimage.enable = true;
|
||||
# programs.openvpn3.enable = true;
|
||||
|
||||
@@ -42,25 +58,16 @@
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
|
||||
powerManagement.enable = false;
|
||||
|
||||
powerManagement.finegrained = false;
|
||||
|
||||
open = false;
|
||||
|
||||
nvidiaSettings = true;
|
||||
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
fileSystems."/mnt/hoardfrost" = {
|
||||
device = "//10.0.0.217/public";
|
||||
fsType = "cifs";
|
||||
options = [ "username=autumn" "password=autest" "x-systemd.automount" "noauto"];
|
||||
};
|
||||
hardware.nvidia.prime.intelBusId = "PCI:0@0:2:0";
|
||||
hardware.nvidia.prime.nvidiaBusId = "PCI:1@0:0:0";
|
||||
hardware.nvidia.prime.sync.enable = true;
|
||||
hardware.nvidia.prime.offload.enable = false;
|
||||
hardware.nvidia.prime.offload.enableOffloadCmd = false;
|
||||
# hardware.nvidia.prime.intelBusId = "PCI:0@0:2:0";
|
||||
# hardware.nvidia.prime.nvidiaBusId = "PCI:1@0:0:0";
|
||||
# hardware.nvidia.prime.sync.enable = true;o
|
||||
# hardware.nvidia.prime.offload.enable = false;
|
||||
# hardware.nvidia.prime.offload.enableOffloadCmd = false;
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
@@ -68,7 +75,7 @@
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
vim
|
||||
pavucontrol
|
||||
nh
|
||||
docker
|
||||
@@ -76,7 +83,31 @@
|
||||
podman
|
||||
skopeo
|
||||
buildkit
|
||||
tree
|
||||
swaylock-effects
|
||||
code-cursor-fhs
|
||||
moonlight-qt
|
||||
pcmanfm
|
||||
gvfs
|
||||
vlc
|
||||
cifs-utils
|
||||
polkit
|
||||
waypaper
|
||||
# wayland
|
||||
# wayland-protocols
|
||||
# libxkbcommon
|
||||
# expat
|
||||
# fontconfig
|
||||
# freetype
|
||||
# freetype.dev
|
||||
# libGL
|
||||
# pkg-config
|
||||
# xorg.libX11
|
||||
# xorg.libXcursor
|
||||
# xorg.libXi
|
||||
# xorg.libXrandr
|
||||
];
|
||||
environment.pathsToLink = ["/share/zsh"];
|
||||
|
||||
virtualisation.containers.policy = {
|
||||
default = [{type = "insecureAcceptAnything";}];
|
||||
@@ -88,25 +119,11 @@
|
||||
};
|
||||
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
nix.settings.download-buffer-size = 5242880000;
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
# programs.mtr.enable = true;
|
||||
# programs.gnupg.agent = {
|
||||
# enable = true;
|
||||
# enableSSHSupport = true;
|
||||
# };
|
||||
|
||||
|
||||
# List services that you want to enable:
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.allowReboot = true;
|
||||
system.autoUpgrade.flake = "../../flake.nix";
|
||||
qt.platformTheme = "kde6";
|
||||
# qt.platformTheme = "kde6";
|
||||
}
|
||||
|
||||
@@ -8,25 +8,23 @@
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/764f812a-99d9-4754-9704-ead067694ff9";
|
||||
{ device = "/dev/disk/by-uuid/8f1b1098-ae2e-4804-8a3f-65ae10d66b2c";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/B495-E52C";
|
||||
{ device = "/dev/disk/by-uuid/5B79-90C9";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/c9790e7a-e972-44fe-a6f0-160af701a4b7"; }
|
||||
];
|
||||
swapDevices = [ ];
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user