1 Commits

Author SHA1 Message Date
34e087b815 change home location
Some checks are pending
Build iso when a new version is pushed / test (push) Waiting to run
2025-04-09 16:50:26 +02:00
19 changed files with 56 additions and 146 deletions

View File

@ -1,9 +1,6 @@
name: Build iso when a new version is pushed
run-name: iso building
on:
push:
branches:
- 'master'
on: [push]
jobs:
test:
@ -11,50 +8,13 @@ jobs:
steps:
- name: get repo
uses: actions/checkout@v4.2.2
- name: install nix
uses: https://github.com/cachix/install-nix-action@v31
- name: install go
uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: build 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}}
# - uses: https://github.com/cachix/install-nix-action@v31
# - name: create iso image
# run: make iso
- name: create release
run: |
AUTH_TOKEN=${{secrets.RELEASE_TOKEN}}
TAG_NAME=${{steps.vars.outputs.TAG}}
owner=tom
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
uses: https://gitea.com/actions/release-action@main
with:
files: |-
nixos.iso
api_key: '${{secrets.RELEASE_TOKEN}}'

View File

@ -1,7 +1,7 @@
HOST ?= $(file < /etc/nixosFlakeName)
THREADS ?= $(shell nproc)
FLAKE ?= .
MODE = switch
MODE = boot
FLAGS = --impure --cores $(THREADS) -j $(THREADS)

57
flake.lock generated
View File

@ -2,17 +2,18 @@
"nodes": {
"firefox-addons": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"dir": "pkgs/firefox-addons",
"lastModified": 1745419403,
"narHash": "sha256-pQOOn4UntLSwnL3xZ1JAr3IDhXpL+kTS7Zw8ll59K9Q=",
"lastModified": 1743119709,
"narHash": "sha256-tlJY7MfAena/yi3lmd7y7vQGpLma4Q1BLtO4dvzF/Vs=",
"owner": "rycee",
"repo": "nur-expressions",
"rev": "346899a4b3b651ab447c61e0c8e9d8a1454cda72",
"rev": "f8861a4b09a181dd88f6626d0202d9225ae85d65",
"type": "gitlab"
},
"original": {
@ -22,6 +23,21 @@
"type": "gitlab"
}
},
"flake-utils": {
"locked": {
"lastModified": 1629284811,
"narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c5d161cc0af116a2e17f54316f0bf43f0819785c",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -29,11 +45,11 @@
]
},
"locked": {
"lastModified": 1745627989,
"narHash": "sha256-mOCdFmxocBPae7wg7RYWOtJzWMJk34u9493ItY0dVqw=",
"lastModified": 1743345555,
"narHash": "sha256-Df8PxfWYF/z6RWcsKuXSks/FOCOCA7EiRdlWE2u0rRc=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "4d2d32231797bfa7213ae5e8ac89d25f8caaae82",
"rev": "2760046f34780cc72f67e06240ccf6a7a3ae3765",
"type": "github"
},
"original": {
@ -44,11 +60,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1745503349,
"narHash": "sha256-bUGjvaPVsOfQeTz9/rLTNLDyqbzhl0CQtJJlhFPhIYw=",
"lastModified": 1743167577,
"narHash": "sha256-I09SrXIO0UdyBFfh0fxDq5WnCDg8XKmZ1HQbaXzMA1k=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "f7bee55a5e551bd8e7b5b82c9bc559bc50d868d1",
"rev": "0ed819e708af17bfc4bbc63ee080ef308a24aa42",
"type": "github"
},
"original": {
@ -60,11 +76,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1745526057,
"narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=",
"lastModified": 1743095683,
"narHash": "sha256-gWd4urRoLRe8GLVC/3rYRae1h+xfQzt09xOfb0PaHSk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "f771eb401a46846c1aebd20552521b233dd7e18b",
"rev": "5e5402ecbcb27af32284d4a62553c019a3a49ea6",
"type": "github"
},
"original": {
@ -74,22 +90,6 @@
"type": "github"
}
},
"pkgs-docker-2750": {
"locked": {
"lastModified": 1737525964,
"narHash": "sha256-3wFonKmNRWKq1himW9N3TllbeGIHFACI5vmLpk6moF8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5757bbb8bd7c0630a0cc4bb19c47e588db30b97c",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5757bbb8bd7c0630a0cc4bb19c47e588db30b97c",
"type": "github"
}
},
"plymouth-theme-ycontre-glow": {
"inputs": {
"nixpkgs": [
@ -116,7 +116,6 @@
"home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"pkgs-docker-2750": "pkgs-docker-2750",
"plymouth-theme-ycontre-glow": "plymouth-theme-ycontre-glow"
}
}

View File

@ -6,7 +6,7 @@
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/10/17 18:15:24 by tomoron #+# #+# #
# Updated: 2025/04/13 13:35:56 by tomoron ### ########.fr #
# Updated: 2025/03/19 15:48:10 by tomoron ### ########.fr #
# #
# **************************************************************************** #
@ -30,7 +30,6 @@
url = "git+file:///home/tom/desktop/bordel/ycontre-glow";
inputs.nixpkgs.follows = "nixpkgs";
};
pkgs-docker-2750.url = "github:NixOS/nixpkgs?rev=5757bbb8bd7c0630a0cc4bb19c47e588db30b97c";
};
outputs = { nixpkgs, home-manager, nixos-hardware, ... }@inputs:
@ -76,7 +75,7 @@
homeConfigurations = {
vbox = homeConfig { flakeName = "vbox"; };
ft = homeConfig { flakeName = "ft"; username = "tomoron"; homeDir = "/nfs/homes/tomoron";};
ft = homeConfig { flakeName = "ft"; username = "tomoron"; homeDir = "/home/tomoron";};
laptop = homeConfig { flakeName = "laptop"; };
desktop = homeConfig { flakeName = "desktop"; };
server = homeConfig { flakeName = "server"; };

View File

@ -6,7 +6,7 @@
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/10/17 18:15:38 by tomoron #+# #+# #
# Updated: 2025/04/25 00:08:54 by tomoron ### ########.fr #
# Updated: 2025/03/19 15:45:13 by tomoron ### ########.fr #
# #
# **************************************************************************** #
@ -64,11 +64,9 @@
home.sessionPath = [ "~/.local/bin" ];
home.file = { #should be able to make most of these in nix configs
".config/wallpaper.png".source = lib.mkDefault utils/wallpaper.png;
".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 {
url = "https://github.com/newmanls/rofi-themes-collection";

View File

@ -12,7 +12,7 @@
mods.x11.enable = true;
programs.firefox.enable = false;
mods.sync.homeFolder = "/sgoinfre/goinfre/Perso/tomoron";
mods.sync.homeFolder = "/home/tomoron/sync";
mods.sync.defaultSynced = false;
mods.sync.syncedAdditions = [ "42_desktop" "Downloads" ];
mods.sync.customHostName = "pc42";

View File

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

View File

@ -1,7 +1,6 @@
{ lib, pkgs, ... }:
{
home.file.".config/wallpaper.png".source = ../utils/wallpaper_test.png;
programs.waybar.settings.mainBar = {
modules-right = lib.mkBefore ["custom/fans" "custom/dgpu"];
"custom/dgpu" = {
@ -39,7 +38,6 @@
home.packages = with pkgs; [
stremio
blender
wireshark
];
#mods.sync.syncedAdditions = ["VirtualBox VMs"];

View File

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

View File

@ -10,7 +10,6 @@
config = lib.mkIf config.mods.git.enable {
programs.git = {
enable = true;
lfs.enable = true;
userEmail = "tomoron@student.42angouleme.fr";
userName = "tomoron";
extraConfig = {

View File

@ -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
];
};
}

View File

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

View File

@ -51,16 +51,6 @@
#temperature.critical {
color: #ff2222;
}
#battery.critical {
color: #ff2222;
}
#cpu.high {
color: #ff2222;
}
#disk.high {
color: #ff2222;
}
'';
programs.waybar.settings.mainBar = {
@ -71,7 +61,7 @@
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"];
modules-right = ["disk" "pulseaudio" "network" "custom/pipe" "cpu" "temperature" "custom/pipe" "memory" "battery" "clock"];
"hyprland/workspaces" = {
disable-scroll = true;
@ -86,9 +76,8 @@
};
cpu = {
format = " {usage}% ";
states.high = 80;
interval = 5;
format = " {usage}% |";
interval = 5;
};
memory = {
@ -98,15 +87,13 @@
battery = {
bat = "BAT0";
full-at = 79;
states = {
good = 20;
good = 79;
warning = 30;
critical = 15;
};
format-time = " {H}:{m}";
format-discharging = " {icon} {capacity}%{time} |";
format-charging = " {capacity}%{time} |";
format-plugged = "";
format = " {icon} {capacity}%{time} |";
format-icons = [" " " " " " " " " "];
interval = 10;
};
@ -144,7 +131,6 @@
disk = {
format =" 󰋊 {percentage_used}% |";
states.high = "5";
};
"custom/pipe" = {

View File

@ -6,7 +6,7 @@
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2025/02/09 22:01:56 by tomoron #+# #+# #
# Updated: 2025/04/15 15:58:07 by tomoron ### ########.fr #
# Updated: 2025/03/27 18:53:17 by tomoron ### ########.fr #
# #
# **************************************************************************** #
@ -18,6 +18,8 @@
activate-linux
unison
discord
google-chrome
brightnessctl
playerctl
python3

Binary file not shown.

Before

Width:  |  Height:  |  Size: 797 KiB

View File

@ -6,7 +6,7 @@
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2025/02/09 01:43:46 by tomoron #+# #+# #
# Updated: 2025/04/23 20:31:46 by tomoron ### ########.fr #
# Updated: 2025/04/03 13:24:06 by tomoron ### ########.fr #
# #
# **************************************************************************** #
@ -46,7 +46,7 @@
users.users.tom = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" "libvirtd" "dialout" "wireshark"];
extraGroups = [ "wheel" "docker" "libvirtd" "dialout"];
initialPassword = "password";
};

View File

@ -17,9 +17,6 @@
home-manager.extraSpecialArgs = { inherit inputs; inherit pkgs; isOs = true;};
home-manager.users.tom = {
imports = [
../../homeConfigs/home.nix
../../homeConfigs/hosts/iso.nix
];
imports = [ ../../homeConfigs/home.nix ];
};
}

View File

@ -7,7 +7,6 @@
services.displayManager.enable = true;
services.displayManager.ly.enable = true;
networking.firewall.enable = false;
networking.hostName = "patate-douce";
networking.wireless.enable = true;
@ -53,9 +52,6 @@
services.udev.packages = [ pkgs.yubikey-personalization ];
programs.wireshark.enable = true;
programs.wireshark.usbmon.enable = true;
# boot.plymouth = {
# enable = true;
# theme = "ycontre-glow";

View File

@ -26,8 +26,6 @@
libnvidia-container
screen
];
boot.supportedFilesystems = [ "zfs" ];
# services.cron.enable = false;
@ -73,7 +71,6 @@
virtualisation.docker = {
liveRestore = false;
enableOnBoot = true;
package = inputs.pkgs-docker-2750.legacyPackages."x86_64-linux".docker;
# daemon.settings = {
# runtimes.nvidia.path = "${pkgs.nvidia-docker}/bin/nvidia-container-runtime";
# exec-opts = ["native.cgroupdriver=cgroupfs"];