Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
7deb3fe8d9
|
@ -1,13 +1,8 @@
|
|||||||
name: update the nix flake lock automatically every week
|
name: update the nix flake lock automatically every week
|
||||||
run-name: update
|
run-name: update
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 4 * * 1"
|
- cron: "0 4 * * 1"
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
update:
|
||||||
@ -21,11 +16,3 @@ jobs:
|
|||||||
|
|
||||||
- name: run the update
|
- name: run the update
|
||||||
run: nix flake 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
|
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
tmp/
|
|
||||||
4
Makefile
4
Makefile
@ -4,8 +4,7 @@ FLAKE ?= .
|
|||||||
MODE ?= switch
|
MODE ?= switch
|
||||||
|
|
||||||
|
|
||||||
EXTRAFLAGS ?=
|
FLAGS = --impure --cores $(THREADS) -j $(THREADS)
|
||||||
FLAGS = --impure -j 1 -L $(EXTRAFLAGS)
|
|
||||||
|
|
||||||
ifdef OFFLINE
|
ifdef OFFLINE
|
||||||
FLAGS += --option binary-caches ''
|
FLAGS += --option binary-caches ''
|
||||||
@ -15,6 +14,7 @@ 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)
|
||||||
|
|||||||
163
flake.lock
generated
163
flake.lock
generated
@ -5,11 +5,11 @@
|
|||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1780833533,
|
"lastModified": 1775994227,
|
||||||
"narHash": "sha256-0StMUC1sOkiQq7qoLQpobwVlad09EA5cy7HZit172Fw=",
|
"narHash": "sha256-4VKeWtl9dEubrgpy9fSXkXbjBZlNXPNlQQM5l1ppHv4=",
|
||||||
"owner": "catppuccin",
|
"owner": "catppuccin",
|
||||||
"repo": "nix",
|
"repo": "nix",
|
||||||
"rev": "4dd4177dc14b0c0b23bf3ce403f813be0c4c30de",
|
"rev": "d0a9a21ed8e235956a768fc624242ec9a3e15575",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -18,29 +18,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dockermcmgr": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": "systems",
|
|
||||||
"treefmt-nix": "treefmt-nix"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1781184763,
|
|
||||||
"narHash": "sha256-jfJQTNwiUpOiVpFe+Smig3P/j7A7AbAh18AIPW6Vs+w=",
|
|
||||||
"ref": "refs/heads/master",
|
|
||||||
"rev": "37afa2c04466dfb1df83da2bd4712089eb0b640a",
|
|
||||||
"revCount": 28,
|
|
||||||
"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": [
|
||||||
@ -49,11 +26,11 @@
|
|||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "pkgs/firefox-addons",
|
"dir": "pkgs/firefox-addons",
|
||||||
"lastModified": 1780804967,
|
"lastModified": 1776139376,
|
||||||
"narHash": "sha256-Z2nOP600ATQLLHHemhHtYDjWyAqgLrVsozznIkvnkYY=",
|
"narHash": "sha256-rBykvCL5GRT6VmiY39XnxAR10cohBsLeAENP0+3JM/0=",
|
||||||
"owner": "rycee",
|
"owner": "rycee",
|
||||||
"repo": "nur-expressions",
|
"repo": "nur-expressions",
|
||||||
"rev": "f15cdd20d0845728919ad067ff43bdd334b4b344",
|
"rev": "ccfaa2303117e22752bda4e1a1bb07d17f38ea2d",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -63,22 +40,6 @@
|
|||||||
"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": [
|
||||||
@ -86,30 +47,26 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1780885330,
|
"lastModified": 1776136611,
|
||||||
"narHash": "sha256-aMA5oAq2Iv467U9s8YOb50DYQT9w0WJbyWqwlzHuLMs=",
|
"narHash": "sha256-b2pu3Pb28W0bJzQVP3OJHZC5+dgOOeqjlli2WVakKEU=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "4fe95527cbe952713318ada8a4d122e1a6ab120f",
|
"rev": "8a423e444b17dde406097328604a64fc7429e34e",
|
||||||
"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": 1780310866,
|
"lastModified": 1775490113,
|
||||||
"narHash": "sha256-fPBRVf6A5xlACYcOI59shGrjURuvwu0lRsDoSCEXt/I=",
|
"narHash": "sha256-2ZBhDNZZwYkRmefK5XLOusCJHnoeKkoN95hoSGgMxWM=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "4ed851c979641e28597a05086332d75cdc9e395f",
|
"rev": "c775c2772ba56e906cbeb4e0b2db19079ef11ff7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -121,58 +78,32 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1780365719,
|
"lastModified": 1775423009,
|
||||||
"narHash": "sha256-JX05Ms/dk0c+UoW9IqQriB53HNZFckX9Qd3EJqmcqEw=",
|
"narHash": "sha256-vPKLpjhIVWdDrfiUM8atW6YkIggCEKdSAlJPzzhkQlw=",
|
||||||
"rev": "ffa10e26ae11d676b2db836259889f1f571cb14f",
|
"owner": "NixOS",
|
||||||
"type": "tarball",
|
"repo": "nixpkgs",
|
||||||
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1009182.ffa10e26ae11/nixexprs.tar.xz"
|
"rev": "68d8aa3d661f0e6bd5862291b5bb263b2a6595c9",
|
||||||
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"owner": "NixOS",
|
||||||
"url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770107345,
|
"lastModified": 1775710090,
|
||||||
"narHash": "sha256-tbS0Ebx2PiA1FRW8mt8oejR0qMXmziJmPaU1d4kYY9g=",
|
"narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "4533d9293756b63904b7238acb84ac8fe4c8c2c4",
|
"rev": "4c1018dae018162ec878d42fec712642d214fdfa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixpkgs-unstable",
|
"ref": "nixos-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": 1780888000,
|
|
||||||
"narHash": "sha256-U1QFxTdpDLCLdZCxQszf8GmzPSN8OewSlJLBWd7cUKc=",
|
|
||||||
"owner": "nixos",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "1971b7899453eca6a89bdbbc402b4b05ae3aa3b8",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nixos",
|
|
||||||
"ref": "master",
|
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@ -180,11 +111,10 @@
|
|||||||
"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_4",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"sops-nix": "sops-nix"
|
"sops-nix": "sops-nix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -195,11 +125,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1780547341,
|
"lastModified": 1776119890,
|
||||||
"narHash": "sha256-Gq8KNx5A7hBB3uGJaj6eQfLDIz5YdLu92gqBcvHvoUo=",
|
"narHash": "sha256-Zm6bxLNnEOYuS/SzrAGsYuXSwk3cbkRQZY0fJnk8a5M=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "9ed65852b6257fbeae4355bc24ecfea307ca759a",
|
"rev": "d4971dd58c6627bfee52a1ad4237637c0a2fb0cd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -207,39 +137,6 @@
|
|||||||
"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",
|
||||||
|
|||||||
13
flake.nix
13
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: 2026/06/10 21:17:12 by tomoron ### ########.fr #
|
# Updated: 2025/12/16 19:01:21 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/master";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
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/master";
|
url = "github:nix-community/home-manager";
|
||||||
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,18 +33,13 @@
|
|||||||
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";
|
||||||
#};
|
#};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, catppuccin, home-manager, nixos-hardware, dockermcmgr, ... }@inputs:
|
outputs = { nixpkgs, catppuccin, home-manager, nixos-hardware, ... }@inputs:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; };
|
pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; };
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
{
|
{
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoEnable = true;
|
|
||||||
flavor = "mocha";
|
flavor = "mocha";
|
||||||
|
|
||||||
dunst.enable = true;
|
dunst.enable = true;
|
||||||
|
|||||||
13
homeConfigs/global/catppuccin.nix
Normal file
13
homeConfigs/global/catppuccin.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
catppuccin = {
|
||||||
|
enable = true;
|
||||||
|
flavor = "mocha";
|
||||||
|
|
||||||
|
dunst.enable = true;
|
||||||
|
dunst.flavor="frappe";
|
||||||
|
|
||||||
|
kvantum.apply = true;
|
||||||
|
rofi.enable = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -5,7 +5,7 @@
|
|||||||
programs.rclone.remotes.nextcloud = {
|
programs.rclone.remotes.nextcloud = {
|
||||||
config = {
|
config = {
|
||||||
type = "webdav";
|
type = "webdav";
|
||||||
url = "https://dnc.tmoron.fr/remote.php/dav/files/tom";
|
url = "https://nc.tmoron.fr/remote.php/dav/files/tom";
|
||||||
vendor = "nextcloud";
|
vendor = "nextcloud";
|
||||||
user = "tom";
|
user = "tom";
|
||||||
};
|
};
|
||||||
|
|||||||
@ -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: 2026/05/18 13:22:43 by tomoron ### ########.fr #
|
# Updated: 2025/09/24 02:08:41 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ configSops ? true,
|
|||||||
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 = "25.11";
|
home.stateVersion = "24.05";
|
||||||
|
|
||||||
sops = lib.mkIf configSops{
|
sops = lib.mkIf configSops{
|
||||||
defaultSopsFile = ../secrets/secrets.yaml;
|
defaultSopsFile = ../secrets/secrets.yaml;
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
"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) / 100)).$(($(cat /sys/class/hwmon/hwmon6/fan2_input) / 100)) |\"";
|
exec = "echo \" \" \"$(cat /sys/class/hwmon/hwmon6/fan1_input).$(cat /sys/class/hwmon/hwmon6/fan2_input) |\"";
|
||||||
interval = 1;
|
interval = 1;
|
||||||
interval-if = 1;
|
interval-if = 1;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
config = lib.mkIf config.mods.firefox.enable {
|
config = lib.mkIf config.mods.firefox.enable {
|
||||||
catppuccin.firefox.enable = true;
|
catppuccin.firefox.enable = true;
|
||||||
programs.firefox.configPath = "${config.xdg.configHome}/mozilla/firefox";
|
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = lib.mkDefault true;
|
enable = lib.mkDefault true;
|
||||||
profiles.default = {
|
profiles.default = {
|
||||||
|
|||||||
@ -13,17 +13,14 @@
|
|||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
|
|
||||||
withPython3 = false;
|
|
||||||
withRuby = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
clang-tools
|
clang-tools
|
||||||
nixd
|
nixd
|
||||||
|
rust-analyzer
|
||||||
nodejs_24
|
nodejs_24
|
||||||
glsl_analyzer
|
glsl_analyzer
|
||||||
opencode
|
|
||||||
(pkgs.python3.withPackages (ps: with ps; [
|
(pkgs.python3.withPackages (ps: with ps; [
|
||||||
python-lsp-server
|
python-lsp-server
|
||||||
pylsp-mypy
|
pylsp-mypy
|
||||||
@ -36,7 +33,6 @@
|
|||||||
# vim.lsp.config('pylsp', {})
|
# vim.lsp.config('pylsp', {})
|
||||||
# '';
|
# '';
|
||||||
|
|
||||||
|
|
||||||
programs.neovim.initLua= ''
|
programs.neovim.initLua= ''
|
||||||
local cmp = require'cmp'
|
local cmp = require'cmp'
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
@ -137,54 +133,11 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
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 = ''
|
programs.neovim.extraConfig = ''
|
||||||
|
|||||||
@ -11,11 +11,8 @@
|
|||||||
wayland.windowManager.hyprland.systemd.variables = [ "--all" ];
|
wayland.windowManager.hyprland.systemd.variables = [ "--all" ];
|
||||||
|
|
||||||
programs.hyprshot.enable = true;
|
programs.hyprshot.enable = true;
|
||||||
catppuccin.hyprland.enable = false;
|
|
||||||
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland.enable = true;
|
wayland.windowManager.hyprland.enable = true;
|
||||||
wayland.windowManager.hyprland.configType = "hyprlang";
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
"$mainMod" = "SUPER";
|
"$mainMod" = "SUPER";
|
||||||
bind = [
|
bind = [
|
||||||
@ -121,6 +118,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
dwindle = {
|
dwindle = {
|
||||||
|
pseudotile = true;
|
||||||
force_split = 2;
|
force_split = 2;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -6,11 +6,11 @@
|
|||||||
# 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: 2026/06/11 16:36:57 by tomoron ### ########.fr #
|
# Updated: 2026/03/27 12:00:06 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
{ pkgs, inputs, ...}:
|
{ pkgs, ...}:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs;[
|
home.packages = with pkgs;[
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
# 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: 2026/05/07 17:41:52 by tomoron ### ########.fr #
|
# Updated: 2026/04/03 11:46:09 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -22,7 +22,6 @@
|
|||||||
timeout = 1;
|
timeout = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.tmp.cleanOnBoot = true;
|
|
||||||
boot.consoleLogLevel = 3;
|
boot.consoleLogLevel = 3;
|
||||||
boot.initrd.verbose = false;
|
boot.initrd.verbose = false;
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/12/30 20:37:07 by tomoron #+# #+# #
|
# Created: 2025/12/30 20:37:07 by tomoron #+# #+# #
|
||||||
# Updated: 2026/05/28 23:20:01 by tomoron ### ########.fr #
|
# Updated: 2026/02/21 13:54:43 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -30,11 +30,6 @@
|
|||||||
xz
|
xz
|
||||||
systemd
|
systemd
|
||||||
|
|
||||||
fribidi
|
|
||||||
harfbuzz
|
|
||||||
libgpg-error
|
|
||||||
gmp
|
|
||||||
|
|
||||||
libxcomposite
|
libxcomposite
|
||||||
libxtst
|
libxtst
|
||||||
libxrandr
|
libxrandr
|
||||||
|
|||||||
12
osConfigs/global/nix-alien.nix
Normal file
12
osConfigs/global/nix-alien.nix
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
nix-alien-pkgs = import (
|
||||||
|
builtins.fetchTarball "https://github.com/thiagokokada/nix-alien/tarball/master"
|
||||||
|
) { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.systemPackages = with nix-alien-pkgs; [
|
||||||
|
nix-alien
|
||||||
|
];
|
||||||
|
}
|
||||||
@ -6,7 +6,7 @@
|
|||||||
# 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: 2026/05/21 00:20:51 by tomoron ### ########.fr #
|
# Updated: 2026/03/30 13:46:43 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -48,9 +48,4 @@
|
|||||||
boot.kernelPackages = pkgs.linuxPackages;
|
boot.kernelPackages = pkgs.linuxPackages;
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
networking.hostId = "98e475dd";
|
networking.hostId = "98e475dd";
|
||||||
|
|
||||||
mods.docker = {
|
|
||||||
enable = true;
|
|
||||||
boot = false;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
# 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: 2026/06/11 16:35:54 by tomoron ### ########.fr #
|
# Updated: 2026/04/10 20:07:49 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -15,30 +15,25 @@
|
|||||||
{
|
{
|
||||||
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 = 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 = { #bad implementation upstream. unlock with be with fallback password until it's better
|
yubikey = {
|
||||||
# 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
|
||||||
programs.droidcam.enable = true;
|
programs.droidcam.enable = true;
|
||||||
|
|
||||||
|
|
||||||
mods.displayManager.enable = true;
|
mods.displayManager.enable = true;
|
||||||
mods.yubikey.pam.enable = true;
|
mods.yubikey.pam.enable = true;
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
@ -91,11 +86,8 @@
|
|||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
acpi # can be user (global)
|
acpi # can be user (global)
|
||||||
openvr
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# programs.alvr.enable = true;
|
|
||||||
|
|
||||||
|
|
||||||
mods.touchpad.enable = true;
|
mods.touchpad.enable = true;
|
||||||
|
|
||||||
@ -165,6 +157,4 @@
|
|||||||
Enable = "Source,Sink,Media,Socket";
|
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: 2026/06/11 16:37:35 by tomoron ### ########.fr #
|
# Updated: 2026/04/09 13:21:07 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
{ config, pkgs, inputs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
ports = [
|
ports = [
|
||||||
@ -32,10 +32,8 @@ in
|
|||||||
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;
|
||||||
@ -66,28 +64,6 @@ in
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
boot.zfs.forceImportRoot = false;
|
|
||||||
boot.zfs.extraPools = [ "raid_vol" ];
|
|
||||||
|
|
||||||
|
|
||||||
systemd.timers."nextcloud-cron-job" = {
|
|
||||||
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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.zfs = {
|
services.zfs = {
|
||||||
autoScrub.enable = true;
|
autoScrub.enable = true;
|
||||||
@ -110,7 +86,6 @@ in
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
zfs
|
zfs
|
||||||
screen #can be user (and global)
|
screen #can be user (and global)
|
||||||
(inputs.dockermcmgr.packages.${pkgs.stdenv.hostPlatform.system}.default)
|
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
@ -143,16 +118,4 @@ in
|
|||||||
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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
# 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: 2026/05/31 15:39:42 by tomoron ### ########.fr #
|
# Updated: 2025/09/06 00:56:37 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -21,6 +21,4 @@
|
|||||||
|
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
environment.etc.nixosFlakeName.text = "${flakeName}";
|
environment.etc.nixosFlakeName.text = "${flakeName}";
|
||||||
|
|
||||||
catppuccin.autoEnable = false;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user