28 Commits

Author SHA1 Message Date
18df257130 update flake
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 11m54s
2025-05-20 16:04:54 +02:00
c9ffd8a567 nodejs_23 doesn't exist in nixpkgs unsable anymore
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 15m52s
2025-05-16 00:19:28 +02:00
637f7e0d78 update flake
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 22s
2025-05-16 00:14:36 +02:00
4ff3ab574f change wallpaper on all configs instead of just laptop
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 9m18s
2025-05-12 12:35:54 +02:00
633eea8877 enable display manager on desktop
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 13m10s
2025-05-06 22:47:47 +02:00
3b7c49041c add git autocorrect
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 12m49s
2025-05-01 21:38:53 +02:00
e8fac6e226 add allow discard to cryptroot 2025-04-29 15:56:22 +02:00
3239948de6 change ffmpeg to ffmpeg-full nad add nv-codec-headers
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 21m41s
2025-04-27 16:36:28 +02:00
10c46e1e6a update flake
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 20m56s
2025-04-26 17:09:25 +02:00
5f64559676 set rofi theme by default and add wireshark to laptop config
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 14m16s
2025-04-25 00:14:11 +02:00
a82be1df2c change wallpaper_test
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 10m30s
2025-04-22 22:49:38 +02:00
f5ea128df4 update flake and install git lfs
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 8m33s
2025-04-21 20:39:21 +02:00
3207899d6c try other wallpaper, might go back
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 13m4s
2025-04-20 21:45:05 +02:00
e2e9a60907 update flake
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 10m34s
2025-04-17 17:41:03 +02:00
26448d59d6 copy screenshot to clipboard automatically
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 11m39s
2025-04-16 16:28:49 +02:00
4d140208b3 change name for chromium apps on iso
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 12m14s
2025-04-16 15:02:19 +02:00
d965848b31 create iso only when there is a push to master
Some checks failed
Build iso when a new version is pushed / test (push) Has been cancelled
2025-04-16 14:57:32 +02:00
a6eaa69a1c second try of final build
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 11m50s
2025-04-16 02:25:19 +02:00
2eeff79ea0 fix workflow release name
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 7s
2025-04-16 02:22:56 +02:00
7044d1eebb create release with curl in workflow
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 6s
2025-04-16 02:16:54 +02:00
ca2a2a8e8d re-enable iso build and test final auto release
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 7m50s
2025-04-15 21:31:38 +02:00
a5762a6a45 change tag name auto release
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 8s
2025-04-15 21:30:00 +02:00
d5df83a046 use gitea-release-action
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 9s
2025-04-15 21:28:03 +02:00
1c38dc5686 fix workflow file
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 12s
2025-04-15 20:06:46 +02:00
b55c6baf47 fix workflow syntax
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 12s
2025-04-15 20:01:32 +02:00
7887f3c650 add tag to release step 2025-04-15 20:00:48 +02:00
de34ac63af create tag automatically on push
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 13s
2025-04-15 19:54:43 +02:00
64f4635618 add version on go setup
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 17s
2025-04-15 19:47:58 +02:00
19 changed files with 113 additions and 54 deletions

View File

@ -1,6 +1,9 @@
name: Build iso when a new version is pushed name: Build iso when a new version is pushed
run-name: iso building run-name: iso building
on: [push] on:
push:
branches:
- 'master'
jobs: jobs:
test: test:
@ -14,13 +17,44 @@ jobs:
- name: install go - name: install go
uses: https://github.com/actions/setup-go@v4 uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
#- name: build iso - name: build iso
# run: make iso run: make iso
- name: get commit tag
id: vars
run: echo "TAG=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: create tag
run: |
git config user.name "gitea-actions"
git config user.email "actions@gitea.com"
git tag ${{steps.vars.outputs.TAG}}
git push origin ${{steps.vars.outputs.TAG}}
- name: create release - name: create release
uses: https://gitea.com/actions/release-action@main run: |
with: AUTH_TOKEN=${{secrets.RELEASE_TOKEN}}
files: |- TAG_NAME=${{steps.vars.outputs.TAG}}
flake.nix owner=tom
api_key: '${{secrets.RELEASE_TOKEN}}' repo=nix-config
set -e
release_create_res=$(curl -X POST -H "Authorization: token $AUTH_TOKEN" -H "content-type: application/json" -d "{\"tag_name\":\"$TAG_NAME\",\"name\":\"$TAG_NAME\"}" "https://git.tmoron.fr/api/v1/repos/$owner/$repo/releases" 2>/dev/null)
release_id=$(echo $release_create_res | jq -r .id)
echo $release_id
if [ $release_id == "null" ]; then
echo error
exit 1
fi
file_send_res=$(curl \
"https://git.tmoron.fr/api/v1/repos/$owner/$repo/releases/$release_id/assets?name=nixos.iso"\
-H "Authorization: token $AUTH_TOKEN"\
-H "accept: application/json"\
-H "Content-Type: multipart/form-data"\
-F "attachment=@nixos.iso" 2>/dev/null)
echo $file_send_res

View File

@ -1,7 +1,7 @@
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) FLAGS = --impure --cores $(THREADS) -j $(THREADS)

24
flake.lock generated
View File

@ -8,11 +8,11 @@
}, },
"locked": { "locked": {
"dir": "pkgs/firefox-addons", "dir": "pkgs/firefox-addons",
"lastModified": 1744173435, "lastModified": 1747729513,
"narHash": "sha256-q5cViHmB4k1CdncBUVBY4UUukiKQxgBJ6R18qJ3pHOA=", "narHash": "sha256-VZbReaqQ7V9iaiX7FboESQ6dqp7qa3aHJX0Li+UUBIc=",
"owner": "rycee", "owner": "rycee",
"repo": "nur-expressions", "repo": "nur-expressions",
"rev": "e7ea586f82360a06ec21f14544bc26b10aa1aea6", "rev": "efc877d7497ac06bd8c63778129b3740615d88be",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@ -29,11 +29,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1744208565, "lastModified": 1747747328,
"narHash": "sha256-vG3JJOar/r8ognz7wuwMtOJ8Knu1MMlOzHB1N6R2MbY=", "narHash": "sha256-3Gc5CqAJqpvI4gIU1Oxbl5w440b+rY9HvDzs5C0ChBA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "542efdf2dfac351498f534eb71671525b9bd45ed", "rev": "65d2282ff6cf560f54997013bd1e575fbd0a7ebf",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -44,11 +44,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1743420942, "lastModified": 1747723695,
"narHash": "sha256-b/exDDQSLmENZZgbAEI3qi9yHkuXAXCPbormD8CSJXo=", "narHash": "sha256-lSXzv33yv1O9r9Ai1MtYFDX3OKhWsZMn/5FFb4Rni/k=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "de6fc5551121c59c01e2a3d45b277a6d05077bc4", "rev": "6ac6ec6fcb410e15a60ef5ec94b8a2b35b5dd282",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -60,11 +60,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1744098102, "lastModified": 1747542820,
"narHash": "sha256-tzCdyIJj9AjysC3OuKA+tMD/kDEDAF9mICPDU7ix0JA=", "narHash": "sha256-GaOZntlJ6gPPbbkTLjbd8BMWaDYafhuuYRNrxCGnPJw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c8cd81426f45942bb2906d5ed2fe21d2f19d95b7", "rev": "292fa7d4f6519c074f0a50394dbbe69859bb6043",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -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/03/19 15:45:13 by tomoron ### ########.fr # # Updated: 2025/05/12 12:35:00 by tomoron ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@ -64,9 +64,11 @@
home.sessionPath = [ "~/.local/bin" ]; home.sessionPath = [ "~/.local/bin" ];
home.file = { #should be able to make most of these in nix configs home.file = { #should be able to make most of these in nix configs
".config/wallpaper.png".source = lib.mkDefault utils/wallpaper.png; ".config/wallpaper.png".source = lib.mkDefault utils/wallpaper_test.png;
".config/pc.jpg".source = lib.mkDefault utils/pc.jpg; ".config/pc.jpg".source = lib.mkDefault utils/pc.jpg;
".config/rofi/config.rasi".text = "@theme \"rounded-nord-dark.rasi\"";
".local/share/rofi/themes".source = "${builtins.fetchGit { ".local/share/rofi/themes".source = "${builtins.fetchGit {
url = "https://github.com/newmanls/rofi-themes-collection"; url = "https://github.com/newmanls/rofi-themes-collection";

View File

@ -1,5 +1,5 @@
{ lib, pkgs, ... }: { lib, pkgs, ... }:
{ {
mods.discord.enable = false; mods.nonChromium.enable = false;
} }

View File

@ -38,6 +38,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
stremio stremio
blender blender
wireshark
]; ];
#mods.sync.syncedAdditions = ["VirtualBox VMs"]; #mods.sync.syncedAdditions = ["VirtualBox VMs"];

View File

@ -11,7 +11,7 @@
programs.alacritty = { programs.alacritty = {
enable = true; enable = true;
settings = { settings = {
window.opacity = 0.9; window.opacity = 0.95;
env.XTERM = "xterm-256color"; env.XTERM = "xterm-256color";
font.size = 9; font.size = 9;
}; };

View File

@ -1,16 +0,0 @@
{ config, lib, pkgs, ... }:
{
options.mods.discord.enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "install discord";
};
config = lib.mkIf config.mods.discord.enable {
home.packages = with pkgs;[
discord
google-chrome
];
};
}

View File

@ -10,6 +10,7 @@
config = lib.mkIf config.mods.git.enable { config = lib.mkIf config.mods.git.enable {
programs.git = { programs.git = {
enable = true; enable = true;
lfs.enable = true;
userEmail = "tomoron@student.42angouleme.fr"; userEmail = "tomoron@student.42angouleme.fr";
userName = "tomoron"; userName = "tomoron";
extraConfig = { extraConfig = {
@ -17,6 +18,7 @@
pull.rebase = true; pull.rebase = true;
push.autoSetupRemote = true; push.autoSetupRemote = true;
rerere.enabled = true; rerere.enabled = true;
help.autocorrect = 1;
}; };
aliases = { aliases = {
fuck = "!f() { git reset --hard \"@{upstream}\" && git restore . && git clean -f .; };f"; fuck = "!f() { git reset --hard \"@{upstream}\" && git restore . && git clean -f .; };f";

View File

@ -0,0 +1,16 @@
{ 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
];
};
}

View File

@ -18,7 +18,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
clang-tools clang-tools
nixd nixd
nodejs_23 nodejs_24
glsl_analyzer glsl_analyzer
]; ];

View File

@ -13,7 +13,7 @@
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
"$mainMod" = "SUPER"; "$mainMod" = "SUPER";
bind = [ bind = [
" , Print, exec, grim -t jpeg -g \"$(slurp)\" ~/screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg" " , Print, exec, grim -t png -g \"$(slurp)\" /dev/stdout | tee ~/screenshots/$(date +%Y-%m-%d_%H-%m-%s).png | wl-copy -t image/png"
"$mainMod, Return, exec, alacritty" "$mainMod, Return, exec, alacritty"
"CTRL_ALT, Q, killactive," "CTRL_ALT, Q, killactive,"
"SUPER_ALT, Q, exit," "SUPER_ALT, Q, exit,"

View File

@ -58,6 +58,9 @@
#cpu.high { #cpu.high {
color: #ff2222; color: #ff2222;
} }
#disk.high {
color: #ff2222;
}
''; '';
programs.waybar.settings.mainBar = { programs.waybar.settings.mainBar = {
@ -141,6 +144,7 @@
disk = { disk = {
format =" 󰋊 {percentage_used}% |"; format =" 󰋊 {percentage_used}% |";
states.high = "5";
}; };
"custom/pipe" = { "custom/pipe" = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 797 KiB

View File

@ -6,7 +6,7 @@
# 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/04/03 13:24:06 by tomoron ### ########.fr # # Updated: 2025/04/23 20:31:46 by tomoron ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@ -46,7 +46,7 @@
users.users.tom = { users.users.tom = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "docker" "libvirtd" "dialout"]; extraGroups = [ "wheel" "docker" "libvirtd" "dialout" "wireshark"];
initialPassword = "password"; initialPassword = "password";
}; };

View File

@ -2,12 +2,6 @@
{ config, lib, inputs, pkgs, ... }: { config, lib, inputs, pkgs, ... }:
{ {
imports = [
../modules/game.nix
../modules/nvidia.nix
../modules/vboxHost.nix
];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
cudatoolkit cudatoolkit
lm_sensors lm_sensors
@ -18,6 +12,7 @@
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;
boot.kernelModules = [ "kvm-intel" "nvidia" ]; boot.kernelModules = [ "kvm-intel" "nvidia" ];
mods.displayManager.enable = true;
hardware.nvidia = { hardware.nvidia = {

View File

@ -4,9 +4,10 @@
boot.kernelParams = [ "kvm.enable_virt_at_load=0" ]; boot.kernelParams = [ "kvm.enable_virt_at_load=0" ];
boot.initrd.luks.devices.cryptroot.device = "/dev/disk/by-uuid/a4593b01-069d-4a5d-a550-74a762b89b3f"; boot.initrd.luks.devices.cryptroot.device = "/dev/disk/by-uuid/a4593b01-069d-4a5d-a550-74a762b89b3f";
boot.initrd.luks.devices.cryptroot.allowDiscards = true;
services.displayManager.enable = true; mods.displayManager.enable = true;
services.displayManager.ly.enable = true; networking.firewall.enable = false;
networking.hostName = "patate-douce"; networking.hostName = "patate-douce";
networking.wireless.enable = true; networking.wireless.enable = true;
@ -52,6 +53,9 @@
services.udev.packages = [ pkgs.yubikey-personalization ]; services.udev.packages = [ pkgs.yubikey-personalization ];
programs.wireshark.enable = true;
programs.wireshark.usbmon.enable = true;
# boot.plymouth = { # boot.plymouth = {
# enable = true; # enable = true;
# theme = "ycontre-glow"; # theme = "ycontre-glow";

View File

@ -0,0 +1,15 @@
{config, lib, ... }:
{
options.mods.displayManager.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "enable the display manager";
};
config = lib.mkIf config.mods.displayManager.enable {
services.displayManager.enable = true;
services.displayManager.ly.enable = true;
};
}

View File

@ -21,9 +21,11 @@
usbutils usbutils
man-pages man-pages
stress stress
ffmpeg
cryptsetup cryptsetup
acpi acpi
dconf dconf
ffmpeg-full
nv-codec-headers
]; ];
} }