Compare commits
80 Commits
ef6d5ce
...
87a09834a2
| Author | SHA1 | Date | |
|---|---|---|---|
|
87a09834a2
|
|||
|
0597249641
|
|||
|
8225fd1fe1
|
|||
| e86912da09 | |||
|
dfeb98e31f
|
|||
| 3e1ffba6a6 | |||
|
816001160f
|
|||
|
146fad0ce6
|
|||
|
6ff3e03029
|
|||
|
bba5ff934a
|
|||
|
b9a33095f5
|
|||
|
5d39868542
|
|||
|
7905ca167e
|
|||
| 484999059a | |||
|
3710d953ab
|
|||
|
b1294976dd
|
|||
|
08a5db8508
|
|||
| 73e25a00b6 | |||
|
c5c3a73495
|
|||
|
9283b4a68d
|
|||
|
943112677a
|
|||
| 0ba10a8643 | |||
| fa06263d10 | |||
|
e80dbffebf
|
|||
|
64c6ca6030
|
|||
|
1a0fee83e6
|
|||
|
dba02b91ef
|
|||
| f06352bb31 | |||
| 8bcc91bbab | |||
| 8bd4e7befa | |||
|
b9ba959482
|
|||
|
d5d569dbf5
|
|||
| 2ef3feda04 | |||
|
76ebe4adcf
|
|||
|
c14e2372bb
|
|||
|
41d3711b9b
|
|||
|
ee248079aa
|
|||
|
3793d9d4c3
|
|||
|
d9bac8a433
|
|||
| 29be5b73d4 | |||
|
91702ec7a3
|
|||
|
6a80170d4d
|
|||
| 3646963fd9 | |||
| 8920dadd4b | |||
|
811b1d67b0
|
|||
|
76c0ad8beb
|
|||
| 9de6978c8a | |||
|
1c715564ac
|
|||
| a60b6aeeec | |||
|
835e726c6c
|
|||
|
bf592c5e9d
|
|||
| 983f51b0f3 | |||
|
c95443f8b8
|
|||
|
14eaa9b5f8
|
|||
|
64ee797c97
|
|||
|
5e83ab9626
|
|||
| ea58f1d641 | |||
|
5b1b62dd32
|
|||
|
7972ab111c
|
|||
|
b6bea84f8b
|
|||
|
6913e58e0b
|
|||
|
6a8d644c94
|
|||
|
890d3381a5
|
|||
| 1cad2253b3 | |||
|
091e23932d
|
|||
|
c1bebc9df1
|
|||
|
7d79e9d8ae
|
|||
|
ebd650e854
|
|||
|
5becaf1588
|
|||
|
447c95c22d
|
|||
|
33c03199a0
|
|||
| 3a0f0192f4 | |||
|
6d045d1d4d
|
|||
|
86719c309a
|
|||
| bdc61737cb | |||
| 05861081ce | |||
|
724f5361e6
|
|||
|
c0223fdd09
|
|||
|
0e8dfb98c5
|
|||
|
26c4bb6495
|
31
.gitea/workflows/auto_update.yaml
Normal file
31
.gitea/workflows/auto_update.yaml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: update the nix flake lock automatically every week
|
||||||
|
run-name: update
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 4 * * 1"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: get repo
|
||||||
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
|
- name: install nix
|
||||||
|
uses: https://github.com/cachix/install-nix-action@v31
|
||||||
|
|
||||||
|
- name: run the update
|
||||||
|
run: nix flake update
|
||||||
|
|
||||||
|
- name: Commit and push
|
||||||
|
run: |
|
||||||
|
git config user.name "Update action"
|
||||||
|
git config user.email "update-action@no-one.com"
|
||||||
|
git add .
|
||||||
|
git commit -m "Auto update"
|
||||||
|
git push
|
||||||
@ -3,7 +3,7 @@ run-name: iso building
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'iso'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
tmp/
|
||||||
20
Makefile
20
Makefile
@ -1,18 +1,32 @@
|
|||||||
HOST ?= $(file < /etc/nixosFlakeName)
|
HOST ?= $(file < /etc/nixosFlakeName)
|
||||||
THREADS ?= $(shell nproc)
|
THREADS ?= $(shell nproc)
|
||||||
FLAKE ?= .
|
FLAKE ?= .
|
||||||
MODE ?= boot
|
MODE ?= switch
|
||||||
|
|
||||||
FLAGS = --impure --cores $(THREADS) -j $(THREADS)
|
|
||||||
|
EXTRAFLAGS ?=
|
||||||
|
FLAGS = --impure -j 1 -L $(EXTRAFLAGS)
|
||||||
|
|
||||||
|
ifdef OFFLINE
|
||||||
|
FLAGS += --option binary-caches ''
|
||||||
|
endif
|
||||||
|
|
||||||
all: os home
|
all: os home
|
||||||
|
|
||||||
update:
|
update:
|
||||||
cd $(FLAKE);nix flake update
|
cd $(FLAKE);nix flake update
|
||||||
$(MAKE) all
|
|
||||||
|
|
||||||
os:
|
os:
|
||||||
sudo nixos-rebuild $(MODE) $(FLAGS) --flake $(FLAKE)#$(HOST)
|
sudo nixos-rebuild $(MODE) $(FLAGS) --flake $(FLAKE)#$(HOST)
|
||||||
|
|
||||||
|
vm:
|
||||||
|
sudo nixos-rebuild build-vm $(FLAGS) --flake $(FLAKE)#$(HOST)
|
||||||
|
./result/bin/*
|
||||||
|
rm ./result
|
||||||
|
rm ./*.qcow2
|
||||||
|
|
||||||
|
hoem : home
|
||||||
|
|
||||||
home :
|
home :
|
||||||
home-manager switch $(FLAGS) --flake $(FLAKE)#$(HOST)
|
home-manager switch $(FLAGS) --flake $(FLAKE)#$(HOST)
|
||||||
|
|
||||||
|
|||||||
163
flake.lock
generated
163
flake.lock
generated
@ -5,11 +5,11 @@
|
|||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763110997,
|
"lastModified": 1781857425,
|
||||||
"narHash": "sha256-S2vF+3D/9vna3/vBV7LHiGUbp+ltPsQhvccIyim6VQg=",
|
"narHash": "sha256-YhFPbCmdGis/4hwwt/ls4IZ8FR159EULbxWvv6U15+I=",
|
||||||
"owner": "catppuccin",
|
"owner": "catppuccin",
|
||||||
"repo": "nix",
|
"repo": "nix",
|
||||||
"rev": "e6928cdd3dd20636326c2756d2bc8fd1cd825768",
|
"rev": "8b943da8a0f8628f3446d2517ea39babcfaf27f3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -18,6 +18,29 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"dockermcmgr": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": "systems",
|
||||||
|
"treefmt-nix": "treefmt-nix"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1781713404,
|
||||||
|
"narHash": "sha256-sWYN0mtke4pMa/v19CXTYIhmZ8zIeYfcmzkSvtgBrhI=",
|
||||||
|
"ref": "refs/heads/master",
|
||||||
|
"rev": "64b2f04f8f1d3f826a5fe2c456dab41f5a13b3dc",
|
||||||
|
"revCount": 41,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.tmoron.fr/tom/dockermcmgr"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.tmoron.fr/tom/dockermcmgr"
|
||||||
|
}
|
||||||
|
},
|
||||||
"firefox-addons": {
|
"firefox-addons": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@ -26,11 +49,11 @@
|
|||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "pkgs/firefox-addons",
|
"dir": "pkgs/firefox-addons",
|
||||||
"lastModified": 1763352296,
|
"lastModified": 1782014564,
|
||||||
"narHash": "sha256-3501S69Eft93hXhLUzdnwP4xVIO8mZ1zrZWPsSbnJLU=",
|
"narHash": "sha256-F/royQHyJAyKWKrV8AaG4Yf1yjzxa+PFk5xvTdvBrzk=",
|
||||||
"owner": "rycee",
|
"owner": "rycee",
|
||||||
"repo": "nur-expressions",
|
"repo": "nur-expressions",
|
||||||
"rev": "63f8d49eee3e1e79bbe325393f9de48266e337c5",
|
"rev": "d6668e34bbce788459883a1097bf0ee170f49c61",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -40,6 +63,22 @@
|
|||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-compat": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1767039857,
|
||||||
|
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@ -47,26 +86,30 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763313531,
|
"lastModified": 1782100728,
|
||||||
"narHash": "sha256-yvdCYUL85zEDp2NzPUBmaNBXP6KnWEOhAk3j7PTfsKw=",
|
"narHash": "sha256-YTyPsWf6ieaU6j/gJ+i7ERXKC7DEJC8BxUcAubx2SVQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "3670a78eee49deebe4825fc8ecc46b172d1a8391",
|
"rev": "f3dc0b85833c6c9946ad1349ab810d07e0bdf761",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
|
"ref": "master",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs_3"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762847253,
|
"lastModified": 1781622756,
|
||||||
"narHash": "sha256-BWWnUUT01lPwCWUvS0p6Px5UOBFeXJ8jR+ZdLX8IbrU=",
|
"narHash": "sha256-JrPh4M6S7aPsEE9tOENuZrxC6o2szSLlK+t4+nLke9s=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "899dc449bc6428b9ee6b3b8f771ca2b0ef945ab9",
|
"rev": "08018c72174a4df5657f8d94178ac69fb9c243e5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -78,32 +121,58 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762111121,
|
"lastModified": 1781607440,
|
||||||
"narHash": "sha256-4vhDuZ7OZaZmKKrnDpxLZZpGIJvAeMtK6FKLJYUtAdw=",
|
"narHash": "sha256-eM+l4TVD26SNoEjcxRcpispqZi5Qrqj/G0ZY4LfqwfM=",
|
||||||
"owner": "NixOS",
|
"rev": "3e41b24abd260e8f71dbe2f5737d24122f972158",
|
||||||
"repo": "nixpkgs",
|
"type": "tarball",
|
||||||
"rev": "b3d51a0365f6695e7dd5cdf3e180604530ed33b4",
|
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1017567.3e41b24abd26/nixexprs.tar.xz"
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixos-unstable",
|
"url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763283776,
|
"lastModified": 1770107345,
|
||||||
"narHash": "sha256-Y7TDFPK4GlqrKrivOcsHG8xSGqQx3A6c+i7novT85Uk=",
|
"narHash": "sha256-tbS0Ebx2PiA1FRW8mt8oejR0qMXmziJmPaU1d4kYY9g=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "50a96edd8d0db6cc8db57dab6bb6d6ee1f3dc49a",
|
"rev": "4533d9293756b63904b7238acb84ac8fe4c8c2c4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1767892417,
|
||||||
|
"narHash": "sha256-8bW3q88CEg2u4hSP66Vf4lpbLonHz7hqDNBMcCY7E9U=",
|
||||||
|
"rev": "3497aa5c9457a9d88d71fa93a4a8368816fbeeba",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.05pre924538.3497aa5c9457/nixexprs.tar.xz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_4": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1782099349,
|
||||||
|
"narHash": "sha256-SPuZdcuv4sMd5QVCxLDEcwc8SXjsU7ZjaMmiBSr4HoU=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "f56bad1bdd74e486c5b1223dc5e1066277efd983",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "master",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@ -111,10 +180,11 @@
|
|||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"catppuccin": "catppuccin",
|
"catppuccin": "catppuccin",
|
||||||
|
"dockermcmgr": "dockermcmgr",
|
||||||
"firefox-addons": "firefox-addons",
|
"firefox-addons": "firefox-addons",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_4",
|
||||||
"sops-nix": "sops-nix"
|
"sops-nix": "sops-nix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -125,11 +195,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763264763,
|
"lastModified": 1781943681,
|
||||||
"narHash": "sha256-N0BEoJIlJ+M6sWZJ8nnfAjGY9VLvM6MXMitRenmhBkY=",
|
"narHash": "sha256-NFHmA7H47adqiyp+0iEOyZOQhmigDqA/NBAlf4imB6U=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "882e56c8293e44d57d882b800a82f8b2ee7a858f",
|
"rev": "420f8d2e9882911f65cfac15cc706f639ba96cca",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -137,6 +207,39 @@
|
|||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"treefmt-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1780220602,
|
||||||
|
"narHash": "sha256-eynAfOmbmxJnkp7YewvCEbShNnnYJ9gLLqkzsYtBPeM=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"rev": "db947814a175b7ca6ded66e21383d938df01c227",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
33
flake.nix
33
flake.nix
@ -6,7 +6,7 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2024/10/17 18:15:24 by tomoron #+# #+# #
|
# Created: 2024/10/17 18:15:24 by tomoron #+# #+# #
|
||||||
# Updated: 2025/09/24 02:10:00 by tomoron ### ########.fr #
|
# Updated: 2026/06/15 02:17:44 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -14,7 +14,7 @@
|
|||||||
description = "Nixos and home-manager config flake";
|
description = "Nixos and home-manager config flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/master";
|
||||||
catppuccin.url = "github:catppuccin/nix";
|
catppuccin.url = "github:catppuccin/nix";
|
||||||
|
|
||||||
sops-nix = {
|
sops-nix = {
|
||||||
@ -23,7 +23,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager/master";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
@ -33,6 +33,11 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dockermcmgr = {
|
||||||
|
url = "git+https://git.tmoron.fr/tom/dockermcmgr";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
#plymouth-theme-ycontre-glow = {
|
#plymouth-theme-ycontre-glow = {
|
||||||
# url = "git+file:///home/tom/desktop/bordel/ycontre-glow";
|
# url = "git+file:///home/tom/desktop/bordel/ycontre-glow";
|
||||||
# inputs.nixpkgs.follows = "nixpkgs";
|
# inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@ -43,17 +48,22 @@
|
|||||||
let
|
let
|
||||||
pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; };
|
pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; };
|
||||||
|
|
||||||
osConfig = {flakeName, extraModules ? []}: nixpkgs.lib.nixosSystem {
|
osConfig = {flakeName, minimal ? false, extraModules ? []}: nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs; flakeName = flakeName; };
|
specialArgs = { inherit inputs; flakeName = flakeName; minimal = minimal; };
|
||||||
modules = nixpkgs.lib.concatLists [
|
modules = nixpkgs.lib.concatLists [
|
||||||
[./osConfigs/os.nix ./osConfigs/hosts/${flakeName}.nix catppuccin.nixosModules.catppuccin]
|
[
|
||||||
|
./osConfigs/os.nix
|
||||||
|
./osConfigs/hosts/${flakeName}.nix
|
||||||
|
catppuccin.nixosModules.catppuccin
|
||||||
|
inputs.sops-nix.nixosModules.sops
|
||||||
|
]
|
||||||
extraModules
|
extraModules
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
homeConfig = {flakeName, sops ? true, extraModules ? [], username ? "tom", homeDir ? "/home/tom"}: home-manager.lib.homeManagerConfiguration {
|
homeConfig = {flakeName, sops ? true, extraModules ? [], username ? "tom", homeDir ? "/home/tom", minimal ? false}: home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
extraSpecialArgs = { inherit inputs; username = username; homeDir = homeDir; isOs = false; configSops = sops; };
|
extraSpecialArgs = { inherit inputs; username = username; homeDir = homeDir; isOs = false; configSops = sops; minimal = minimal; };
|
||||||
modules = nixpkgs.lib.concatLists [
|
modules = nixpkgs.lib.concatLists [
|
||||||
[
|
[
|
||||||
./homeConfigs/home.nix
|
./homeConfigs/home.nix
|
||||||
@ -66,9 +76,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
server = osConfig {flakeName = "server";};
|
server = osConfig {flakeName = "server"; minimal = true;};
|
||||||
vbox = osConfig {flakeName = "vbox";};
|
vbox = osConfig {flakeName = "vbox";};
|
||||||
laptop = osConfig {flakeName = "laptop"; extraModules = [ nixos-hardware.nixosModules.asus-zephyrus-ga401 ];};
|
laptop = osConfig {flakeName = "laptop"; extraModules = [ nixos-hardware.nixosModules.asus-zephyrus-ga401 ];};
|
||||||
desktop = osConfig {flakeName = "desktop";};
|
desktop = osConfig {flakeName = "desktop";};
|
||||||
@ -85,11 +94,11 @@
|
|||||||
|
|
||||||
|
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
vbox = homeConfig { flakeName = "vbox";};
|
default = homeConfig { flakeName = "default";};
|
||||||
ft = homeConfig { flakeName = "ft"; username = "tomoron"; homeDir = "/home/tomoron"; sops = false;};
|
ft = homeConfig { flakeName = "ft"; username = "tomoron"; homeDir = "/home/tomoron"; sops = false;};
|
||||||
laptop = homeConfig { flakeName = "laptop"; };
|
laptop = homeConfig { flakeName = "laptop"; };
|
||||||
desktop = homeConfig { flakeName = "desktop"; };
|
desktop = homeConfig { flakeName = "desktop"; };
|
||||||
server = homeConfig { flakeName = "server"; };
|
server = homeConfig { flakeName = "server"; minimal = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
BIN
homeConfigs/assets/lock_screen.jpg
Normal file
BIN
homeConfigs/assets/lock_screen.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 797 KiB After Width: | Height: | Size: 797 KiB |
11
homeConfigs/global/alacritty.nix
Normal file
11
homeConfigs/global/alacritty.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
catppuccin.alacritty.enable = true;
|
||||||
|
programs.alacritty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
env.XTERM = "xterm-256color";
|
||||||
|
font.size = 9;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -1,7 +1,9 @@
|
|||||||
{ lib, pkgs, ... }:
|
{ lib, pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
autoEnable = false;
|
||||||
|
|
||||||
flavor = "mocha";
|
flavor = "mocha";
|
||||||
|
|
||||||
dunst.enable = true;
|
dunst.enable = true;
|
||||||
@ -13,7 +15,8 @@
|
|||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = { package = pkgs.flat-remix-gtk; name = "Flat-Remix-GTK-Grey-Darkest"; };
|
theme = { package = pkgs.magnetic-catppuccin-gtk; name = "Catppuccin-GTK-Dark"; };
|
||||||
|
gtk4.theme = config.gtk.theme;
|
||||||
font = { name = "Sans"; size = 11; };
|
font = { name = "Sans"; size = 11; };
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -27,7 +30,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/wallpaper.png".source = lib.mkDefault ../utils/wallpaper.png;
|
".config/wallpaper.png".source = lib.mkDefault ../assets/wallpaper.png;
|
||||||
".config/lock_screen.jpg".source = lib.mkDefault ../utils/lock_screen.jpg;
|
".config/lock_screen.jpg".source = lib.mkDefault ../assets/lock_screen.jpg;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,13 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
catppuccin = {
|
|
||||||
enable = true;
|
|
||||||
flavor = "mocha";
|
|
||||||
|
|
||||||
dunst.enable = true;
|
|
||||||
dunst.flavor="frappe";
|
|
||||||
|
|
||||||
kvantum.apply = true;
|
|
||||||
rofi.enable = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
11
homeConfigs/global/defaultApplications.nix
Normal file
11
homeConfigs/global/defaultApplications.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
"application/pdf" = "firefox.desktop";
|
||||||
|
"x-scheme-handler/https" = "firefox.desktop";
|
||||||
|
"x-scheme-handler/http" = "firefox.desktop";
|
||||||
|
|
||||||
|
"inode/directory" = "yazi.desktop";
|
||||||
|
"image/*" = "qimgv.desktop";
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -1,16 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
programs.yazi = {
|
|
||||||
enable = true;
|
|
||||||
settings.mgr.sort_dir_first=false;
|
|
||||||
};
|
|
||||||
programs.bash.bashrcExtra = ''
|
|
||||||
function y() {
|
|
||||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
|
||||||
yazi "$@" --cwd-file="$tmp"
|
|
||||||
IFS= read -r -d "" cwd < "$tmp"
|
|
||||||
[ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
|
|
||||||
rm -f -- "$tmp"
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
18
homeConfigs/global/firefox.nix
Normal file
18
homeConfigs/global/firefox.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{ inputs, config, ... }:
|
||||||
|
{
|
||||||
|
catppuccin.firefox.enable = true;
|
||||||
|
programs.firefox.configPath = "${config.xdg.configHome}/mozilla/firefox";
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
profiles.default = {
|
||||||
|
extensions.packages = with inputs.firefox-addons.packages."x86_64-linux";
|
||||||
|
[vimium ublock-origin];
|
||||||
|
extensions.force = true;
|
||||||
|
settings = {
|
||||||
|
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
|
||||||
|
"layout.css.prefers-color-scheme.content-override" = 0;
|
||||||
|
"browser.theme.content-theme" = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
11
homeConfigs/global/game.nix
Normal file
11
homeConfigs/global/game.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs;[
|
||||||
|
lutris
|
||||||
|
mangohud
|
||||||
|
moonlight-qt
|
||||||
|
prismlauncher
|
||||||
|
|
||||||
|
r2modman
|
||||||
|
];
|
||||||
|
}
|
||||||
10
homeConfigs/global/minimal/fileManager.nix
Normal file
10
homeConfigs/global/minimal/fileManager.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.yazi = {
|
||||||
|
enable = true;
|
||||||
|
settings.mgr.sort_dir_first=false;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.sessionVariables.BROWSER = "yazi";
|
||||||
|
programs.yazi.shellWrapperName = "y";
|
||||||
|
}
|
||||||
25
homeConfigs/global/minimal/git.nix
Normal file
25
homeConfigs/global/minimal/git.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
lfs.enable = true;
|
||||||
|
signing.format = "openpgp";
|
||||||
|
settings = {
|
||||||
|
user.email = "tomoron@student.42angouleme.fr";
|
||||||
|
user.name = "tomoron";
|
||||||
|
init.defaultBranch="master";
|
||||||
|
pull.rebase = true;
|
||||||
|
push.autoSetupRemote = true;
|
||||||
|
rerere.enabled = true;
|
||||||
|
help.autocorrect = 1;
|
||||||
|
|
||||||
|
user.signingkey = "251B4BD73683A8DF13D760A868BFAFE31DF313AD";
|
||||||
|
commit.gpgsign = true;
|
||||||
|
|
||||||
|
alias = {
|
||||||
|
fuck = "!f() { git reset --hard \"@{upstream}\" && git restore . && git clean -f .; };f";
|
||||||
|
back = "reset HEAD~";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
6
homeConfigs/global/minimal/other.nix
Normal file
6
homeConfigs/global/minimal/other.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
catppuccin.enable = lib.mkDefault false;
|
||||||
|
catppuccin.autoEnable = lib.mkDefault false;
|
||||||
|
}
|
||||||
30
homeConfigs/global/minimal/packages.nix
Normal file
30
homeConfigs/global/minimal/packages.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# **************************************************************************** #
|
||||||
|
# #
|
||||||
|
# ::: :::::::: #
|
||||||
|
# packages.nix :+: :+: :+: #
|
||||||
|
# +:+ +:+ +:+ #
|
||||||
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
|
# +#+#+#+#+#+ +#+ #
|
||||||
|
# Created: 2025/02/09 22:01:56 by tomoron #+# #+# #
|
||||||
|
# Updated: 2026/06/14 19:11:25 by tomoron ### ########.fr #
|
||||||
|
# #
|
||||||
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
{ pkgs, ...}:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs;[
|
||||||
|
lrzip
|
||||||
|
git
|
||||||
|
lm_sensors
|
||||||
|
wget
|
||||||
|
curl
|
||||||
|
man-pages
|
||||||
|
ffmpeg-full
|
||||||
|
nix-index
|
||||||
|
sops
|
||||||
|
screen
|
||||||
|
btop
|
||||||
|
htop
|
||||||
|
];
|
||||||
|
}
|
||||||
40
homeConfigs/global/minimal/shell.nix
Normal file
40
homeConfigs/global/minimal/shell.nix
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{ homeDir, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.shell.enableBashIntegration = true;
|
||||||
|
home.shellAliases = {
|
||||||
|
ls= "ls --color=auto";
|
||||||
|
grep = "grep --color=auto";
|
||||||
|
vim = "nvim";
|
||||||
|
vi = "nvim";
|
||||||
|
clr = "clear";
|
||||||
|
noidle = "systemctl --user stop hypridle";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.bash.profileExtra = ''
|
||||||
|
PATH=$PATH:${homeDir}/.cargo/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
programs.direnv.enable = true;
|
||||||
|
programs.direnv.enableBashIntegration = true;
|
||||||
|
|
||||||
|
programs.bash = {
|
||||||
|
enable = true;
|
||||||
|
historyControl = ["ignoreboth"];
|
||||||
|
historyIgnore = [ "ls" "cd" "exit" ];
|
||||||
|
shellOptions = [ "cdspell" "autocd"];
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.bash.bashrcExtra = ''
|
||||||
|
cd() {
|
||||||
|
builtin cd "$@"
|
||||||
|
echo -n "$PWD" > ~/.last_directory
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if [ -f ~/.last_directory ] && [ -n "$PS1" ];then
|
||||||
|
echo "going to $(cat ~/.last_directory)"
|
||||||
|
builtin cd "$(cat ~/.last_directory)"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
}
|
||||||
213
homeConfigs/global/minimal/vim.nix
Normal file
213
homeConfigs/global/minimal/vim.nix
Normal file
@ -0,0 +1,213 @@
|
|||||||
|
# **************************************************************************** #
|
||||||
|
# #
|
||||||
|
# ::: :::::::: #
|
||||||
|
# vim.nix :+: :+: :+: #
|
||||||
|
# +:+ +:+ +:+ #
|
||||||
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
|
# +#+#+#+#+#+ +#+ #
|
||||||
|
# Created: 2026/06/14 19:22:40 by tomoron #+# #+# #
|
||||||
|
# Updated: 2026/06/14 19:32:07 by tomoron ### ########.fr #
|
||||||
|
# #
|
||||||
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
{pkgs, ...}:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.neovim = {
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
viAlias = true;
|
||||||
|
vimAlias = true;
|
||||||
|
|
||||||
|
withPython3 = false;
|
||||||
|
withRuby = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
ripgrep
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.neovim.initLua= ''
|
||||||
|
local cmp = require'cmp'
|
||||||
|
|
||||||
|
cmp.setup({
|
||||||
|
snippet = {
|
||||||
|
expand = function(args)
|
||||||
|
vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users.
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
window = {
|
||||||
|
completion = cmp.config.window.bordered(),
|
||||||
|
documentation = cmp.config.window.bordered(),
|
||||||
|
},
|
||||||
|
|
||||||
|
mapping = cmp.mapping.preset.insert({
|
||||||
|
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||||
|
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||||
|
['<C-Space>'] = cmp.mapping.complete(),
|
||||||
|
['<C-e>'] = cmp.mapping.abort(),
|
||||||
|
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
||||||
|
}),
|
||||||
|
|
||||||
|
sources = cmp.config.sources({
|
||||||
|
{ name = 'nvim_lsp' },
|
||||||
|
{ name = 'vsnip' },
|
||||||
|
}, {
|
||||||
|
{ name = 'buffer' },
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
cmp.setup.cmdline({ '/', '?' }, {
|
||||||
|
mapping = cmp.mapping.preset.cmdline(),
|
||||||
|
sources = {
|
||||||
|
{ name = 'buffer' }
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
cmp.setup.cmdline(':', {
|
||||||
|
mapping = cmp.mapping.preset.cmdline(),
|
||||||
|
sources = cmp.config.sources({
|
||||||
|
{ name = 'path' }
|
||||||
|
}, {
|
||||||
|
{ name = 'cmdline' }
|
||||||
|
}),
|
||||||
|
matching = { disallow_symbol_nonprefix_matching = false }
|
||||||
|
})
|
||||||
|
|
||||||
|
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||||
|
|
||||||
|
local _99 = require("99")
|
||||||
|
|
||||||
|
local cwd = vim.uv.cwd()
|
||||||
|
local basename = vim.fs.basename(cwd)
|
||||||
|
_99.setup({
|
||||||
|
provider = _99.Providers.OpenCodeProvider,
|
||||||
|
model = "ollama/gemma4:26b",
|
||||||
|
logger = {
|
||||||
|
level = _99.DEBUG,
|
||||||
|
path = "/home/tom/99logs/" .. basename .. ".99.debug",
|
||||||
|
print_on_error = true,
|
||||||
|
},
|
||||||
|
tmp_dir = "./tmp",
|
||||||
|
|
||||||
|
--- Completions: #rules and @files in the prompt buffer
|
||||||
|
completion = {
|
||||||
|
--- Configure @file completion (all fields optional, sensible defaults)
|
||||||
|
files = {
|
||||||
|
-- enabled = true,
|
||||||
|
-- max_file_size = 102400, -- bytes, skip files larger than this
|
||||||
|
-- max_files = 5000, -- cap on total discovered files
|
||||||
|
-- exclude = { ".env", ".env.*", "node_modules", ".git", ... },
|
||||||
|
},
|
||||||
|
--- File Discovery:
|
||||||
|
|
||||||
|
source = "cmp", -- "native" (default), "cmp", or "blink"
|
||||||
|
},
|
||||||
|
|
||||||
|
md_files = {
|
||||||
|
-- "AGENT.md",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.keymap.set("v", "<leader>9v", function()
|
||||||
|
_99.visual()
|
||||||
|
end)
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>9x", function()
|
||||||
|
_99.stop_all_requests()
|
||||||
|
end)
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>9s", function()
|
||||||
|
_99.search()
|
||||||
|
end)
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>9m", function()
|
||||||
|
require("99.extensions.telescope").select_model()
|
||||||
|
end)
|
||||||
|
'';
|
||||||
|
|
||||||
|
programs.neovim.extraConfig = ''
|
||||||
|
set number
|
||||||
|
set ai
|
||||||
|
autocmd BufWinLeave *.* mkview
|
||||||
|
autocmd BufWinEnter *.* silent! loadview
|
||||||
|
set tabstop=4
|
||||||
|
set scrolloff=10
|
||||||
|
set smartindent
|
||||||
|
set shiftwidth=4
|
||||||
|
map <silent> <C-N> :bnext<CR>
|
||||||
|
map <silent> <C-P> :bprevious<CR>
|
||||||
|
nmap <silent> <c-k> :wincmd k<CR>
|
||||||
|
nmap <silent> <c-j> :wincmd j<CR>
|
||||||
|
nmap <silent> <c-h> :wincmd h<CR>
|
||||||
|
nmap <silent> <c-l> :wincmd l<CR>
|
||||||
|
set hidden
|
||||||
|
set path +=**
|
||||||
|
set wildmenu
|
||||||
|
set wildignore+=**/node_modules/**
|
||||||
|
|
||||||
|
let mapleader=";"
|
||||||
|
|
||||||
|
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
|
||||||
|
\| PlugInstall --sync
|
||||||
|
\| endif
|
||||||
|
|
||||||
|
call plug#begin('~/.config/nvim/plugged')
|
||||||
|
Plug 'bling/vim-bufferline'
|
||||||
|
Plug 'nvim-lua/plenary.nvim'
|
||||||
|
Plug 'nvim-telescope/telescope.nvim'
|
||||||
|
Plug 'andweeb/presence.nvim'
|
||||||
|
Plug 'neovim/nvim-lspconfig'
|
||||||
|
Plug 'bluz71/vim-nightfly-colors'
|
||||||
|
Plug 'catppuccin/nvim', { 'as': 'catppuccin' }
|
||||||
|
Plug 'tikhomirov/vim-glsl'
|
||||||
|
Plug 'lambdalisue/nerdfont.vim'
|
||||||
|
Plug 'lambdalisue/glyph-palette.vim'
|
||||||
|
Plug 'lambdalisue/fern-renderer-nerdfont.vim'
|
||||||
|
Plug 'lambdalisue/fern-git-status.vim'
|
||||||
|
Plug 'lambdalisue/fern.vim'
|
||||||
|
Plug 'hrsh7th/nvim-cmp'
|
||||||
|
Plug 'ThePrimeagen/99'
|
||||||
|
Plug 'hrsh7th/cmp-nvim-lsp'
|
||||||
|
Plug 'hrsh7th/cmp-buffer'
|
||||||
|
Plug 'hrsh7th/cmp-path'
|
||||||
|
Plug 'hrsh7th/cmp-cmdline'
|
||||||
|
Plug 'hrsh7th/nvim-cmp'
|
||||||
|
|
||||||
|
Plug 'hrsh7th/cmp-vsnip'
|
||||||
|
Plug 'hrsh7th/vim-vsnip'
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
colorscheme catppuccin-mocha
|
||||||
|
|
||||||
|
set signcolumn=auto
|
||||||
|
|
||||||
|
nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
||||||
|
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
||||||
|
nnoremap <leader>fb <cmd>Telescope buffers<cr>
|
||||||
|
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
|
||||||
|
nnoremap <leader>fi <cmd>Fern %:h<cr>
|
||||||
|
|
||||||
|
let g:user42 = 'tomoron'
|
||||||
|
let g:mail42 = 'tomoron@student.42angouleme.fr'
|
||||||
|
let g:fern#renderer = "nerdfont"
|
||||||
|
'';
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
#install plug.vim
|
||||||
|
".local/share/nvim/site/autoload/plug.vim".source = "${fetchGit {
|
||||||
|
url = "https://github.com/junegunn/vim-plug";
|
||||||
|
rev = "d80f495fabff8446972b8695ba251ca636a047b0";
|
||||||
|
ref = "master";
|
||||||
|
}}/plug.vim";
|
||||||
|
|
||||||
|
#install stdheader 42
|
||||||
|
".config/nvim/plugin/stdheader.vim".source = "${fetchGit {
|
||||||
|
url = "https://github.com/42Paris/42header";
|
||||||
|
rev = "e6e6b191871545e0d43f1aad817070bc806b8fa7";
|
||||||
|
ref = "master";
|
||||||
|
}}/plugin/stdheader.vim";
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -6,7 +6,7 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/02/09 22:01:56 by tomoron #+# #+# #
|
# Created: 2025/02/09 22:01:56 by tomoron #+# #+# #
|
||||||
# Updated: 2025/11/04 16:48:12 by tomoron ### ########.fr #
|
# Updated: 2026/06/16 23:07:00 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -14,29 +14,18 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs;[
|
home.packages = with pkgs;[
|
||||||
lrzip
|
|
||||||
pigz
|
pigz
|
||||||
htop
|
fastfetch
|
||||||
gnumake
|
|
||||||
git
|
|
||||||
neofetch
|
|
||||||
clang
|
clang
|
||||||
ninja
|
ninja
|
||||||
gdb
|
gdb
|
||||||
valgrind
|
valgrind
|
||||||
wget
|
|
||||||
cmake
|
cmake
|
||||||
man-pages
|
|
||||||
stress
|
stress
|
||||||
ffmpeg-full
|
|
||||||
ripgrep
|
|
||||||
activate-linux
|
activate-linux
|
||||||
unison
|
|
||||||
brightnessctl
|
brightnessctl
|
||||||
playerctl
|
|
||||||
python3
|
|
||||||
vlc
|
vlc
|
||||||
nix-index
|
|
||||||
yubikey-manager
|
yubikey-manager
|
||||||
bibata-cursors
|
bibata-cursors
|
||||||
libcaca
|
libcaca
|
||||||
@ -44,7 +33,13 @@
|
|||||||
nerd-fonts.iosevka
|
nerd-fonts.iosevka
|
||||||
compiledb
|
compiledb
|
||||||
yubikey-personalization
|
yubikey-personalization
|
||||||
sops
|
|
||||||
libreoffice
|
libreoffice
|
||||||
|
doxygen
|
||||||
|
qimgv
|
||||||
|
acpi
|
||||||
|
|
||||||
|
discord
|
||||||
|
google-chrome
|
||||||
|
localsend
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@ -5,7 +5,7 @@
|
|||||||
programs.rclone.remotes.nextcloud = {
|
programs.rclone.remotes.nextcloud = {
|
||||||
config = {
|
config = {
|
||||||
type = "webdav";
|
type = "webdav";
|
||||||
url = "https://nc.tmoron.fr/remote.php/dav/files/tom";
|
url = "https://dnc.tmoron.fr/remote.php/dav/files/tom";
|
||||||
vendor = "nextcloud";
|
vendor = "nextcloud";
|
||||||
user = "tom";
|
user = "tom";
|
||||||
};
|
};
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
theme = "rounded-nord-dark";
|
theme = "rounded-nord-dark";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".local/share/rofi/themes".source = "${builtins.fetchGit {
|
home.file.".local/share/rofi/themes".source = "${fetchGit {
|
||||||
url = "https://github.com/newmanls/rofi-themes-collection";
|
url = "https://github.com/newmanls/rofi-themes-collection";
|
||||||
rev = "c8239a45edced3502894e1716a8b661fdea8f1c9";
|
rev = "c8239a45edced3502894e1716a8b661fdea8f1c9";
|
||||||
ref = "master";
|
ref = "master";
|
||||||
|
|||||||
@ -1,20 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
home.shell.enableBashIntegration = true;
|
|
||||||
home.shellAliases = {
|
|
||||||
ls= "ls --color=auto";
|
|
||||||
grep = "grep --color=auto";
|
|
||||||
vim = "nvim";
|
|
||||||
vi = "nvim";
|
|
||||||
hl = "Hyprland";
|
|
||||||
clr = "clear";
|
|
||||||
noidle = "systemctl --user stop hypridle";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.bash = {
|
|
||||||
enable = true;
|
|
||||||
historyControl = ["ignoreboth"];
|
|
||||||
historyIgnore = [ "ls" "cd" "exit" ];
|
|
||||||
shellOptions = [ "cdspell" "autocd"];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
58
homeConfigs/global/vim.nix
Normal file
58
homeConfigs/global/vim.nix
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
clang-tools
|
||||||
|
nixd
|
||||||
|
nodejs_24
|
||||||
|
glsl_analyzer
|
||||||
|
opencode
|
||||||
|
(pkgs.python3.withPackages (ps: with ps; [
|
||||||
|
python-lsp-server
|
||||||
|
pylsp-mypy
|
||||||
|
python-lsp-ruff
|
||||||
|
pycodestyle
|
||||||
|
]))
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.neovim.initLua= ''
|
||||||
|
vim.lsp.enable('clangd')
|
||||||
|
vim.lsp.config('clangd', {
|
||||||
|
capabilities = capabilities
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.lsp.enable('nixd')
|
||||||
|
vim.lsp.config('nixd', {
|
||||||
|
capabilities = capabilities
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.lsp.enable('glsl_analyzer')
|
||||||
|
vim.lsp.config('glsl_analyzer', {
|
||||||
|
capabilities = capabilities
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.lsp.enable('pylsp')
|
||||||
|
vim.lsp.config('pylsp', {
|
||||||
|
capabilities = capabilities
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.lsp.enable('rust_analyzer')
|
||||||
|
vim.lsp.config('rust_analyzer', {
|
||||||
|
capabilities = capabilities,
|
||||||
|
settings = {
|
||||||
|
["rust-analyzer"] = {
|
||||||
|
cargo = {
|
||||||
|
features = "all"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.diagnostic.config({
|
||||||
|
virtual_lines = {
|
||||||
|
current_line = true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
||||||
27
homeConfigs/global/wayland/hypridle.nix
Normal file
27
homeConfigs/global/wayland/hypridle.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.shellAliases.noidle = "systemctl --user stop hypridle";
|
||||||
|
services.hypridle = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
general.lock_cmd = "hyprlock";
|
||||||
|
general.before_sleep_cmd = "loginctl lock-session";
|
||||||
|
listener = [
|
||||||
|
{
|
||||||
|
timeout = 300;
|
||||||
|
on-timeout = "brightnessctl -s set 0";
|
||||||
|
on-resume = "brightnessctl -r";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
timeout = 300;
|
||||||
|
on-timeout = "loginctl lock-session";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
timeout = 1800;
|
||||||
|
on-timeout = "systemctl suspend";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
177
homeConfigs/global/wayland/hyprland.nix
Normal file
177
homeConfigs/global/wayland/hyprland.nix
Normal file
@ -0,0 +1,177 @@
|
|||||||
|
{lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
wayland.windowManager.hyprland.systemd.variables = [ "--all" ];
|
||||||
|
|
||||||
|
programs.hyprshot.enable = true;
|
||||||
|
catppuccin.hyprland.enable = false;
|
||||||
|
|
||||||
|
home.shellAliases.hl = "Hyprland";
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland.enable = true;
|
||||||
|
wayland.windowManager.hyprland.configType = "hyprlang";
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
"$mainMod" = "SUPER";
|
||||||
|
bind = [
|
||||||
|
" , Print, exec, hyprshot -m region -o ~/screenshots -f $(date +%Y-%m-%d_%H-%M-%S).png"
|
||||||
|
" SHIFT, Print, exec, hyprshot -m output -m active -o ~/screenshots -f $(date +%Y-%m-%d_%H-%M-%S).png"
|
||||||
|
"$mainMod, Return, exec, alacritty"
|
||||||
|
"CTRL_ALT, Q, killactive,"
|
||||||
|
"CTRL_ALT_SHIFT, Q, forcekillactive,"
|
||||||
|
"SUPER_ALT, Q, exit,"
|
||||||
|
"$mainMod, S, togglefloating,"
|
||||||
|
"$mainMod, I, pin,"
|
||||||
|
"$mainMod, D, exec, ${lib.getExe pkgs.rofi} -show drun -show-icons"
|
||||||
|
"$mainMod SHIFT, D, exec, ${lib.getExe pkgs.rofi} -show run -show-icons"
|
||||||
|
"$mainMod, M, fullscreen, 1"
|
||||||
|
"$mainMod, F, fullscreen, 0"
|
||||||
|
|
||||||
|
# Move focus
|
||||||
|
"$mainMod, h, movefocus, l"
|
||||||
|
"$mainMod, l, movefocus, r"
|
||||||
|
"$mainMod, k, movefocus, u"
|
||||||
|
"$mainMod, j, movefocus, d"
|
||||||
|
|
||||||
|
#swap windows
|
||||||
|
"$mainMod SHIFT, h, swapwindow, l"
|
||||||
|
"$mainMod SHIFT, l, swapwindow, r"
|
||||||
|
"$mainMod SHIFT, k, swapwindow, u"
|
||||||
|
"$mainMod SHIFT, j, swapwindow, d"
|
||||||
|
|
||||||
|
# Switch workspaces with mainMod + [0-9]
|
||||||
|
"$mainMod, 1, workspace, 1"
|
||||||
|
"$mainMod, 2, workspace, 2"
|
||||||
|
"$mainMod, 3, workspace, 3"
|
||||||
|
"$mainMod, 4, workspace, 4"
|
||||||
|
"$mainMod, 5, workspace, 5"
|
||||||
|
"$mainMod, 6, workspace, 6"
|
||||||
|
"$mainMod, 7, workspace, 7"
|
||||||
|
"$mainMod, 8, workspace, 8"
|
||||||
|
"$mainMod, 9, workspace, 9"
|
||||||
|
"$mainMod, 0, workspace, 10"
|
||||||
|
|
||||||
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||||
|
"$mainMod SHIFT, 1, movetoworkspacesilent, 1"
|
||||||
|
"$mainMod SHIFT, 2, movetoworkspacesilent, 2"
|
||||||
|
"$mainMod SHIFT, 3, movetoworkspacesilent, 3"
|
||||||
|
"$mainMod SHIFT, 4, movetoworkspacesilent, 4"
|
||||||
|
"$mainMod SHIFT, 5, movetoworkspacesilent, 5"
|
||||||
|
"$mainMod SHIFT, 6, movetoworkspacesilent, 6"
|
||||||
|
"$mainMod SHIFT, 7, movetoworkspacesilent, 7"
|
||||||
|
"$mainMod SHIFT, 8, movetoworkspacesilent, 8"
|
||||||
|
"$mainMod SHIFT, 9, movetoworkspacesilent, 9"
|
||||||
|
"$mainMod SHIFT, 0, movetoworkspacesilent, 10"
|
||||||
|
|
||||||
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
|
"$mainMod, mouse_down, workspace, e+1"
|
||||||
|
"$mainMod, mouse_up, workspace, e-1"
|
||||||
|
];
|
||||||
|
|
||||||
|
bindm = [ #bind mouse
|
||||||
|
"$mainMod, mouse:272, movewindow"
|
||||||
|
"$mainMod, mouse:273, resizewindow"
|
||||||
|
];
|
||||||
|
|
||||||
|
bindel = [ #repeat and locked
|
||||||
|
" ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
|
||||||
|
" ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||||
|
" ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||||
|
" ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
||||||
|
" ,XF86MonBrightnessUp, exec, brightnessctl s 10%+"
|
||||||
|
" ,XF86MonBrightnessDown, exec, brightnessctl s 10%-"
|
||||||
|
" ,XF86KbdBrightnessUp, exec, asusctl -n"
|
||||||
|
" ,XF86KbdBrightnessDown, exec, asusctl -p"
|
||||||
|
];
|
||||||
|
|
||||||
|
bindl = [ #repeat
|
||||||
|
" , XF86AudioNext, exec, ${lib.getExe pkgs.playerctl} next"
|
||||||
|
" , XF86AudioPrev, exec, ${lib.getExe pkgs.playerctl} previous"
|
||||||
|
" , XF86AudioPause, exec, ${lib.getExe pkgs.playerctl} play-pause"
|
||||||
|
" , XF86AudioPlay, exec, ${lib.getExe pkgs.playerctl} play-pause"
|
||||||
|
"$mainMod, n, exec, ${lib.getExe pkgs.playerctl} next"
|
||||||
|
"$mainMod, p, exec, ${lib.getExe pkgs.playerctl} previous"
|
||||||
|
"$mainMod, o, exec, ${lib.getExe pkgs.playerctl} play-pause"
|
||||||
|
];
|
||||||
|
|
||||||
|
windowrule = [
|
||||||
|
"match:class (pinentry-)(.*), stay_focused on"
|
||||||
|
];
|
||||||
|
|
||||||
|
input = {
|
||||||
|
kb_layout = "fr";
|
||||||
|
kb_variant = "us";
|
||||||
|
follow_mouse = 2;
|
||||||
|
kb_options = "caps:none";
|
||||||
|
touchpad.natural_scroll = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
misc = {
|
||||||
|
force_default_wallpaper = 1;
|
||||||
|
disable_hyprland_logo = true;
|
||||||
|
mouse_move_focuses_monitor = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
dwindle = {
|
||||||
|
force_split = 2;
|
||||||
|
};
|
||||||
|
|
||||||
|
animations = {
|
||||||
|
enabled = true;
|
||||||
|
|
||||||
|
bezier = [
|
||||||
|
"easeInOut, 0.77, 0, 0.175, 1"
|
||||||
|
"easeOut, 0.24, 0.66, 0.04, 1"
|
||||||
|
];
|
||||||
|
|
||||||
|
animation = [
|
||||||
|
"windows, 1, 2, easeInOut"
|
||||||
|
"windowsIn, 1, 2, easeInOut, slide"
|
||||||
|
"windowsOut, 1, 2, easeInOut, slide"
|
||||||
|
"fade, 1, 2, easeInOut"
|
||||||
|
"workspaces, 1, 2, easeOut"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
decoration = {
|
||||||
|
rounding = 10;
|
||||||
|
|
||||||
|
shadow = {
|
||||||
|
enabled = true;
|
||||||
|
range = 4;
|
||||||
|
render_power = 3;
|
||||||
|
color = "rgba(1a1a1aee)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
general = {
|
||||||
|
gaps_in = 2;
|
||||||
|
gaps_out = 5;
|
||||||
|
border_size = 1;
|
||||||
|
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
||||||
|
"col.inactive_border" = "rgba(595959aa)";
|
||||||
|
resize_on_border = false;
|
||||||
|
allow_tearing = false;
|
||||||
|
layout = "dwindle";
|
||||||
|
};
|
||||||
|
|
||||||
|
layerrule = {
|
||||||
|
name = "no_anim_for_selection";
|
||||||
|
no_anim = "on";
|
||||||
|
"match:namespace" = "selection";
|
||||||
|
};
|
||||||
|
|
||||||
|
cursor.no_warps = true;
|
||||||
|
|
||||||
|
env = [
|
||||||
|
"HYPRCURSOR_SIZE,17"
|
||||||
|
"HYPRCURSOR_THEME,bibata-modern-classic"
|
||||||
|
];
|
||||||
|
|
||||||
|
exec-once = [
|
||||||
|
"${lib.getExe pkgs.swaybg} -i ~/.config/wallpaper.png&"
|
||||||
|
"(sleep 2;${lib.getExe pkgs.activate-linux})&"
|
||||||
|
"waybar&"
|
||||||
|
"alacritty&"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
32
homeConfigs/global/wayland/hyprlock.nix
Normal file
32
homeConfigs/global/wayland/hyprlock.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.hyprlock.enable = true;
|
||||||
|
|
||||||
|
catppuccin.hyprlock.enable = false;
|
||||||
|
|
||||||
|
programs.hyprlock.settings = {
|
||||||
|
general = {
|
||||||
|
no_fade_out = true;
|
||||||
|
ignore_empty_input = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
background = {
|
||||||
|
monitor = "";
|
||||||
|
path = "~/.config/lock_screen.jpg";
|
||||||
|
};
|
||||||
|
|
||||||
|
input-field = {
|
||||||
|
monitor = "";
|
||||||
|
size = "300, 50";
|
||||||
|
dot_size = "0.2";
|
||||||
|
dots_fade_time = 100;
|
||||||
|
inner_color = "rgb(139,89,100)";
|
||||||
|
outer_color = "rgb(139,89,100)";
|
||||||
|
outline_thickness = 1;
|
||||||
|
|
||||||
|
fail_transition = "300";
|
||||||
|
fail_text = "learn to write, idiot";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
24
homeConfigs/global/wayland/logout.nix
Normal file
24
homeConfigs/global/wayland/logout.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.wleave.enable = true;
|
||||||
|
programs.wleave.settings.buttons= [
|
||||||
|
{
|
||||||
|
action = "echo systemctl poweroff";
|
||||||
|
keybind = "y";
|
||||||
|
label = "shutdown";
|
||||||
|
text = "sync and shutdown";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
action = "echo systemctl soft-reboot";
|
||||||
|
keybind = "s";
|
||||||
|
label = "reboot";
|
||||||
|
text = "soft reboot2";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
action = "echo \"touch ~/.nosync && systemctl poweroff\"";
|
||||||
|
keybind = "n";
|
||||||
|
label = "shutdown";
|
||||||
|
text = "shutdown without syncing";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
10
homeConfigs/global/wayland/packages.nix
Normal file
10
homeConfigs/global/wayland/packages.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
grim
|
||||||
|
slurp
|
||||||
|
wl-clipboard
|
||||||
|
swaybg
|
||||||
|
];
|
||||||
|
}
|
||||||
19
homeConfigs/global/wayland/waybar/battery.nix
Normal file
19
homeConfigs/global/wayland/waybar/battery.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.waybar.settings.mainBar = {
|
||||||
|
battery = {
|
||||||
|
bat = "BAT0";
|
||||||
|
full-at = 79;
|
||||||
|
states = {
|
||||||
|
good = 20;
|
||||||
|
critical = 15;
|
||||||
|
};
|
||||||
|
format-time = " {H}:{m}";
|
||||||
|
format-discharging = "{icon} {capacity}%{time}";
|
||||||
|
format-charging = " {capacity}%{time}";
|
||||||
|
format-plugged = "";
|
||||||
|
format-icons = [" " " " " " " " " "];
|
||||||
|
interval = 10;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
10
homeConfigs/global/wayland/waybar/clock.nix
Normal file
10
homeConfigs/global/wayland/waybar/clock.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.waybar.settings.mainBar = {
|
||||||
|
clock = {
|
||||||
|
interval = 1;
|
||||||
|
format-alt = "{:%Y-%m-%d}";
|
||||||
|
format = "{:%H:%M:%S}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
15
homeConfigs/global/wayland/waybar/cpu.nix
Normal file
15
homeConfigs/global/wayland/waybar/cpu.nix
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.waybar.settings.mainBar = {
|
||||||
|
cpu = {
|
||||||
|
format = " {usage}%";
|
||||||
|
format-low = "";
|
||||||
|
states = {
|
||||||
|
low = 0;
|
||||||
|
working = 30;
|
||||||
|
high = 80;
|
||||||
|
};
|
||||||
|
interval = 5;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
12
homeConfigs/global/wayland/waybar/disk.nix
Normal file
12
homeConfigs/global/wayland/waybar/disk.nix
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.waybar.settings.mainBar = {
|
||||||
|
disk = {
|
||||||
|
format-low ="";
|
||||||
|
format = " {percentage_used}%";
|
||||||
|
states.low = 0;
|
||||||
|
states.warning = 70;
|
||||||
|
states.high= 90;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
61
homeConfigs/global/wayland/waybar/global_style.nix
Normal file
61
homeConfigs/global/wayland/waybar/global_style.nix
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.waybar.style = ''
|
||||||
|
* {
|
||||||
|
font-family: "Iosevka Nerd Font";
|
||||||
|
font-size: 14px;
|
||||||
|
background-color: transparent;
|
||||||
|
color: #cdd6f4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modules-right, #window {
|
||||||
|
border: 1px solid #444444;
|
||||||
|
background-color: #1e1e2e;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
padding-top: 3px;
|
||||||
|
padding-bottom: 3px;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modules-right .module {
|
||||||
|
margin-left: 4px;
|
||||||
|
margin-right: 4px;
|
||||||
|
background-color: rgba(127, 132, 156, 0.3);
|
||||||
|
padding: 1px 6px;
|
||||||
|
border-radius: 5px;
|
||||||
|
|
||||||
|
transition: background-color 200ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes red_blink {
|
||||||
|
from { background-color: rgba(127, 132, 156, 0.6); }
|
||||||
|
to { background-color: rgba(193,89,118, 0.5); }
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-separator {
|
||||||
|
background-color: transparent;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px
|
||||||
|
}
|
||||||
|
|
||||||
|
#network, #clock {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network.disconnected {
|
||||||
|
color: #f53c3c;
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.module.warning {
|
||||||
|
background-color: rgba(249, 226, 175, 0.4);
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.module.high, .module.critical {
|
||||||
|
background-color: rgba(193,89,118, 0.5);
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
}
|
||||||
16
homeConfigs/global/wayland/waybar/memory.nix
Normal file
16
homeConfigs/global/wayland/waybar/memory.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.waybar.settings.mainBar = {
|
||||||
|
memory = {
|
||||||
|
format = " {}%";
|
||||||
|
format-low = "";
|
||||||
|
interval = 5;
|
||||||
|
states = {
|
||||||
|
low = 0;
|
||||||
|
show = 50;
|
||||||
|
elevated = 80;
|
||||||
|
critical = 95;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
12
homeConfigs/global/wayland/waybar/music.nix
Normal file
12
homeConfigs/global/wayland/waybar/music.nix
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{lib, pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.waybar.settings.mainBar = {
|
||||||
|
"custom/music" = {
|
||||||
|
exec-if = "${lib.getExe pkgs.playerctl} metadata 2>&1 >/dev/null";
|
||||||
|
exec = "${lib.getExe pkgs.playerctl} metadata --format ' {{ artist }} - {{title}}'";
|
||||||
|
interval = 1;
|
||||||
|
interval-if = 5;
|
||||||
|
max-length = 50;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
12
homeConfigs/global/wayland/waybar/network.nix
Normal file
12
homeConfigs/global/wayland/waybar/network.nix
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.waybar.settings.mainBar = {
|
||||||
|
network = {
|
||||||
|
format-wifi = "{icon} {essid}";
|
||||||
|
format-ethernet = " {ifname}";
|
||||||
|
format-disconnected = " ";
|
||||||
|
format-icons = [" " " " " " " "];
|
||||||
|
max-length = 20;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
25
homeConfigs/global/wayland/waybar/pulseaudio.nix
Normal file
25
homeConfigs/global/wayland/waybar/pulseaudio.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{ lib, pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.waybar.settings.mainBar = {
|
||||||
|
pulseaudio = {
|
||||||
|
format = "{icon}{volume}%";
|
||||||
|
format-bluetooth = " {icon} {volume}%";
|
||||||
|
format-muted = "";
|
||||||
|
format-icons = {
|
||||||
|
headphones = " ";
|
||||||
|
handsfree = " ";
|
||||||
|
headset = " ";
|
||||||
|
phone = " ";
|
||||||
|
portable = " ";
|
||||||
|
car = " ";
|
||||||
|
default = [" " " " " "];
|
||||||
|
};
|
||||||
|
on-click = "${lib.getExe pkgs.pavucontrol}";
|
||||||
|
states = {
|
||||||
|
low = 79;
|
||||||
|
warning = 99;
|
||||||
|
high = 100000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
15
homeConfigs/global/wayland/waybar/temperature.nix
Normal file
15
homeConfigs/global/wayland/waybar/temperature.nix
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
programs.waybar.settings.mainBar = {
|
||||||
|
temperature = {
|
||||||
|
thermal-zone = lib.mkDefault 0;
|
||||||
|
critical-threshold = lib.mkDefault 85;
|
||||||
|
warning-threshold = lib.mkDefault 60;
|
||||||
|
interval = 5;
|
||||||
|
format = "";
|
||||||
|
format-warning ="{icon} {temperatureC}°C";
|
||||||
|
format-critical ="{icon} {temperatureC}°C";
|
||||||
|
format-icons = ["" "" "" "" ""];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
35
homeConfigs/global/wayland/waybar/waybar.nix
Normal file
35
homeConfigs/global/wayland/waybar/waybar.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.waybar.enable = true;
|
||||||
|
programs.waybar.settings.mainBar = {
|
||||||
|
layer = "top";
|
||||||
|
position ="top";
|
||||||
|
height = 24;
|
||||||
|
margin-left = 5;
|
||||||
|
margin-right = 5;
|
||||||
|
modules-left = ["hyprland/workspaces" "custom/music"];
|
||||||
|
modules-center = ["hyprland/window"];
|
||||||
|
modules-right = [
|
||||||
|
"disk"
|
||||||
|
"pulseaudio"
|
||||||
|
"cpu"
|
||||||
|
"temperature"
|
||||||
|
"memory"
|
||||||
|
"battery"
|
||||||
|
|
||||||
|
"network"
|
||||||
|
"custom/separator"
|
||||||
|
"clock"
|
||||||
|
];
|
||||||
|
|
||||||
|
"hyprland/window" = {
|
||||||
|
max-length = 50;
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/separator" = {
|
||||||
|
format = "|";
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
42
homeConfigs/global/wayland/waybar/workspaces.nix
Normal file
42
homeConfigs/global/wayland/waybar/workspaces.nix
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.waybar.style = ''
|
||||||
|
#workspaces {
|
||||||
|
border: 1px solid #444444;
|
||||||
|
background-color: #1e1e2e;
|
||||||
|
padding-left: 3px;
|
||||||
|
padding-right: 3px;
|
||||||
|
padding-top: 2px;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
background-color: transparent;
|
||||||
|
padding: 0px 3px;
|
||||||
|
margin: 0px 5px;
|
||||||
|
min-height: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.active {
|
||||||
|
background-color: rgba(127, 132, 156, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.urgent {
|
||||||
|
animation: red_blink 500ms infinite alternate;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar.empty #window {
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
programs.waybar.settings.mainBar = {
|
||||||
|
"hyprland/workspaces" = {
|
||||||
|
disable-scroll = true;
|
||||||
|
all-outputs = false;
|
||||||
|
format = "{id}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -6,7 +6,7 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2024/10/17 18:15:38 by tomoron #+# #+# #
|
# Created: 2024/10/17 18:15:38 by tomoron #+# #+# #
|
||||||
# Updated: 2025/09/24 02:08:41 by tomoron ### ########.fr #
|
# Updated: 2026/06/15 01:53:27 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -16,20 +16,19 @@ username ? "tom",
|
|||||||
homeDir ? "/home/tom",
|
homeDir ? "/home/tom",
|
||||||
isOs ? false,
|
isOs ? false,
|
||||||
configSops ? true,
|
configSops ? true,
|
||||||
|
minimal,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = lib.concatLists [
|
imports = (lib.fileset.toList ./modules)
|
||||||
[ ./packages.nix ]
|
++ (lib.lists.optionals minimal (lib.fileset.toList ./global/minimal))
|
||||||
(lib.fileset.toList ./modules)
|
++ (lib.lists.optionals (!minimal) (lib.fileset.toList ./global));
|
||||||
(lib.fileset.toList ./global)
|
|
||||||
];
|
|
||||||
|
|
||||||
home.username = lib.mkIf (!isOs) "${username}";
|
home.username = lib.mkIf (!isOs) "${username}";
|
||||||
home.homeDirectory = lib.mkIf (!isOs) "${homeDir}";
|
home.homeDirectory = lib.mkIf (!isOs) "${homeDir}";
|
||||||
|
|
||||||
home.stateVersion = "24.05";
|
home.stateVersion = "25.11";
|
||||||
|
|
||||||
sops = lib.mkIf configSops{
|
sops = lib.mkIf configSops{
|
||||||
defaultSopsFile = ../secrets/secrets.yaml;
|
defaultSopsFile = ../secrets/secrets.yaml;
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
mods.game.enable = false;
|
|
||||||
mods.hyprland.enable = false;
|
|
||||||
mods.x11.enable = true;
|
|
||||||
programs.firefox.enable = false;
|
|
||||||
|
|
||||||
services.picom = {
|
services.picom = {
|
||||||
backend = "xrender";
|
backend = "xrender";
|
||||||
settings = {
|
settings = {
|
||||||
@ -1,30 +1,28 @@
|
|||||||
{ ... }:
|
{ lib, pkgs, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
mods.x11.enable = true;
|
programs.waybar.settings.mainBar.temperature.thermal-zone = 2;
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
monitor = [
|
monitor = [
|
||||||
"DP-1, 1280x1024@75.03Hz, -3200x0, auto"
|
"DP-2, 1920x1080@60Hz, -1920x0, auto"
|
||||||
"HDMI-A-1, 1920x1080@60Hz, -1920x0, auto"
|
|
||||||
"HDMI-A-3, 1920x1080@60Hz, 0x0, auto"
|
"HDMI-A-3, 1920x1080@60Hz, 0x0, auto"
|
||||||
"DP-3, 1920x1080@60.00Hz, 1920x0, auto"
|
"DP-3, 1920x1080@60.00Hz, 1920x0, auto"
|
||||||
"DP-4, 1280x1024@75.03Hz, 3840x0, auto"
|
"DP-4, 1280x1024@75.03Hz, 3840x0, auto"
|
||||||
];
|
];
|
||||||
workspace = [
|
workspace = [
|
||||||
"4, monitor:DP-1"
|
"3, monitor:DP-2"
|
||||||
"3, monitor:HDMI-A-1"
|
|
||||||
"1, monitor:HDMI-A-3, default:true"
|
"1, monitor:HDMI-A-3, default:true"
|
||||||
"2, monitor:DP-3"
|
"2, monitor:DP-3"
|
||||||
"5, monitor:DP-4"
|
"4, monitor:DP-4"
|
||||||
];
|
];
|
||||||
env = [
|
env = [
|
||||||
"AQ_DRM_DEVICES,/dev/dri/card1:/dev/dri/card0"
|
"AQ_DRM_DEVICES,/dev/dri/card1:/dev/dri/card2"
|
||||||
"LIBVA_DRIVER_NAME,nvidia"
|
"LIBVA_DRIVER_NAME,nvidia"
|
||||||
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
||||||
];
|
];
|
||||||
|
|
||||||
cursor.no_hardware_cursors = true;
|
cursor.no_hardware_cursors = true;
|
||||||
misc.vrr = 1;
|
misc.vrr = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
mods.hyprland.autoSuspend = false;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{ lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
mods.nonChromium.enable = false;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,14 +5,14 @@
|
|||||||
modules-right = lib.mkBefore ["custom/fans" "custom/dgpu"];
|
modules-right = lib.mkBefore ["custom/fans" "custom/dgpu"];
|
||||||
"custom/dgpu" = {
|
"custom/dgpu" = {
|
||||||
exec-if = "test \"$(supergfxctl -g)\" = \"Hybrid\" || test \"$(supergfxctl -g)\" = \"Vfio\"";
|
exec-if = "test \"$(supergfxctl -g)\" = \"Hybrid\" || test \"$(supergfxctl -g)\" = \"Vfio\"";
|
||||||
exec = "echo \" on |\"";
|
exec = "echo \" on\"";
|
||||||
interval-if = 10;
|
interval-if = 10;
|
||||||
interval = 100;
|
interval = 100;
|
||||||
};
|
};
|
||||||
|
|
||||||
"custom/fans" = {
|
"custom/fans" = {
|
||||||
exec-if = "test \"$(cat /sys/class/hwmon/hwmon6/fan1_input)\" -gt 0 -o \"$(cat /sys/class/hwmon/hwmon6/fan2_input)\" -gt 0";
|
exec-if = "test \"$(cat /sys/class/hwmon/hwmon6/fan1_input)\" -gt 0 -o \"$(cat /sys/class/hwmon/hwmon6/fan2_input)\" -gt 0";
|
||||||
exec = "echo \" \" \"$(cat /sys/class/hwmon/hwmon6/fan1_input).$(cat /sys/class/hwmon/hwmon6/fan2_input) |\"";
|
exec = "echo \" \" \"$(($(cat /sys/class/hwmon/hwmon6/fan1_input) / 100)).$(($(cat /sys/class/hwmon/hwmon6/fan2_input) / 100))\"";
|
||||||
interval = 1;
|
interval = 1;
|
||||||
interval-if = 1;
|
interval-if = 1;
|
||||||
};
|
};
|
||||||
@ -28,7 +28,6 @@
|
|||||||
", XF86Launch4, exec, pkill activate-linux"
|
", XF86Launch4, exec, pkill activate-linux"
|
||||||
];
|
];
|
||||||
monitor= [
|
monitor= [
|
||||||
# "eDP-1, modeline 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync, 0x0, 1"
|
|
||||||
"eDP-1, 1920x1080@120, 0x0, 1"
|
"eDP-1, 1920x1080@120, 0x0, 1"
|
||||||
"HDMI-A-1, 1920x1080@60, auto, auto"
|
"HDMI-A-1, 1920x1080@60, auto, auto"
|
||||||
];
|
];
|
||||||
@ -38,80 +37,7 @@
|
|||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
blender
|
blender
|
||||||
wireshark
|
wireshark
|
||||||
localsend
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# programs.superfile = {
|
services.mpris-proxy.enable = true;
|
||||||
# enable = true;
|
|
||||||
# hotkeys = {
|
|
||||||
# # global
|
|
||||||
# confirm = ["enter" ""];
|
|
||||||
# quit = ["ctrl+c" ""];
|
|
||||||
#
|
|
||||||
# # movement
|
|
||||||
# list_up = ["k" ""];
|
|
||||||
# list_down = ["j" ""];
|
|
||||||
# page_up = ["pgup"""];
|
|
||||||
# page_down = ["pgdown"""];
|
|
||||||
#
|
|
||||||
# # file panel control
|
|
||||||
# create_new_file_panel = ["n" ""];
|
|
||||||
# close_file_panel = ["q" ""];
|
|
||||||
# next_file_panel = ["tab" ""];
|
|
||||||
# previous_file_panel = ["shift+tab" ""];
|
|
||||||
# toggle_file_preview_panel = ["f" ""];
|
|
||||||
# open_sort_options_menu = ["o" ""];
|
|
||||||
# toggle_reverse_sort = ["R" ""];
|
|
||||||
#
|
|
||||||
# # change focus
|
|
||||||
# focus_on_process_bar = ["ctrl+p" ""];
|
|
||||||
# focus_on_sidebar = ["ctrl+s" ""];
|
|
||||||
# focus_on_metadata = ["ctrl+d" ""];
|
|
||||||
#
|
|
||||||
# # create file/directory and rename
|
|
||||||
# file_panel_item_create = ["a" ""];
|
|
||||||
# file_panel_item_rename = ["r" ""];
|
|
||||||
#
|
|
||||||
# # file operations
|
|
||||||
# copy_items = ["y" ""];
|
|
||||||
# cut_items = ["x" ""];
|
|
||||||
# paste_items = ["p" ""];
|
|
||||||
# delete_items = ["d" ""];
|
|
||||||
#
|
|
||||||
# # compress and extract
|
|
||||||
# extract_file = ["ctrl+e" ""];
|
|
||||||
# compress_file = ["ctrl+a" ""];
|
|
||||||
#
|
|
||||||
# # editor
|
|
||||||
# open_file_with_editor = ["e" ""];
|
|
||||||
# open_current_directory_with_editor = ["E" ""];
|
|
||||||
#
|
|
||||||
# # other
|
|
||||||
# pinned_directory = ["P" ""];
|
|
||||||
# toggle_dot_file = ["." ""];
|
|
||||||
# change_panel_mode = ["m" ""];
|
|
||||||
# open_help_menu = ["?" ""];
|
|
||||||
# open_command_line = [":" ""];
|
|
||||||
# copy_path = ["Y" ""];
|
|
||||||
# copy_present_working_directory = ["c" ""];
|
|
||||||
# toggle_footer = ["ctrl+f" ""];
|
|
||||||
#
|
|
||||||
# # Typing hotkeys (can conflict with all hotkeys)
|
|
||||||
# confirm_typing = ["enter" ""];
|
|
||||||
# cancel_typing = ["esc" ""];
|
|
||||||
#
|
|
||||||
# # =================================================================================================
|
|
||||||
# # Normal mode hotkeys (can conflict with other modes cannot conflict with global hotkeys)
|
|
||||||
# parent_directory = ["-" ""];
|
|
||||||
# search_bar = ["/" ""];
|
|
||||||
#
|
|
||||||
# # =================================================================================================
|
|
||||||
# # Select mode hotkeys (can conflict with other modes cannot conflict with global hotkeys)
|
|
||||||
# file_panel_select_mode_items_select_down = ["J" ""];
|
|
||||||
# file_panel_select_mode_items_select_up = ["K" ""];
|
|
||||||
# file_panel_select_all_items = ["A" ""];
|
|
||||||
#
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
mods.bash.goback = false;
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
monitor= [
|
|
||||||
"virt-1, 1920x1080@60, 0x0, 1.0"
|
|
||||||
];
|
|
||||||
|
|
||||||
env = ["WLR_BACKENDS,headless"];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,21 +0,0 @@
|
|||||||
{ lib, config, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
options.mods.alacritty.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "install and config alacritty";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.mods.alacritty.enable {
|
|
||||||
catppuccin.alacritty.enable = true;
|
|
||||||
programs.alacritty = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
# window.opacity = 0.95;
|
|
||||||
env.XTERM = "xterm-256color";
|
|
||||||
font.size = 9;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
{ lib, config, ...}:
|
|
||||||
|
|
||||||
{
|
|
||||||
options.mods.bash.goback = lib.mkOption{
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "go back to last cd when starting bash";
|
|
||||||
};
|
|
||||||
|
|
||||||
config.programs.bash.bashrcExtra = lib.mkIf config.mods.bash.goback ''
|
|
||||||
cd() {
|
|
||||||
builtin cd "$@"
|
|
||||||
echo -n "$PWD" > ~/.last_directory
|
|
||||||
}
|
|
||||||
[ -z "\$${PS1:-}" ] && return
|
|
||||||
|
|
||||||
if [ -f ~/.last_directory ];then
|
|
||||||
echo -n going to
|
|
||||||
cat ~/.last_directory
|
|
||||||
echo
|
|
||||||
builtin cd "$(cat ~/.last_directory)"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@ -1,21 +0,0 @@
|
|||||||
{ config, lib, inputs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
options.mods.firefox.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "install and configure firefox";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.mods.firefox.enable {
|
|
||||||
catppuccin.firefox.enable = true;
|
|
||||||
programs.firefox = {
|
|
||||||
enable = lib.mkDefault true;
|
|
||||||
profiles.default = {
|
|
||||||
extensions.packages = with inputs.firefox-addons.packages."x86_64-linux";
|
|
||||||
[vimium ublock-origin];
|
|
||||||
extensions.force = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
options.mods.game.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "install packages for games (except steam , it's installed systemwide)";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.mods.game.enable {
|
|
||||||
home.packages = with pkgs;[
|
|
||||||
lutris
|
|
||||||
mangohud
|
|
||||||
moonlight-qt
|
|
||||||
prismlauncher
|
|
||||||
|
|
||||||
r2modman
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,31 +0,0 @@
|
|||||||
{ config, lib, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
options.mods.git.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "git configuration";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.mods.git.enable {
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
lfs.enable = true;
|
|
||||||
settings = {
|
|
||||||
user.email = "tomoron@student.42angouleme.fr";
|
|
||||||
user.name = "tomoron";
|
|
||||||
init.defaultBranch="master";
|
|
||||||
pull.rebase = true;
|
|
||||||
push.autoSetupRemote = true;
|
|
||||||
rerere.enabled = true;
|
|
||||||
help.autocorrect = 1;
|
|
||||||
user.signingkey = "251B4BD73683A8DF13D760A868BFAFE31DF313AD";
|
|
||||||
commit.gpgsign = true;
|
|
||||||
aliase = {
|
|
||||||
fuck = "!f() { git reset --hard \"@{upstream}\" && git restore . && git clean -f .; };f";
|
|
||||||
back = "reset HEAD~";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
options.mods.nonChromium.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "all chromium/electron based application can't be built by act-runner, so they can't be in the iso";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.mods.nonChromium.enable {
|
|
||||||
home.packages = with pkgs;[
|
|
||||||
discord
|
|
||||||
google-chrome
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
{ lib, config, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
defPathLst = ["desktop" "42_desktop" "Downloads"];
|
defPathLst = [ "desktop" "42_desktop" ];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.mods.sync = {
|
options.mods.sync = {
|
||||||
@ -19,7 +19,7 @@ in
|
|||||||
|
|
||||||
destFolder = lib.mkOption {
|
destFolder = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "/raid/pc_sync";
|
default = "/raid/crit/pc_sync";
|
||||||
description = "where on the server";
|
description = "where on the server";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -41,15 +41,17 @@ in
|
|||||||
description = "hostname used by unison";
|
description = "hostname used by unison";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
config = lib.mkIf config.mods.sync.enable {
|
||||||
config.home.file.".unison/default.prf" = lib.mkIf config.mods.sync.enable {
|
home.packages = with pkgs;[ unison ];
|
||||||
|
home.file.".unison/default.prf" = {
|
||||||
text = (lib.strings.concatStrings [''
|
text = (lib.strings.concatStrings [''
|
||||||
auto=true
|
auto=true
|
||||||
root=${config.mods.sync.homeFolder}
|
root=${config.mods.sync.homeFolder}
|
||||||
root=ssh://tom@tmoron.fr:1880/${config.mods.sync.destFolder}
|
root=ssh://tom@d.tmoron.fr:1880/${config.mods.sync.destFolder}
|
||||||
''
|
''
|
||||||
(lib.strings.concatMapStrings (x: "\npath=" + x) (( if config.mods.sync.defaultSynced then defPathLst else [] ) ++ config.mods.sync.syncedAdditions ))
|
(lib.strings.concatMapStrings (x: "\npath=" + x) (( if config.mods.sync.defaultSynced then defPathLst else [] ) ++ config.mods.sync.syncedAdditions ))
|
||||||
(if !(isNull config.mods.sync.customHostName) then "\nclientHostName=${config.mods.sync.customHostName}" else "")
|
(if !(isNull config.mods.sync.customHostName) then "\nclientHostName=${config.mods.sync.customHostName}" else "")
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,102 +0,0 @@
|
|||||||
{config, lib, pkgs, ...}:
|
|
||||||
|
|
||||||
{
|
|
||||||
options.mods.vim.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "install and configure vim";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.mods.vim.enable {
|
|
||||||
programs.neovim = {
|
|
||||||
enable = true;
|
|
||||||
defaultEditor = true;
|
|
||||||
viAlias = true;
|
|
||||||
vimAlias = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
clang-tools
|
|
||||||
nixd
|
|
||||||
nodejs_24
|
|
||||||
glsl_analyzer
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.neovim.extraConfig = ''
|
|
||||||
set number
|
|
||||||
set ai
|
|
||||||
autocmd BufWinLeave *.* mkview
|
|
||||||
autocmd BufWinEnter *.* silent! loadview
|
|
||||||
set tabstop=4
|
|
||||||
set scrolloff=10
|
|
||||||
set smartindent
|
|
||||||
set shiftwidth=4
|
|
||||||
map <silent> <C-N> :bnext<CR>
|
|
||||||
map <silent> <C-P> :bprevious<CR>
|
|
||||||
nmap <silent> <c-k> :wincmd k<CR>
|
|
||||||
nmap <silent> <c-j> :wincmd j<CR>
|
|
||||||
nmap <silent> <c-h> :wincmd h<CR>
|
|
||||||
nmap <silent> <c-l> :wincmd l<CR>
|
|
||||||
set hidden
|
|
||||||
set path +=**
|
|
||||||
set wildmenu
|
|
||||||
set wildignore+=**/node_modules/**
|
|
||||||
|
|
||||||
let mapleader=";"
|
|
||||||
|
|
||||||
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
|
|
||||||
\| PlugInstall --sync
|
|
||||||
\| endif
|
|
||||||
|
|
||||||
call plug#begin('~/.config/nvim/plugged')
|
|
||||||
Plug 'bling/vim-bufferline'
|
|
||||||
Plug 'nvim-lua/plenary.nvim'
|
|
||||||
Plug 'nvim-telescope/telescope.nvim'
|
|
||||||
Plug 'andweeb/presence.nvim'
|
|
||||||
Plug 'neovim/nvim-lspconfig'
|
|
||||||
Plug 'bluz71/vim-nightfly-colors'
|
|
||||||
Plug 'catppuccin/nvim', { 'as': 'catppuccin' }
|
|
||||||
Plug 'tikhomirov/vim-glsl'
|
|
||||||
Plug 'lambdalisue/nerdfont.vim'
|
|
||||||
Plug 'lambdalisue/glyph-palette.vim'
|
|
||||||
Plug 'lambdalisue/fern-renderer-nerdfont.vim'
|
|
||||||
Plug 'lambdalisue/fern-git-status.vim'
|
|
||||||
Plug 'lambdalisue/fern.vim'
|
|
||||||
call plug#end()
|
|
||||||
|
|
||||||
colorscheme catppuccin-mocha
|
|
||||||
|
|
||||||
lua require'lspconfig'.clangd.setup{}
|
|
||||||
lua require'lspconfig'.nixd.setup{}
|
|
||||||
lua require'lspconfig'.glsl_analyzer.setup{}
|
|
||||||
set signcolumn=auto
|
|
||||||
|
|
||||||
nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
|
||||||
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
|
||||||
nnoremap <leader>fb <cmd>Telescope buffers<cr>
|
|
||||||
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
|
|
||||||
nnoremap <leader>fi <cmd>Fern %:h<cr>
|
|
||||||
|
|
||||||
let g:user42 = 'tomoron'
|
|
||||||
let g:mail42 = 'tomoron@student.42angouleme.fr'
|
|
||||||
let g:fern#renderer = "nerdfont"
|
|
||||||
'';
|
|
||||||
|
|
||||||
home.file = {
|
|
||||||
#install plug.vim
|
|
||||||
".local/share/nvim/site/autoload/plug.vim".source = "${builtins.fetchGit {
|
|
||||||
url = "https://github.com/junegunn/vim-plug";
|
|
||||||
rev = "d80f495fabff8446972b8695ba251ca636a047b0";
|
|
||||||
ref = "master";
|
|
||||||
}}/plug.vim";
|
|
||||||
|
|
||||||
#install stdheader 42
|
|
||||||
".config/nvim/plugin/stdheader.vim".source = "${builtins.fetchGit {
|
|
||||||
url = "https://github.com/42Paris/42header";
|
|
||||||
rev = "e6e6b191871545e0d43f1aad817070bc806b8fa7";
|
|
||||||
ref = "master";
|
|
||||||
}}/plugin/stdheader.vim";
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
{ lib, config, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
options.mods.hyprland.autoSuspend = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "enable hypridle suspend after 10min";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.mods.hyprland.enable {
|
|
||||||
services.hypridle = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
general.lock_cmd = "hyprlock";
|
|
||||||
general.before_sleep_cmd = "loginctl lock-session";
|
|
||||||
listener = [
|
|
||||||
{
|
|
||||||
timeout = 300;
|
|
||||||
on-timeout = "brightnessctl -s set 0";
|
|
||||||
on-resume = "brightnessctl -r";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
timeout = 300;
|
|
||||||
on-timeout = "loginctl lock-session";
|
|
||||||
}
|
|
||||||
] ++ lib.lists.optional config.mods.hyprland.autoSuspend {
|
|
||||||
timeout = 600;
|
|
||||||
on-timeout = "systemctl suspend";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,188 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
options.mods.hyprland.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "install and configure hyprland and others";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.mods.hyprland.enable {
|
|
||||||
wayland.windowManager.hyprland.systemd.variables = [ "--all" ];
|
|
||||||
|
|
||||||
programs.hyprshot.enable = true;
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland.enable = true;
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
"$mainMod" = "SUPER";
|
|
||||||
bind = [
|
|
||||||
" , Print, exec, hyprshot -m region -o ~/screenshots -f $(date +%Y-%m-%d_%H-%M-%S).png"
|
|
||||||
" SHIFT, Print, exec, hyprshot -m output -m active -o ~/screenshots -f $(date +%Y-%m-%d_%H-%M-%S).png"
|
|
||||||
"$mainMod, Return, exec, alacritty"
|
|
||||||
"CTRL_ALT, Q, killactive,"
|
|
||||||
"CTRL_ALT_SHIFT, Q, forcekillactive,"
|
|
||||||
"SUPER_ALT, Q, exit,"
|
|
||||||
"$mainMod, S, togglefloating,"
|
|
||||||
"$mainMod, I, pin,"
|
|
||||||
"$mainMod, D, exec, rofi -show drun -show-icons"
|
|
||||||
"$mainMod SHIFT, D, exec, rofi -show run -show-icons"
|
|
||||||
"$mainMod, M, fullscreen, 1"
|
|
||||||
"$mainMod, F, fullscreen, 0"
|
|
||||||
|
|
||||||
# Move focus
|
|
||||||
"$mainMod, h, movefocus, l"
|
|
||||||
"$mainMod, l, movefocus, r"
|
|
||||||
"$mainMod, k, movefocus, u"
|
|
||||||
"$mainMod, j, movefocus, d"
|
|
||||||
|
|
||||||
#swap windows
|
|
||||||
"$mainMod SHIFT, h, swapwindow, l"
|
|
||||||
"$mainMod SHIFT, l, swapwindow, r"
|
|
||||||
"$mainMod SHIFT, k, swapwindow, u"
|
|
||||||
"$mainMod SHIFT, j, swapwindow, d"
|
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
|
||||||
"$mainMod, 1, workspace, 1"
|
|
||||||
"$mainMod, 2, workspace, 2"
|
|
||||||
"$mainMod, 3, workspace, 3"
|
|
||||||
"$mainMod, 4, workspace, 4"
|
|
||||||
"$mainMod, 5, workspace, 5"
|
|
||||||
"$mainMod, 6, workspace, 6"
|
|
||||||
"$mainMod, 7, workspace, 7"
|
|
||||||
"$mainMod, 8, workspace, 8"
|
|
||||||
"$mainMod, 9, workspace, 9"
|
|
||||||
"$mainMod, 0, workspace, 10"
|
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
"$mainMod SHIFT, 1, movetoworkspacesilent, 1"
|
|
||||||
"$mainMod SHIFT, 2, movetoworkspacesilent, 2"
|
|
||||||
"$mainMod SHIFT, 3, movetoworkspacesilent, 3"
|
|
||||||
"$mainMod SHIFT, 4, movetoworkspacesilent, 4"
|
|
||||||
"$mainMod SHIFT, 5, movetoworkspacesilent, 5"
|
|
||||||
"$mainMod SHIFT, 6, movetoworkspacesilent, 6"
|
|
||||||
"$mainMod SHIFT, 7, movetoworkspacesilent, 7"
|
|
||||||
"$mainMod SHIFT, 8, movetoworkspacesilent, 8"
|
|
||||||
"$mainMod SHIFT, 9, movetoworkspacesilent, 9"
|
|
||||||
"$mainMod SHIFT, 0, movetoworkspacesilent, 10"
|
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
|
||||||
"$mainMod, mouse_down, workspace, e+1"
|
|
||||||
"$mainMod, mouse_up, workspace, e-1"
|
|
||||||
];
|
|
||||||
|
|
||||||
bindm = [ #bind mouse
|
|
||||||
"$mainMod, mouse:272, movewindow"
|
|
||||||
"$mainMod, mouse:273, resizewindow"
|
|
||||||
];
|
|
||||||
|
|
||||||
bindel = [ #repeat and locked
|
|
||||||
" ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
|
|
||||||
" ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
|
||||||
" ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
|
||||||
" ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
|
||||||
" ,XF86MonBrightnessUp, exec, brightnessctl s 10%+"
|
|
||||||
" ,XF86MonBrightnessDown, exec, brightnessctl s 10%-"
|
|
||||||
" ,XF86KbdBrightnessUp, exec, asusctl -n"
|
|
||||||
" ,XF86KbdBrightnessDown, exec, asusctl -p"
|
|
||||||
];
|
|
||||||
|
|
||||||
bindl = [ #repeat
|
|
||||||
" , XF86AudioNext, exec, playerctl next"
|
|
||||||
" , XF86AudioPrev, exec, playerctl previous"
|
|
||||||
" , XF86AudioPause, exec, playerctl play-pause"
|
|
||||||
" , XF86AudioPlay, exec, playerctl play-pause"
|
|
||||||
"$mainMod, n, exec, playerctl next"
|
|
||||||
"$mainMod, p, exec, playerctl previous"
|
|
||||||
"$mainMod, o, exec, playerctl play-pause"
|
|
||||||
];
|
|
||||||
|
|
||||||
windowrulev2 = [
|
|
||||||
#ignore maximize requests
|
|
||||||
"suppressevent maximize, class:.*"
|
|
||||||
#fix dragging issues with xwayland
|
|
||||||
"nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0"
|
|
||||||
];
|
|
||||||
|
|
||||||
input = {
|
|
||||||
kb_layout = "fr";
|
|
||||||
kb_variant = "us";
|
|
||||||
follow_mouse = 2;
|
|
||||||
kb_options = "caps:none";
|
|
||||||
touchpad.natural_scroll = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
misc = {
|
|
||||||
force_default_wallpaper = 1;
|
|
||||||
disable_hyprland_logo = true;
|
|
||||||
mouse_move_focuses_monitor = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
dwindle = {
|
|
||||||
pseudotile = true;
|
|
||||||
force_split = 2;
|
|
||||||
};
|
|
||||||
|
|
||||||
animations = {
|
|
||||||
enabled = true;
|
|
||||||
|
|
||||||
bezier = [
|
|
||||||
"easeInOut, 0.77, 0, 0.175, 1"
|
|
||||||
"easeOut, 0.24, 0.66, 0.04, 1"
|
|
||||||
];
|
|
||||||
|
|
||||||
animation = [
|
|
||||||
"windows, 1, 2, easeInOut"
|
|
||||||
"windowsIn, 1, 2, easeInOut, slide"
|
|
||||||
"windowsOut, 1, 2, easeInOut, slide"
|
|
||||||
"fade, 1, 2, easeInOut"
|
|
||||||
"workspaces, 1, 2, easeOut"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
decoration = {
|
|
||||||
rounding = 10;
|
|
||||||
|
|
||||||
shadow = {
|
|
||||||
enabled = true;
|
|
||||||
range = 4;
|
|
||||||
render_power = 3;
|
|
||||||
color = "rgba(1a1a1aee)";
|
|
||||||
};
|
|
||||||
|
|
||||||
#blur = {
|
|
||||||
# enabled = true;
|
|
||||||
# size = 3;
|
|
||||||
# passes = 1;
|
|
||||||
# vibrancy = 0.1696;
|
|
||||||
#};
|
|
||||||
};
|
|
||||||
|
|
||||||
general = {
|
|
||||||
gaps_in = 2;
|
|
||||||
gaps_out = 5;
|
|
||||||
border_size = 1;
|
|
||||||
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
|
||||||
"col.inactive_border" = "rgba(595959aa)";
|
|
||||||
resize_on_border = false;
|
|
||||||
allow_tearing = false;
|
|
||||||
layout = "dwindle";
|
|
||||||
};
|
|
||||||
|
|
||||||
layerrule = "noanim, selection";
|
|
||||||
|
|
||||||
cursor.no_warps = true;
|
|
||||||
|
|
||||||
env = [
|
|
||||||
"HYPRCURSOR_SIZE,17"
|
|
||||||
"HYPRCURSOR_THEME,bibata-modern-classic"
|
|
||||||
];
|
|
||||||
|
|
||||||
exec-once = [
|
|
||||||
"swaybg -i ~/.config/wallpaper.png&"
|
|
||||||
"(sleep 2;activate-linux)&"
|
|
||||||
"waybar&"
|
|
||||||
"alacritty&"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,32 +0,0 @@
|
|||||||
{ lib, config, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
config = lib.mkIf config.mods.hyprland.enable {
|
|
||||||
programs.hyprlock.enable = true;
|
|
||||||
programs.hyprlock.settings = {
|
|
||||||
general = {
|
|
||||||
no_fade_out = true;
|
|
||||||
ignore_empty_input = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
background = {
|
|
||||||
monitor = "";
|
|
||||||
path = "~/.config/pc.jpg";
|
|
||||||
# blur_passes = 1;
|
|
||||||
};
|
|
||||||
|
|
||||||
input-field = {
|
|
||||||
monitor = "";
|
|
||||||
size = "300, 50";
|
|
||||||
dot_size = "0.2";
|
|
||||||
dots_fade_time = 100;
|
|
||||||
inner_color = "rgb(139,89,100)";
|
|
||||||
outer_color = "rgb(139,89,100)";
|
|
||||||
outline_thickness = 1;
|
|
||||||
|
|
||||||
fail_transition = "300";
|
|
||||||
fail_text = "learn to write, idiot";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
{ pkgs, lib, config, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
config = lib.mkIf config.mods.hyprland.enable {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
grim
|
|
||||||
slurp
|
|
||||||
wl-clipboard
|
|
||||||
swaybg
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,163 +0,0 @@
|
|||||||
{ config, lib, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
config = lib.mkIf config.mods.hyprland.enable {
|
|
||||||
programs.waybar.enable = true;
|
|
||||||
programs.waybar.style = ''
|
|
||||||
* {
|
|
||||||
border: none;
|
|
||||||
border-radius: 0;
|
|
||||||
font-family: "Iosevka Nerd Font";
|
|
||||||
font-size: 15px;
|
|
||||||
min-height: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar {
|
|
||||||
background: transparent;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
#window {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button {
|
|
||||||
padding: 0 5px;
|
|
||||||
background: transparent;
|
|
||||||
color: white;
|
|
||||||
border-top: 2px solid transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.focused {
|
|
||||||
color: #c9545d;
|
|
||||||
border-top: 2px solid #c9545d;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.active {
|
|
||||||
color : #88ff88;
|
|
||||||
background-color : rgba(220,255, 220, 0.3)
|
|
||||||
}
|
|
||||||
|
|
||||||
#mode {
|
|
||||||
background: #64727D;
|
|
||||||
border-bottom: 3px solid white;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.disconnected {
|
|
||||||
color: #f53c3c;
|
|
||||||
font-weight:bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
#temperature.critical {
|
|
||||||
color: #ff2222;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.critical {
|
|
||||||
color: #ff2222;
|
|
||||||
}
|
|
||||||
#cpu.high {
|
|
||||||
color: #ff2222;
|
|
||||||
}
|
|
||||||
#disk.high {
|
|
||||||
color: #ff2222;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
|
|
||||||
programs.waybar.settings.mainBar = {
|
|
||||||
layer = "top";
|
|
||||||
position ="top";
|
|
||||||
height = 24;
|
|
||||||
margin-left = 5;
|
|
||||||
margin-right = 5;
|
|
||||||
modules-left = ["hyprland/workspaces" "custom/music"];
|
|
||||||
modules-center = ["hyprland/window"];
|
|
||||||
modules-right = ["disk" "pulseaudio" "network" "custom/pipe" "cpu" "custom/pipe" "temperature" "custom/pipe" "memory" "battery" "clock"];
|
|
||||||
|
|
||||||
"hyprland/workspaces" = {
|
|
||||||
disable-scroll = true;
|
|
||||||
all-outputs = false;
|
|
||||||
format = "{id}";
|
|
||||||
};
|
|
||||||
|
|
||||||
clock = {
|
|
||||||
interval = 1;
|
|
||||||
format-alt = " {:%Y-%m-%d}";
|
|
||||||
format = " {:%H:%M:%S}";
|
|
||||||
};
|
|
||||||
|
|
||||||
cpu = {
|
|
||||||
format = " {usage}% ";
|
|
||||||
states.high = 80;
|
|
||||||
interval = 5;
|
|
||||||
};
|
|
||||||
|
|
||||||
memory = {
|
|
||||||
format = " {}% |";
|
|
||||||
interval = 5;
|
|
||||||
};
|
|
||||||
|
|
||||||
battery = {
|
|
||||||
bat = "BAT0";
|
|
||||||
full-at = 79;
|
|
||||||
states = {
|
|
||||||
good = 20;
|
|
||||||
critical = 15;
|
|
||||||
};
|
|
||||||
format-time = " {H}:{m}";
|
|
||||||
format-discharging = " {icon} {capacity}%{time} |";
|
|
||||||
format-charging = " {capacity}%{time} |";
|
|
||||||
format-plugged = "";
|
|
||||||
format-icons = [" " " " " " " " " "];
|
|
||||||
interval = 10;
|
|
||||||
};
|
|
||||||
|
|
||||||
network = {
|
|
||||||
format-wifi = " {icon} {essid} ";
|
|
||||||
format-ethernet = " {ifname}: {ipaddr}/{cidr} ";
|
|
||||||
format-disconnected = " ⚠ Disconnected ";
|
|
||||||
format-icons =[" " " " " " " "];
|
|
||||||
};
|
|
||||||
|
|
||||||
pulseaudio = {
|
|
||||||
format = " {icon}{volume}% |";
|
|
||||||
format-bluetooth = " {icon} {volume}% |";
|
|
||||||
format-muted = "";
|
|
||||||
format-icons = {
|
|
||||||
headphones = " ";
|
|
||||||
handsfree = " ";
|
|
||||||
headset = " ";
|
|
||||||
phone = " ";
|
|
||||||
portable = " ";
|
|
||||||
car = " ";
|
|
||||||
default = [" " " " " "];
|
|
||||||
};
|
|
||||||
on-click = "pavucontrol";
|
|
||||||
};
|
|
||||||
|
|
||||||
temperature = {
|
|
||||||
thermal-zone = 0;
|
|
||||||
critical-threshold = 80;
|
|
||||||
interval = 5;
|
|
||||||
format =" {icon} {temperatureC}°C ";
|
|
||||||
format-icons = ["" "" "" "" ""];
|
|
||||||
};
|
|
||||||
|
|
||||||
disk = {
|
|
||||||
format =" {percentage_used}% |";
|
|
||||||
states.high = "5";
|
|
||||||
};
|
|
||||||
|
|
||||||
"custom/pipe" = {
|
|
||||||
format = "|";
|
|
||||||
};
|
|
||||||
|
|
||||||
"custom/music" = {
|
|
||||||
exec-if = "playerctl metadata 2>&1 >/dev/null";
|
|
||||||
exec = "playerctl metadata --format ' {{ artist }} - {{title}}'";
|
|
||||||
interval = 1;
|
|
||||||
interval-if = 5;
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -6,11 +6,11 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/02/10 00:32:47 by tomoron #+# #+# #
|
# Created: 2025/02/10 00:32:47 by tomoron #+# #+# #
|
||||||
# Updated: 2025/02/10 01:17:29 by tomoron ### ########.fr #
|
# Updated: 2026/06/16 23:09:20 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
{ lib, config, ... }:
|
{pkgs, lib, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.mods.x11.enable {
|
config = lib.mkIf config.mods.x11.enable {
|
||||||
@ -67,9 +67,9 @@
|
|||||||
"alt + F7" = "brightnessctl s 10-";
|
"alt + F7" = "brightnessctl s 10-";
|
||||||
"alt + F8" = "brightnessctl s 10+";
|
"alt + F8" = "brightnessctl s 10+";
|
||||||
|
|
||||||
"super + shift + o" = "playerctl play-pause";
|
"super + shift + o" = "${lib.getExe pkgs.playerctl} play-pause";
|
||||||
"super + shift + p" = "playerctl previous";
|
"super + shift + p" = "${lib.getExe pkgs.playerctl} previous";
|
||||||
"super + shift + n" = "playerctl next";
|
"super + shift + n" = "${lib.getExe pkgs.playerctl} next";
|
||||||
"super + shift + alt + b" = "polybar-msg cmd hide";
|
"super + shift + alt + b" = "polybar-msg cmd hide";
|
||||||
"super + shift + b" = "polybar-msg cmd show";
|
"super + shift + b" = "polybar-msg cmd show";
|
||||||
};
|
};
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 145 KiB |
@ -6,24 +6,26 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/09/05 23:37:58 by tomoron #+# #+# #
|
# Created: 2025/09/05 23:37:58 by tomoron #+# #+# #
|
||||||
# Updated: 2025/09/06 00:56:38 by tomoron ### ########.fr #
|
# Updated: 2026/06/14 17:50:09 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
{lib, pkgs, ... } :
|
{pkgs, ... } :
|
||||||
|
|
||||||
{
|
{
|
||||||
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
boot.consoleLogLevel = 3;
|
||||||
|
boot.initrd.verbose = false;
|
||||||
|
boot.kernelParams = [
|
||||||
|
"quiet"
|
||||||
|
"udev.log_level=3"
|
||||||
|
"systemd.show_status=auto"
|
||||||
|
];
|
||||||
|
|
||||||
boot.loader = {
|
catppuccin.plymouth.enable = false;
|
||||||
systemd-boot.enable = true;
|
|
||||||
systemd-boot.memtest86.enable = true;
|
boot.plymouth = {
|
||||||
efi.canTouchEfiVariables = true;
|
enable = true;
|
||||||
timeout = 1;
|
theme = "nixos-bgrt";
|
||||||
|
themePackages = with pkgs; [ nixos-bgrt-plymouth ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.journald.extraConfig = ''
|
|
||||||
SystemMaxUse=100M
|
|
||||||
SystemMaxFileSize=50M
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|||||||
13
osConfigs/global/displayManager.nix
Normal file
13
osConfigs/global/displayManager.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.displayManager.enable = true;
|
||||||
|
services.displayManager.ly.enable = true;
|
||||||
|
services.displayManager.ly.settings = {
|
||||||
|
animation = "gameoflife";
|
||||||
|
min_refresh_delta = 50;
|
||||||
|
bigclock = "en";
|
||||||
|
sleep_cmd = "systemctl sleep";
|
||||||
|
asterisk = "A";
|
||||||
|
auth_fails= 3;
|
||||||
|
};
|
||||||
|
}
|
||||||
6
osConfigs/global/games.nix
Normal file
6
osConfigs/global/games.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
programs.steam.enable = true;
|
||||||
|
programs.steam.protontricks.enable = true;
|
||||||
|
programs.gamescope.enable = true;
|
||||||
|
}
|
||||||
148
osConfigs/global/ld.nix
Normal file
148
osConfigs/global/ld.nix
Normal file
@ -0,0 +1,148 @@
|
|||||||
|
# **************************************************************************** #
|
||||||
|
# #
|
||||||
|
# ::: :::::::: #
|
||||||
|
# ld.nix :+: :+: :+: #
|
||||||
|
# +:+ +:+ +:+ #
|
||||||
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
|
# +#+#+#+#+#+ +#+ #
|
||||||
|
# Created: 2025/12/30 20:37:07 by tomoron #+# #+# #
|
||||||
|
# Updated: 2026/05/28 23:20:01 by tomoron ### ########.fr #
|
||||||
|
# #
|
||||||
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
{pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.nix-ld.enable = true;
|
||||||
|
programs.nix-ld.libraries = with pkgs; [
|
||||||
|
zlib
|
||||||
|
zstd
|
||||||
|
stdenv.cc.cc
|
||||||
|
curl
|
||||||
|
openssl
|
||||||
|
attr
|
||||||
|
libssh
|
||||||
|
bzip2
|
||||||
|
libxml2
|
||||||
|
acl
|
||||||
|
libsodium
|
||||||
|
util-linux
|
||||||
|
xz
|
||||||
|
systemd
|
||||||
|
|
||||||
|
fribidi
|
||||||
|
harfbuzz
|
||||||
|
libgpg-error
|
||||||
|
gmp
|
||||||
|
|
||||||
|
libxcomposite
|
||||||
|
libxtst
|
||||||
|
libxrandr
|
||||||
|
libxext
|
||||||
|
libx11
|
||||||
|
libxfixes
|
||||||
|
libGL
|
||||||
|
libva
|
||||||
|
pipewire
|
||||||
|
libxcb
|
||||||
|
libxdamage
|
||||||
|
libxshmfence
|
||||||
|
libxxf86vm
|
||||||
|
libelf
|
||||||
|
|
||||||
|
glib
|
||||||
|
gtk2
|
||||||
|
|
||||||
|
networkmanager
|
||||||
|
vulkan-loader
|
||||||
|
libgbm
|
||||||
|
libdrm
|
||||||
|
libxcrypt
|
||||||
|
coreutils
|
||||||
|
pciutils
|
||||||
|
zenity
|
||||||
|
|
||||||
|
libxinerama
|
||||||
|
libxcursor
|
||||||
|
libxrender
|
||||||
|
libxscrnsaver
|
||||||
|
libxi
|
||||||
|
libsm
|
||||||
|
libice
|
||||||
|
gnome2.GConf
|
||||||
|
nspr
|
||||||
|
nss
|
||||||
|
cups
|
||||||
|
libcap
|
||||||
|
SDL2
|
||||||
|
libusb1
|
||||||
|
dbus-glib
|
||||||
|
ffmpeg
|
||||||
|
libudev0-shim
|
||||||
|
|
||||||
|
# needed to run unity
|
||||||
|
gtk3
|
||||||
|
icu
|
||||||
|
libnotify
|
||||||
|
gsettings-desktop-schemas
|
||||||
|
|
||||||
|
libxt
|
||||||
|
libxmu
|
||||||
|
libogg
|
||||||
|
libvorbis
|
||||||
|
SDL
|
||||||
|
SDL2_image
|
||||||
|
glew_1_10
|
||||||
|
libidn
|
||||||
|
tbb
|
||||||
|
|
||||||
|
# Other things from runtime
|
||||||
|
flac
|
||||||
|
freeglut
|
||||||
|
libjpeg
|
||||||
|
libpng
|
||||||
|
libpng12
|
||||||
|
libsamplerate
|
||||||
|
libmikmod
|
||||||
|
libtheora
|
||||||
|
libtiff
|
||||||
|
pixman
|
||||||
|
speex
|
||||||
|
SDL_image
|
||||||
|
SDL_ttf
|
||||||
|
SDL_mixer
|
||||||
|
SDL2_ttf
|
||||||
|
SDL2_mixer
|
||||||
|
libappindicator-gtk2
|
||||||
|
libdbusmenu-gtk2
|
||||||
|
libindicator-gtk2
|
||||||
|
libcaca
|
||||||
|
libcanberra
|
||||||
|
libgcrypt
|
||||||
|
libvpx
|
||||||
|
librsvg
|
||||||
|
libxft
|
||||||
|
libvdpau
|
||||||
|
|
||||||
|
pango
|
||||||
|
cairo
|
||||||
|
atk
|
||||||
|
gdk-pixbuf
|
||||||
|
fontconfig
|
||||||
|
freetype
|
||||||
|
dbus
|
||||||
|
alsa-lib
|
||||||
|
expat
|
||||||
|
# for blender
|
||||||
|
libxkbcommon
|
||||||
|
|
||||||
|
libxcrypt-legacy # For natron
|
||||||
|
libGLU # For natron
|
||||||
|
|
||||||
|
fuse
|
||||||
|
e2fsprogs
|
||||||
|
|
||||||
|
webkitgtk_4_1
|
||||||
|
libsoup_3
|
||||||
|
];
|
||||||
|
}
|
||||||
31
osConfigs/global/minimal/boot.nix
Normal file
31
osConfigs/global/minimal/boot.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# **************************************************************************** #
|
||||||
|
# #
|
||||||
|
# ::: :::::::: #
|
||||||
|
# boot.nix :+: :+: :+: #
|
||||||
|
# +:+ +:+ +:+ #
|
||||||
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
|
# +#+#+#+#+#+ +#+ #
|
||||||
|
# Created: 2026/06/14 17:49:47 by tomoron #+# #+# #
|
||||||
|
# Updated: 2026/06/14 17:50:06 by tomoron ### ########.fr #
|
||||||
|
# #
|
||||||
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
|
boot.loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
systemd-boot.memtest86.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
timeout = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.tmp.cleanOnBoot = true;
|
||||||
|
|
||||||
|
services.journald.extraConfig = ''
|
||||||
|
SystemMaxUse=100M
|
||||||
|
SystemMaxFileSize=50M
|
||||||
|
'';
|
||||||
|
}
|
||||||
23
osConfigs/global/minimal/other.nix
Normal file
23
osConfigs/global/minimal/other.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# **************************************************************************** #
|
||||||
|
# #
|
||||||
|
# ::: :::::::: #
|
||||||
|
# other.nix :+: :+: :+: #
|
||||||
|
# +:+ +:+ +:+ #
|
||||||
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
|
# +#+#+#+#+#+ +#+ #
|
||||||
|
# Created: 2026/06/14 18:02:15 by tomoron #+# #+# #
|
||||||
|
# Updated: 2026/06/15 02:06:17 by tomoron ### ########.fr #
|
||||||
|
# #
|
||||||
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
networking.hostName = lib.mkDefault "unnamed-nixos";
|
||||||
|
networking.networkmanager.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
time.timeZone = "Europe/Paris";
|
||||||
|
|
||||||
|
services.fstrim.enable = true; # trims all the ssds on the machine every week
|
||||||
|
catppuccin.enable = lib.mkDefault false;
|
||||||
|
catppuccin.autoEnable = false;
|
||||||
|
}
|
||||||
@ -1,27 +1,23 @@
|
|||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
# #
|
# #
|
||||||
# ::: :::::::: #
|
# ::: :::::::: #
|
||||||
# game.nix :+: :+: :+: #
|
# packages.nix :+: :+: :+: #
|
||||||
# +:+ +:+ +:+ #
|
# +:+ +:+ +:+ #
|
||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/09/05 23:47:09 by tomoron #+# #+# #
|
# Created: 2026/06/14 18:03:28 by tomoron #+# #+# #
|
||||||
# Updated: 2025/10/27 00:50:29 by tomoron ### ########.fr #
|
# Updated: 2026/06/15 12:36:24 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
{config, lib, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
options.mods.gayming.enable = lib.mkOption {
|
environment.systemPackages = with pkgs; [
|
||||||
type = lib.types.bool;
|
neovim
|
||||||
default = false;
|
pciutils
|
||||||
description = "enable steam and other";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.mods.gayming.enable {
|
gnumake
|
||||||
programs.steam.enable = true;
|
home-manager
|
||||||
programs.steam.protontricks.enable = true;
|
];
|
||||||
programs.gamescope.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
8
osConfigs/global/minimal/sops.nix
Normal file
8
osConfigs/global/minimal/sops.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
sops = {
|
||||||
|
defaultSopsFile = ../../../secrets/secrets.yaml;
|
||||||
|
age.keyFile = "/home/tom/.config/sops/age/keys.txt";
|
||||||
|
};
|
||||||
|
}
|
||||||
25
osConfigs/global/minimal/user.nix
Normal file
25
osConfigs/global/minimal/user.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# **************************************************************************** #
|
||||||
|
# #
|
||||||
|
# ::: :::::::: #
|
||||||
|
# user.nix :+: :+: :+: #
|
||||||
|
# +:+ +:+ +:+ #
|
||||||
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
|
# +#+#+#+#+#+ +#+ #
|
||||||
|
# Created: 2025/09/05 23:42:18 by tomoron #+# #+# #
|
||||||
|
# Updated: 2026/06/14 18:07:45 by tomoron ### ########.fr #
|
||||||
|
# #
|
||||||
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
users.users.tom = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [
|
||||||
|
"wheel" # can sudo
|
||||||
|
"docker" # can use docker
|
||||||
|
];
|
||||||
|
|
||||||
|
initialPassword = "password";
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -6,20 +6,15 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/02/09 01:43:46 by tomoron #+# #+# #
|
# Created: 2025/02/09 01:43:46 by tomoron #+# #+# #
|
||||||
# Updated: 2025/09/06 00:51:46 by tomoron ### ########.fr #
|
# Updated: 2026/06/15 02:06:30 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
networking.hostName = lib.mkDefault "unnamed-nixos";
|
|
||||||
networking.networkmanager.enable = lib.mkDefault true;
|
|
||||||
|
|
||||||
programs.fuse.enable = true;
|
programs.fuse.enable = true;
|
||||||
|
|
||||||
time.timeZone = "Europe/Paris";
|
|
||||||
|
|
||||||
services.xserver.enable = lib.mkDefault true;
|
services.xserver.enable = lib.mkDefault true;
|
||||||
services.xserver.displayManager.startx.enable = true;
|
services.xserver.displayManager.startx.enable = true;
|
||||||
|
|
||||||
@ -32,4 +27,9 @@
|
|||||||
|
|
||||||
hardware.logitech.wireless.enable = true;
|
hardware.logitech.wireless.enable = true;
|
||||||
hardware.logitech.wireless.enableGraphical = true;
|
hardware.logitech.wireless.enableGraphical = true;
|
||||||
|
|
||||||
|
programs.noisetorch.enable = true;
|
||||||
|
programs.droidcam.enable = true;
|
||||||
|
|
||||||
|
catppuccin.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/09/06 00:57:21 by tomoron #+# #+# #
|
# Created: 2025/09/06 00:57:21 by tomoron #+# #+# #
|
||||||
# Updated: 2025/09/06 00:57:26 by tomoron ### ########.fr #
|
# Updated: 2026/06/15 12:36:24 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -14,12 +14,13 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
home-manager
|
cryptsetup
|
||||||
vim
|
|
||||||
pciutils
|
|
||||||
usbutils
|
usbutils
|
||||||
ntfs3g
|
ntfs3g
|
||||||
cryptsetup
|
|
||||||
acpi
|
acpi
|
||||||
|
|
||||||
|
unison
|
||||||
|
|
||||||
|
# nss //is this supposed to be here ?
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
156
osConfigs/global/probeRsUdevRules.nix
Normal file
156
osConfigs/global/probeRsUdevRules.nix
Normal file
@ -0,0 +1,156 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.udev.extraRules = ''
|
||||||
|
# Copy this file to /etc/udev/rules.d/
|
||||||
|
# If rules fail to reload automatically, you can refresh udev rules
|
||||||
|
# with the command "udevadm control --reload"
|
||||||
|
|
||||||
|
# This rules are based on the udev rules from the OpenOCD project, with unsupported probes removed.
|
||||||
|
# See http://openocd.org/ for more details.
|
||||||
|
#
|
||||||
|
# This file is available under the GNU General Public License v2.0
|
||||||
|
|
||||||
|
ACTION!="add|change", GOTO="probe_rs_rules_end"
|
||||||
|
|
||||||
|
SUBSYSTEM=="gpio", MODE="0660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
|
||||||
|
SUBSYSTEM!="usb|tty|hidraw", GOTO="probe_rs_rules_end"
|
||||||
|
|
||||||
|
# Please keep this list sorted by VID:PID
|
||||||
|
|
||||||
|
# STMicroelectronics ST-LINK V1
|
||||||
|
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3744", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
|
||||||
|
# STMicroelectronics ST-LINK/V2
|
||||||
|
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
|
||||||
|
# STMicroelectronics ST-LINK/V2.1
|
||||||
|
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3752", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
|
||||||
|
# STMicroelectronics STLINK-V3
|
||||||
|
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374d", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374e", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374f", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3753", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3754", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3757", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
|
||||||
|
# SEGGER J-Link
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0101", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0102", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0103", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0104", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0105", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0107", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0108", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1001", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1002", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1003", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1004", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1005", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1006", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1007", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1008", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1009", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="100a", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="100b", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="100c", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="100d", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="100e", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="100f", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1010", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1011", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1012", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1013", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1014", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1015", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1016", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1017", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1018", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1019", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="101a", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="101b", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="101c", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="101d", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="101e", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="101f", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1020", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1021", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1022", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1023", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1024", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1025", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1026", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1027", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1028", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1029", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="102a", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="102b", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="102c", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="102d", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="102e", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="102f", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1050", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1051", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1052", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1053", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1054", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1055", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1056", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1057", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1058", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1059", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="105a", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="105b", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="105c", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="105d", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="105e", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="105f", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1060", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1061", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1062", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1063", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1064", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1065", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1066", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1067", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1068", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1069", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="106a", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="106b", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="106c", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="106d", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="106e", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="106f", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
|
||||||
|
# FT232H
|
||||||
|
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
# FT2232x
|
||||||
|
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
# FT4232H
|
||||||
|
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
|
||||||
|
# FTDI-based Olimex devices
|
||||||
|
ATTRS{idVendor}=="0x15ba", ATTRS{idProduct}=="0x0003", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="0x15ba", ATTRS{idProduct}=="0x0004", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="0x15ba", ATTRS{idProduct}=="0x002a", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="0x15ba", ATTRS{idProduct}=="0x002b", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
|
||||||
|
# Espressif USB JTAG/serial debug unit
|
||||||
|
ATTRS{idVendor}=="303a", ATTRS{idProduct}=="1001", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
# Espressif USB Bridge
|
||||||
|
ATTRS{idVendor}=="303a", ATTRS{idProduct}=="1002", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
|
||||||
|
# CMSIS-DAP compatible adapters
|
||||||
|
ATTRS{product}=="*CMSIS-DAP*", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
# WCH Link (CMSIS-DAP compatible adapter)
|
||||||
|
ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="8010", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="8011", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
|
||||||
|
# Infineon KitProg
|
||||||
|
ATTRS{idVendor}=="04b4", ATTRS{idProduct}=="f155", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
|
||||||
|
LABEL="probe_rs_rules_end"
|
||||||
|
'';
|
||||||
|
}
|
||||||
@ -6,7 +6,7 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/09/05 23:42:18 by tomoron #+# #+# #
|
# Created: 2025/09/05 23:42:18 by tomoron #+# #+# #
|
||||||
# Updated: 2025/09/06 00:57:32 by tomoron ### ########.fr #
|
# Updated: 2026/06/22 15:42:08 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -14,15 +14,10 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
users.users.tom = {
|
users.users.tom = {
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"wheel" # can sudo
|
|
||||||
"docker" # can use docker
|
|
||||||
"libvirtd" # can use libvirtd
|
"libvirtd" # can use libvirtd
|
||||||
"dialout" # can use serial devices
|
"dialout" # can use serial devices
|
||||||
"wireshark" # can use wireshask
|
"wireshark" # can use wireshask
|
||||||
];
|
];
|
||||||
|
|
||||||
initialPassword = "password";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,41 +6,41 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/09/06 00:57:04 by tomoron #+# #+# #
|
# Created: 2025/09/06 00:57:04 by tomoron #+# #+# #
|
||||||
# Updated: 2025/11/17 11:46:11 by tomoron ### ########.fr #
|
# Updated: 2026/06/24 18:42:19 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
|
||||||
{ config, lib, inputs, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
boot.kernelParams = [ "nvidia-drm-modset=1" ];
|
boot.kernelParams = [ "nvidia-drm-modset=1" ];
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
lm_sensors # can be user (and global)
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.hostName = "nixos-fixe";
|
networking.hostName = "nixos-fixe";
|
||||||
|
|
||||||
hardware.cpu.intel.updateMicrocode = true;
|
hardware.cpu.intel.updateMicrocode = true;
|
||||||
|
|
||||||
mods.yubikey.pam.enable = true;
|
mods.yubikey.pam.enable = true;
|
||||||
|
mods.nvidia.enable = true;
|
||||||
|
|
||||||
boot.kernelModules = [ "kvm-intel" "nvidia" ];
|
boot.kernelModules = [ "kvm-intel" "nvidia" ];
|
||||||
mods.displayManager.enable = true;
|
|
||||||
|
|
||||||
mods.nvidia.enable = true;
|
|
||||||
mods.gayming.enable = true;
|
|
||||||
|
|
||||||
programs.noisetorch.enable = true;
|
|
||||||
|
|
||||||
# hardware.nvidia = {
|
|
||||||
# open = true;
|
|
||||||
#
|
|
||||||
# prime.nvidiaBusId = "PCI:1:0:0";
|
|
||||||
# prime.intelBusId = "PCI:0:2:0";
|
|
||||||
# prime.sync.enable = true;
|
|
||||||
#
|
|
||||||
# modesetting.enable = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
networking.hostId = "98e475dd";
|
||||||
|
|
||||||
|
mods.zfs.enable = true;
|
||||||
|
|
||||||
|
mods.docker = {
|
||||||
|
enable = true;
|
||||||
|
boot = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.sync = {
|
||||||
|
isNormalUser = true;
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIkVmIAJZewJVC6i1f39P7D36OPsdKqMNejALhBo92Td backup@server"
|
||||||
|
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIPy6ObpsitxHkRZzGbYdBpsBbR1YygtZOeClN2C/thu4AAAABHNzaDo= ssh:"
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,17 +6,13 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/09/06 00:57:02 by tomoron #+# #+# #
|
# Created: 2025/09/06 00:57:02 by tomoron #+# #+# #
|
||||||
# Updated: 2025/09/06 00:57:03 by tomoron ### ########.fr #
|
# Updated: 2026/06/14 18:25:39 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
{lib, ... }:
|
{lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
../global/packages.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
users.users.tom = {
|
users.users.tom = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "networkmanager" "video" ];
|
extraGroups = [ "wheel" "networkmanager" "video" ];
|
||||||
|
|||||||
@ -6,45 +6,54 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/09/06 00:56:57 by tomoron #+# #+# #
|
# Created: 2025/09/06 00:56:57 by tomoron #+# #+# #
|
||||||
# Updated: 2025/10/29 21:15:44 by tomoron ### ########.fr #
|
# Updated: 2026/06/15 02:11:29 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
boot.initrd.luks.yubikeySupport = true;
|
|
||||||
services.udev.packages = [ pkgs.yubikey-personalization ];
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||||
boot.initrd.kernelModules = [ "vfat" "nls_cp437" "nls_iso8859-1" "usbhid" ];
|
boot.initrd.kernelModules = [ "vfat" "nls_cp437" "nls_iso8859-1" "usbhid" ];
|
||||||
|
boot.initrd.systemd.enable = true;
|
||||||
|
boot.initrd.luks.yubikeySupport = false;
|
||||||
boot.initrd.luks.devices.cryptroot = {
|
boot.initrd.luks.devices.cryptroot = {
|
||||||
device = "/dev/disk/by-uuid/a4593b01-069d-4a5d-a550-74a762b89b3f";
|
device = "/dev/disk/by-uuid/a4593b01-069d-4a5d-a550-74a762b89b3f";
|
||||||
allowDiscards = true;
|
allowDiscards = true;
|
||||||
#set up initial : https://wiki.nixos.org/wiki/Yubikey_based_Full_Disk_Encryption_(FDE)_on_NixOS
|
#set up initial : https://wiki.nixos.org/wiki/Yubikey_based_Full_Disk_Encryption_(FDE)_on_NixOS
|
||||||
yubikey = {
|
#yubikey = { #bad implementation upstream. unlock with be with fallback password until it's better
|
||||||
twoFactor = false;
|
# twoFactor = false;
|
||||||
keyLength = 64;
|
# keyLength = 64;
|
||||||
saltLength = 32;
|
# saltLength = 32;
|
||||||
storage = {
|
# storage = {
|
||||||
device = "/dev/disk/by-uuid/BA5C-F216";
|
# device = "/dev/disk/by-uuid/BA5C-F216";
|
||||||
path = "/default";
|
# path = "/default";
|
||||||
};
|
# };
|
||||||
};
|
#};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.blacklistedKernelModules = [ "nvidia" "nvidia_drm" "nvidia_uvm" ]; #speeds up startup
|
boot.blacklistedKernelModules = [ "nvidia" "nvidia_drm" "nvidia_uvm" ]; #speeds up startup, loaded automatically when gpu is started
|
||||||
programs.droidcam.enable = true;
|
|
||||||
|
|
||||||
|
|
||||||
mods.displayManager.enable = true;
|
|
||||||
mods.virtualHost.enable = true;
|
|
||||||
mods.yubikey.pam.enable = true;
|
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
|
|
||||||
networking.hostName = "patate-douce";
|
networking.hostName = "patate-douce";
|
||||||
networking.wireless.enable = true;
|
networking.networkmanager.wifi.backend = "iwd";
|
||||||
|
networking.wireless.iwd.enable = true;
|
||||||
|
networking.wireless.allowAuxiliaryImperativeNetworks = true;
|
||||||
networking.networkmanager.enable = false;
|
networking.networkmanager.enable = false;
|
||||||
|
networking.dhcpcd.enable = false;
|
||||||
|
systemd.network.enable = true;
|
||||||
|
networking.useNetworkd = true;
|
||||||
|
|
||||||
specialisation.vfio_ready.configuration = {
|
specialisation.vfio_ready.configuration = {
|
||||||
boot.kernel.sysctl."vm.nr_hugepages" = 5120;
|
#vfio ready configuration sets up kvmfr0 kernel module, disables xbox controller on host os, enables libvirtd and installs looking-glass
|
||||||
|
|
||||||
|
mods.virtualHost.enable = true;
|
||||||
boot.extraModulePackages = with config.boot.kernelPackages; [ kvmfr ];
|
boot.extraModulePackages = with config.boot.kernelPackages; [ kvmfr ];
|
||||||
boot.kernelModules = [ "kvmfr" ];
|
boot.kernelModules = [ "kvmfr" ];
|
||||||
boot.extraModprobeConfig = ''
|
boot.extraModprobeConfig = ''
|
||||||
@ -57,51 +66,39 @@
|
|||||||
"/dev/random", "/dev/urandom",
|
"/dev/random", "/dev/urandom",
|
||||||
"/dev/ptmx", "/dev/kvm",
|
"/dev/ptmx", "/dev/kvm",
|
||||||
"/dev/rtc","/dev/hpet",
|
"/dev/rtc","/dev/hpet",
|
||||||
"/dev/input/by-id/[some_mouse_device]-event-mouse",
|
|
||||||
"/dev/input/by-id/[some_keyboard_device]-event-kbd"
|
|
||||||
]
|
]
|
||||||
'';
|
'';
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
SUBSYSTEM=="kvmfr", OWNER="tom", GROUP="kvm", MODE="0660"
|
SUBSYSTEM=="kvmfr", OWNER="tom", GROUP="kvm", MODE="0660"
|
||||||
'';
|
'';
|
||||||
environment.systemPackages = with pkgs; [ looking-glass-client ];
|
environment.systemPackages = with pkgs; [ looking-glass-client ];
|
||||||
services.supergfxd.settings.mode = "Vfio";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.dhcpcd.enable = false;
|
|
||||||
systemd.network.enable = true;
|
|
||||||
networking.useNetworkd = true;
|
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
acpi # can be user (global)
|
impala
|
||||||
|
openvr
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
mods.touchpad.enable = true;
|
mods.touchpad.enable = true;
|
||||||
|
|
||||||
# programs.gamescope.capSysNice = true;
|
|
||||||
|
|
||||||
mods.powerSave = {
|
mods.powerSave = {
|
||||||
enable = true;
|
enable = true;
|
||||||
powahCommandAdditions = [
|
powahCommandAdditions = [
|
||||||
"supergfxctl -m Hybrid"
|
"supergfxctl -m Hybrid"
|
||||||
"if asusctl profile -p | grep Balanced ; then asusctl profile -P Performance; fi"
|
"if [ $# -gt 0 ] && [[ \"$1\" == \"moar\" ]] ; then asusctl profile set Performance; fi"
|
||||||
"if asusctl profile -p | grep Quiet ; then asusctl profile -P Balanced; fi"
|
|
||||||
];
|
];
|
||||||
tagueuleCommandAdditions = [
|
tagueuleCommandAdditions = [
|
||||||
"echo \"can't safely turn off the GPU\""
|
"echo \"can't safely turn off the GPU\""
|
||||||
"asusctl profile -P Quiet"
|
"asusctl profile set Quiet"
|
||||||
];
|
];
|
||||||
cpuMaxFreq = 4465261;
|
cpuMaxFreq = 4465261;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
services.asusd = {
|
services.asusd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableUserService = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.supergfxd.enable = true;
|
services.supergfxd.enable = true;
|
||||||
@ -118,21 +115,39 @@
|
|||||||
programs.wireshark.enable = true;
|
programs.wireshark.enable = true;
|
||||||
programs.wireshark.usbmon.enable = true;
|
programs.wireshark.usbmon.enable = true;
|
||||||
|
|
||||||
|
mods.yubikey.pam.enable = true;
|
||||||
mods.docker.enable = true;
|
mods.docker.enable = true;
|
||||||
mods.gayming.enable = true;
|
|
||||||
mods.nvidia.enable = true;
|
mods.nvidia.enable = true;
|
||||||
mods.nvidia.prime = true;
|
mods.nvidia.prime = true;
|
||||||
|
|
||||||
|
|
||||||
services.usbmuxd.enable = true; #hangs when shutting down
|
services.usbmuxd.enable = true; #iphone usb service sometimes hangs when shutting down
|
||||||
|
|
||||||
# boot.plymouth = {
|
services.avahi.enable = true;
|
||||||
# enable = true;
|
services.pipewire = {
|
||||||
# theme = "ycontre-glow";
|
raopOpenFirewall = true;
|
||||||
# themePackages = [
|
|
||||||
# inputs.plymouth-theme-ycontre-glow.defaultPackage.x86_64-linux
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
|
|
||||||
services.flatpak.enable = true;
|
extraConfig.pipewire = {
|
||||||
|
"10-airplay"."context.modules" = [
|
||||||
|
{ name = "libpipewire-module-raop-discover"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.pipewire.wireplumber.extraConfig."10-bluez" = {
|
||||||
|
"monitor.bluez.properties" = {
|
||||||
|
"bluez5.enable-sbc-xq" = true;
|
||||||
|
"bluez5.enable-msbc" = true;
|
||||||
|
"bluez5.enable-hw-volume" = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
hardware.bluetooth.settings = {
|
||||||
|
General = {
|
||||||
|
Enable = "Source,Sink,Media,Socket";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.corectrl.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,11 +6,11 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/09/06 00:57:09 by tomoron #+# #+# #
|
# Created: 2025/09/06 00:57:09 by tomoron #+# #+# #
|
||||||
# Updated: 2025/09/06 01:26:26 by tomoron ### ########.fr #
|
# Updated: 2026/06/15 12:34:42 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
ports = [
|
ports = [
|
||||||
@ -20,32 +20,97 @@ let
|
|||||||
8083 137 138 139 445 548 3702 5357 #prob some samba shit
|
8083 137 138 139 445 548 3702 5357 #prob some samba shit
|
||||||
24454 #minecraft voice chat
|
24454 #minecraft voice chat
|
||||||
25565 # minecraft server
|
25565 # minecraft server
|
||||||
|
9091 # transmission web interface
|
||||||
];
|
];
|
||||||
portRanges = [
|
portRanges = [
|
||||||
{from = 47950; to = 49000;} #moonlight (wolf)
|
{from = 47950; to = 49000;} #moonlight (wolf)
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
boot.kernelPackages = pkgs.linuxPackages;
|
|
||||||
boot.extraModulePackages = [
|
boot.extraModulePackages = [
|
||||||
config.boot.kernelPackages.gasket #driver for google coral edge tpu
|
config.boot.kernelPackages.gasket #driver for google coral edge tpu
|
||||||
];
|
];
|
||||||
|
|
||||||
|
boot.kernelParams = [
|
||||||
|
"amdgpu.vm_update_mode=3"
|
||||||
|
"amdgpu.gpu_recovery=1"
|
||||||
|
];
|
||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
services.openssh.settings.PasswordAuthentication = false;
|
services.openssh.settings.PasswordAuthentication = false;
|
||||||
services.openssh.ports = [ 1880 ];
|
services.openssh.ports = [ 1880 ];
|
||||||
|
|
||||||
|
sops.secrets."cloudflared/token" = {};
|
||||||
|
sops.secrets."zfs/p_user" = {};
|
||||||
|
sops.secrets."zfs/p_token" = {};
|
||||||
|
systemd.services.cloudflared = {
|
||||||
|
after = [
|
||||||
|
"network.target"
|
||||||
|
"network-online.target"
|
||||||
|
];
|
||||||
|
wants = [
|
||||||
|
"network.target"
|
||||||
|
"network-online.target"
|
||||||
|
];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = ''${pkgs.bash}/bin/bash -c '${pkgs.cloudflared}/bin/cloudflared tunnel --no-autoupdate run --token "$(cat ${config.sops.secrets."cloudflared/token".path})"' '';
|
||||||
|
Restart = "on-failure";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
boot.extraModprobeConfig = ''
|
boot.extraModprobeConfig = ''
|
||||||
options amdgpu virtual_display=1
|
options amdgpu virtual_display=1
|
||||||
''; #create dummy display to be able to start x11
|
# create dummy display to be able to start x11
|
||||||
|
'';
|
||||||
|
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
mods.zfs.enable = true;
|
||||||
|
boot.zfs.forceImportRoot = false;
|
||||||
|
boot.zfs.extraPools = [ "raid_vol" ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
zfs
|
systemd.timers."nextcloud-cron-job" = {
|
||||||
screen #can be user (and global)
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig = {
|
||||||
|
OnBootSec = "5m";
|
||||||
|
OnUnitActiveSec = "5m";
|
||||||
|
Unit = "nextcloud-cron-job.service";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services."nextcloud-cron-job" = {
|
||||||
|
script = ''
|
||||||
|
${pkgs.docker}/bin/docker exec -u www-data nextcloud php /var/www/html/cron.php
|
||||||
|
'';
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "oneshot";
|
||||||
|
User = "root";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
inputs.dockermcmgr.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
services.zfs = {
|
||||||
|
autoScrub.enable = true;
|
||||||
|
zed.settings = {
|
||||||
|
ZED_NOTIFY_VERBOSE=1;
|
||||||
|
ZED_PUSHOVER_TOKEN="$(cat ${config.sops.secrets."zfs/p_token".path})";
|
||||||
|
ZED_PUSHOVER_USER="$(cat ${config.sops.secrets."zfs/p_user".path})";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.sanoid.enable = true;
|
||||||
|
services.sanoid.datasets."raid_vol" = {
|
||||||
|
daily = 31;
|
||||||
|
hourly = 24;
|
||||||
|
monthly = 12;
|
||||||
|
autosnap = true;
|
||||||
|
autoprune = true;
|
||||||
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "server";
|
hostName = "server";
|
||||||
|
|
||||||
@ -68,8 +133,38 @@ in
|
|||||||
services.fail2ban.enable = true;
|
services.fail2ban.enable = true;
|
||||||
services.fail2ban.bantime = "5h";
|
services.fail2ban.bantime = "5h";
|
||||||
|
|
||||||
|
mods.nvidia.enable = true;
|
||||||
|
mods.nvidia.beta = true;
|
||||||
|
mods.nvidia.containerToolkit = true;
|
||||||
|
|
||||||
mods.docker = {
|
mods.docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
boot = true;
|
boot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.dockermcmgr-server = {
|
||||||
|
enable = true;
|
||||||
|
wantedBy = ["multi-user.target"];
|
||||||
|
restartIfChanged = true;
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = "${inputs.dockermcmgr.packages.${pkgs.stdenv.hostPlatform.system}.default}/bin/dmm serverMode";
|
||||||
|
User = "tom";
|
||||||
|
Group= "users";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
nix.settings.trusted-users = [ "root" "builder" "tom" ];
|
||||||
|
|
||||||
|
users.users.builder = {
|
||||||
|
isNormalUser = true;
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICzRsLTBnow52e63Qp6JqUaLNOCpoIsPpJFOAhJOgF1M root@patate-douce"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIl6m5mdyfixhVgcDIOHhRQRSyCH4//2XJ/MRmOLD8R4 root@nixos-fixe"
|
||||||
|
];
|
||||||
|
group = "builder";
|
||||||
|
};
|
||||||
|
users.groups.builder = {};
|
||||||
|
|
||||||
|
mods.remote-build.enable = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,36 +0,0 @@
|
|||||||
# **************************************************************************** #
|
|
||||||
# #
|
|
||||||
# ::: :::::::: #
|
|
||||||
# displayManager.nix :+: :+: :+: #
|
|
||||||
# +:+ +:+ +:+ #
|
|
||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
|
||||||
# +#+#+#+#+#+ +#+ #
|
|
||||||
# Created: 2025/09/05 23:47:16 by tomoron #+# #+# #
|
|
||||||
# Updated: 2025/09/06 00:56:38 by tomoron ### ########.fr #
|
|
||||||
# #
|
|
||||||
# **************************************************************************** #
|
|
||||||
|
|
||||||
{config, lib, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
options.mods.displayManager.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
description = "enable the ly display manager";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.mods.displayManager.enable {
|
|
||||||
services.displayManager.enable = true;
|
|
||||||
services.displayManager.ly.enable = true;
|
|
||||||
services.displayManager.ly.settings =
|
|
||||||
{
|
|
||||||
animation = "doom";
|
|
||||||
min_refresh_delta = 50;
|
|
||||||
bigclock = "en";
|
|
||||||
sleep_cmd = "systemctl sleep";
|
|
||||||
asterisk = "A";
|
|
||||||
auth_fails= 3;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -6,7 +6,7 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/09/05 23:47:19 by tomoron #+# #+# #
|
# Created: 2025/09/05 23:47:19 by tomoron #+# #+# #
|
||||||
# Updated: 2025/10/26 21:12:18 by tomoron ### ########.fr #
|
# Updated: 2025/12/23 18:42:01 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -38,7 +38,7 @@
|
|||||||
prime = lib.mkOption {
|
prime = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = "enable nvidia prime offload (saves battery)";
|
description = "enable nvidia prime offload (saves battery). prime ?";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
46
osConfigs/modules/remote_build.nix
Normal file
46
osConfigs/modules/remote_build.nix
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
# **************************************************************************** #
|
||||||
|
# #
|
||||||
|
# ::: :::::::: #
|
||||||
|
# remote_build.nix :+: :+: :+: #
|
||||||
|
# +:+ +:+ +:+ #
|
||||||
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
|
# +#+#+#+#+#+ +#+ #
|
||||||
|
# Created: 2025/09/05 23:47:09 by tomoron #+# #+# #
|
||||||
|
# Updated: 2026/06/13 23:44:37 by tomoron ### ########.fr #
|
||||||
|
# #
|
||||||
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
{config, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.mods.remote-build.enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
description = "setup remote nix builder";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.mods.remote-build.enable {
|
||||||
|
nix.buildMachines = [
|
||||||
|
{
|
||||||
|
hostName = "tmoron.fr";
|
||||||
|
sshUser = "builder";
|
||||||
|
protocol = "ssh-ng";
|
||||||
|
|
||||||
|
sshKey = "/root/.ssh/id_ed25519";
|
||||||
|
|
||||||
|
system = "x86_64-linux";
|
||||||
|
|
||||||
|
maxJobs = 2;
|
||||||
|
speedFactor = 2;
|
||||||
|
|
||||||
|
supportedFeatures = ["big-parallel" "kvm" "nixos-test"];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
nix.distributedBuilds = true;
|
||||||
|
programs.ssh.extraConfig = ''
|
||||||
|
Host tmoron.fr
|
||||||
|
HostName tmoron.fr
|
||||||
|
Port 1880
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -6,7 +6,7 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/09/05 23:47:19 by tomoron #+# #+# #
|
# Created: 2025/09/05 23:47:19 by tomoron #+# #+# #
|
||||||
# Updated: 2025/09/06 01:03:07 by tomoron ### ########.fr #
|
# Updated: 2026/06/15 02:01:25 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
|||||||
13
osConfigs/modules/zfs.nix
Normal file
13
osConfigs/modules/zfs.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{ pkgs, config, lib, ... }:
|
||||||
|
{
|
||||||
|
options.mods.zfs.enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "does this system support zfs filesystems";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.mods.zfs.enable {
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages;
|
||||||
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -6,19 +6,22 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/09/06 00:56:36 by tomoron #+# #+# #
|
# Created: 2025/09/06 00:56:36 by tomoron #+# #+# #
|
||||||
# Updated: 2025/09/06 00:56:37 by tomoron ### ########.fr #
|
# Updated: 2026/06/14 18:56:12 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
{ lib, flakeName, ... }:
|
{ lib, flakeName, minimal, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = lib.concatLists [
|
imports = (lib.concatLists [
|
||||||
[ ./hardware-configuration.nix ]
|
[ ./hardware-configuration.nix ]
|
||||||
(lib.fileset.toList ./global)
|
|
||||||
(lib.fileset.toList ./modules)
|
(lib.fileset.toList ./modules)
|
||||||
];
|
])
|
||||||
|
++ (lib.lists.optionals minimal (lib.fileset.toList ./global/minimal))
|
||||||
|
++ (lib.lists.optionals (!minimal) (lib.fileset.toList ./global));
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
|
||||||
|
system.stateVersion ="25.05";
|
||||||
environment.etc.nixosFlakeName.text = "${flakeName}";
|
environment.etc.nixosFlakeName.text = "${flakeName}";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,11 @@
|
|||||||
#ENC[AES256_GCM,data:1NcFm2XqZzmSSlr8wH4aXHDBhf+lOaZ/gUeK2T/U/hIBbqtfKtw=,iv:yS5iogRp6e3We/7wZnGy0XJzqLVfRVKlDhUs+tamcJ0=,tag:+z/qqF9n6/hQfv9aWXkCDQ==,type:comment]
|
#ENC[AES256_GCM,data:1NcFm2XqZzmSSlr8wH4aXHDBhf+lOaZ/gUeK2T/U/hIBbqtfKtw=,iv:yS5iogRp6e3We/7wZnGy0XJzqLVfRVKlDhUs+tamcJ0=,tag:+z/qqF9n6/hQfv9aWXkCDQ==,type:comment]
|
||||||
nextcloud_fuse:
|
nextcloud_fuse:
|
||||||
password: ENC[AES256_GCM,data:Rlyc9wO3rXJ97AAMzM+vJclEJ+eaSPtHkitqRL0=,iv:yuS2Tyo2HZGVb9tbWmmgOEwkyzLhlvq8iZ2YjGD0u9E=,tag:pf8n4pTvseh1pd12w8w4tw==,type:str]
|
password: ENC[AES256_GCM,data:Rlyc9wO3rXJ97AAMzM+vJclEJ+eaSPtHkitqRL0=,iv:yuS2Tyo2HZGVb9tbWmmgOEwkyzLhlvq8iZ2YjGD0u9E=,tag:pf8n4pTvseh1pd12w8w4tw==,type:str]
|
||||||
|
cloudflared:
|
||||||
|
token: ENC[AES256_GCM,data:LS1VIwbbVsJxZ90p+kK4xJhzrBRJ51XL2j8mGLDVj5JjYJKXKBDIXtlb0x8A9WDIVyBuLBkE9pfSfQXtvfvZdUeyXswVJFUNW0mX3yC/WaeNQdPYy7UgyGjorqk31aNJ6b9XqtdfV0++qPvXQDvwn44UY0juuiIJ5KcLZEskRcqVTilG5WYi/nInhGbSqtzniRNvrbsynIq0CVQDhi3haCHNpCJMQUIyXM/g6Xsc9b++GYlHjgrtHQ==,iv:DbvJfbMblgr6+dYBJqDSzECKK90Nkq8Eci5dC8fMIXQ=,tag:bjAs8p5dAkh2Adon0JDNqg==,type:str]
|
||||||
|
zfs:
|
||||||
|
p_user: ENC[AES256_GCM,data:5RZ14HcDfSrOGm6VFNQGSlH4bcJ+DtMk4NkrXXTo,iv:iTt//ip7ZK5tuQky1DPmzgexV+chhHG9rHQNMYyJZJs=,tag:cmwA0KHsqBG7f5WI7Fwclg==,type:str]
|
||||||
|
p_token: ENC[AES256_GCM,data:VFYSHIqeKFbPaCqO08UrgqtsmCULcXlGjGco03BT,iv:aEaOH+jSp6A2Z3V+vwAYuhS26oTZ/CA+/EKg+/ZktDQ=,tag:UH1LG3aS/plWnaLdpcUcuA==,type:str]
|
||||||
sops:
|
sops:
|
||||||
age:
|
age:
|
||||||
- recipient: age1sjzkhwr8ycdsmuj8xg8y4v2hcpuq9vethnhytxtwzeury692dsxqf80fwv
|
- recipient: age1sjzkhwr8ycdsmuj8xg8y4v2hcpuq9vethnhytxtwzeury692dsxqf80fwv
|
||||||
@ -12,7 +17,7 @@ sops:
|
|||||||
clZaazZQdW5wYUhUNmM0QW91K0NLOTAKB6z7cKg54QmJo0U03u6RQkSCfJOAdeJa
|
clZaazZQdW5wYUhUNmM0QW91K0NLOTAKB6z7cKg54QmJo0U03u6RQkSCfJOAdeJa
|
||||||
DiyPYjm02BNe8YPFbBFRpyT7G++j3h0yG+/Nr2zcQFyMMEpMv5QJvg==
|
DiyPYjm02BNe8YPFbBFRpyT7G++j3h0yG+/Nr2zcQFyMMEpMv5QJvg==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2025-09-05T17:58:05Z"
|
lastmodified: "2026-04-09T09:44:50Z"
|
||||||
mac: ENC[AES256_GCM,data:96G7VqaG8A46tQ1L7I2asiYtNZF7K3Wf+SzbwPrNV8zQio2jInawtD4WSzHmLs4Nv7M1TBHug/ho8mfYq6auXgpathiSzvj0Tzs/IEKXiTYa86tM3szwAepavMYWOl6OYJ7S39ku6BOMo3qC2BK/gpT5iy4c84ashn2wFd1n41A=,iv:6TShIsqnhCf/3uoAaz/R+Cwr2HrorROOXodXluTKM8M=,tag:BA9rQ73scKgetW3orV0HdQ==,type:str]
|
mac: ENC[AES256_GCM,data:1TWoO9xeAyfT5kheTDLBqqeqpSpc5begsXN/FIjwK01xJJrgFfQg+93OZcH989z6WGumvjH+JuY98y9xDfur6mc2sopbLX8/Qbnfl4D2Aq1ya42b5/2cHlFhGI8bBOiXr6qA2sixQ/E1MIklTMxN+Z1fKbT5Mp7cfoPlG8YXhbI=,iv:DB1opS2DEr/WM1yK5SJf8NtoApmzJq5mgMoMlOoLli4=,tag:ZhiLFFCZF+fdfai0djwjYw==,type:str]
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.10.2
|
version: 3.11.0
|
||||||
|
|||||||
Reference in New Issue
Block a user