Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1cad2253b3 | |||
|
091e23932d
|
|||
|
c1bebc9df1
|
|||
|
7d79e9d8ae
|
|||
|
ebd650e854
|
|||
|
5becaf1588
|
|||
|
447c95c22d
|
|||
|
33c03199a0
|
|||
| 3a0f0192f4 | |||
|
6d045d1d4d
|
|||
|
86719c309a
|
|||
| bdc61737cb | |||
| 05861081ce | |||
|
724f5361e6
|
|||
|
c0223fdd09
|
|||
|
0e8dfb98c5
|
|||
|
26c4bb6495
|
@ -3,7 +3,7 @@ run-name: iso building
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'iso'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
||||
42
flake.lock
generated
42
flake.lock
generated
@ -5,11 +5,11 @@
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1763110997,
|
||||
"narHash": "sha256-S2vF+3D/9vna3/vBV7LHiGUbp+ltPsQhvccIyim6VQg=",
|
||||
"lastModified": 1771587924,
|
||||
"narHash": "sha256-eVYOGmF8nQBhudJyU6lHdgJI87kvGz8JyCq5/Vi9Mjk=",
|
||||
"owner": "catppuccin",
|
||||
"repo": "nix",
|
||||
"rev": "e6928cdd3dd20636326c2756d2bc8fd1cd825768",
|
||||
"rev": "b0c65edbf31c2ad3d84438d82c2310f2c28373f3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -26,11 +26,11 @@
|
||||
},
|
||||
"locked": {
|
||||
"dir": "pkgs/firefox-addons",
|
||||
"lastModified": 1763352296,
|
||||
"narHash": "sha256-3501S69Eft93hXhLUzdnwP4xVIO8mZ1zrZWPsSbnJLU=",
|
||||
"lastModified": 1771669320,
|
||||
"narHash": "sha256-LqmgIBpjpMQKkHKCSGJkluMVFFoBdkUhJnu+Cq+jgGc=",
|
||||
"owner": "rycee",
|
||||
"repo": "nur-expressions",
|
||||
"rev": "63f8d49eee3e1e79bbe325393f9de48266e337c5",
|
||||
"rev": "496abb3aef244b896bf7cdd65e071cf624f16338",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
@ -47,11 +47,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1763313531,
|
||||
"narHash": "sha256-yvdCYUL85zEDp2NzPUBmaNBXP6KnWEOhAk3j7PTfsKw=",
|
||||
"lastModified": 1771647911,
|
||||
"narHash": "sha256-18liNHHwOmcaKCpOptE3wLW97fm5v7RTLiZBecX7km0=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "3670a78eee49deebe4825fc8ecc46b172d1a8391",
|
||||
"rev": "436b27742c996b75e2baf8e835e3b3eae0c9fbd4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -62,11 +62,11 @@
|
||||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1762847253,
|
||||
"narHash": "sha256-BWWnUUT01lPwCWUvS0p6Px5UOBFeXJ8jR+ZdLX8IbrU=",
|
||||
"lastModified": 1771423359,
|
||||
"narHash": "sha256-yRKJ7gpVmXbX2ZcA8nFi6CMPkJXZGjie2unsiMzj3Ig=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "899dc449bc6428b9ee6b3b8f771ca2b0ef945ab9",
|
||||
"rev": "740a22363033e9f1bb6270fbfb5a9574067af15b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -78,11 +78,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1762111121,
|
||||
"narHash": "sha256-4vhDuZ7OZaZmKKrnDpxLZZpGIJvAeMtK6FKLJYUtAdw=",
|
||||
"lastModified": 1771369470,
|
||||
"narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b3d51a0365f6695e7dd5cdf3e180604530ed33b4",
|
||||
"rev": "0182a361324364ae3f436a63005877674cf45efb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -94,11 +94,11 @@
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1763283776,
|
||||
"narHash": "sha256-Y7TDFPK4GlqrKrivOcsHG8xSGqQx3A6c+i7novT85Uk=",
|
||||
"lastModified": 1771369470,
|
||||
"narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "50a96edd8d0db6cc8db57dab6bb6d6ee1f3dc49a",
|
||||
"rev": "0182a361324364ae3f436a63005877674cf45efb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -125,11 +125,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1763264763,
|
||||
"narHash": "sha256-N0BEoJIlJ+M6sWZJ8nnfAjGY9VLvM6MXMitRenmhBkY=",
|
||||
"lastModified": 1771524872,
|
||||
"narHash": "sha256-eksVUcUsfS9mQx4D9DrYu88u9w70bAf+n6KmTDuIGEE=",
|
||||
"owner": "Mic92",
|
||||
"repo": "sops-nix",
|
||||
"rev": "882e56c8293e44d57d882b800a82f8b2ee7a858f",
|
||||
"rev": "e85540ffe97322dc1fea14dd11cdc2f59d540ac7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
11
flake.nix
11
flake.nix
@ -6,7 +6,7 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2024/10/17 18:15:24 by tomoron #+# #+# #
|
||||
# Updated: 2025/09/24 02:10:00 by tomoron ### ########.fr #
|
||||
# Updated: 2025/12/16 19:01:21 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -46,7 +46,12 @@
|
||||
osConfig = {flakeName, extraModules ? []}: nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs; flakeName = flakeName; };
|
||||
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
|
||||
];
|
||||
};
|
||||
@ -85,7 +90,7 @@
|
||||
|
||||
|
||||
homeConfigurations = {
|
||||
vbox = homeConfig { flakeName = "vbox";};
|
||||
default = homeConfig { flakeName = "default";};
|
||||
ft = homeConfig { flakeName = "ft"; username = "tomoron"; homeDir = "/home/tomoron"; sops = false;};
|
||||
laptop = homeConfig { flakeName = "laptop"; };
|
||||
desktop = homeConfig { flakeName = "desktop"; };
|
||||
|
||||
@ -4,13 +4,16 @@
|
||||
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"
|
||||
}
|
||||
'';
|
||||
|
||||
home.sessionVariables.BROWSER = "yazi";
|
||||
programs.yazi.shellWrapperName = "y";
|
||||
# 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"
|
||||
# }
|
||||
# '';
|
||||
}
|
||||
|
||||
@ -27,6 +27,11 @@
|
||||
", XF86Launch1, exec, hyprlock"
|
||||
", XF86Launch4, exec, pkill activate-linux"
|
||||
];
|
||||
bindl = [
|
||||
",switch:off:Lid Switch,exec,hyprctl keyword monitor \"eDP-1, 1920x1080@120, 0x0, 1\""
|
||||
",switch:on:Lid Switch,exec,hyprctl keyword monitor \"eDP-1, disable\""
|
||||
|
||||
];
|
||||
monitor= [
|
||||
# "eDP-1, modeline 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync, 0x0, 1"
|
||||
"eDP-1, 1920x1080@120, 0x0, 1"
|
||||
@ -39,79 +44,7 @@
|
||||
blender
|
||||
wireshark
|
||||
localsend
|
||||
impala
|
||||
];
|
||||
|
||||
# programs.superfile = {
|
||||
# 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" ""];
|
||||
#
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
help.autocorrect = 1;
|
||||
user.signingkey = "251B4BD73683A8DF13D760A868BFAFE31DF313AD";
|
||||
commit.gpgsign = true;
|
||||
aliase = {
|
||||
alias = {
|
||||
fuck = "!f() { git reset --hard \"@{upstream}\" && git restore . && git clean -f .; };f";
|
||||
back = "reset HEAD~";
|
||||
};
|
||||
|
||||
@ -46,7 +46,7 @@ in
|
||||
text = (lib.strings.concatStrings [''
|
||||
auto=true
|
||||
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 ))
|
||||
(if !(isNull config.mods.sync.customHostName) then "\nclientHostName=${config.mods.sync.customHostName}" else "")
|
||||
|
||||
@ -2,35 +2,79 @@
|
||||
|
||||
{
|
||||
options.mods.vim.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "install and configure vim";
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "install and configure vim";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mods.vim.enable {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
};
|
||||
vimAlias = true;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
clang-tools
|
||||
nixd
|
||||
nodejs_24
|
||||
glsl_analyzer
|
||||
glsl_analyzer
|
||||
(pkgs.python3.withPackages (ps: with ps; [
|
||||
python-lsp-server
|
||||
pylsp-mypy
|
||||
python-lsp-ruff
|
||||
pycodestyle
|
||||
]))
|
||||
];
|
||||
|
||||
programs.neovim.extraConfig = ''
|
||||
# programs.neovim.extraLuaConfig = ''
|
||||
# vim.lsp.config('pylsp', {})
|
||||
# '';
|
||||
|
||||
programs.neovim.initLua= ''
|
||||
local coq = require "coq"
|
||||
|
||||
vim.lsp.config('clangd', coq.lsp_ensure_capabilities({}))
|
||||
vim.lsp.enable('clangd')
|
||||
|
||||
vim.lsp.config('nixd', coq.lsp_ensure_capabilities({}))
|
||||
vim.lsp.enable('nixd')
|
||||
|
||||
vim.lsp.config('glsl_analyzer', coq.lsp_ensure_capabilities({}))
|
||||
vim.lsp.enable('glsl_analyzer')
|
||||
|
||||
vim.lsp.config('pylsp', coq.lsp_ensure_capabilities({
|
||||
settings = {
|
||||
pylsp = {
|
||||
plugins = {
|
||||
pycodestyle = {
|
||||
ignore = {'E501'},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}))
|
||||
vim.lsp.enable('pylsp')
|
||||
|
||||
vim.diagnostic.config({
|
||||
virtual_lines = {
|
||||
current_line = true
|
||||
}
|
||||
})
|
||||
|
||||
'';
|
||||
|
||||
programs.neovim.extraConfig = ''
|
||||
set number
|
||||
set ai
|
||||
autocmd BufWinLeave *.* mkview
|
||||
autocmd BufWinEnter *.* silent! loadview
|
||||
autocmd VimEnter * COQnow --shut-up
|
||||
set tabstop=4
|
||||
set scrolloff=10
|
||||
set smartindent
|
||||
set shiftwidth=4
|
||||
set shiftwidth=4
|
||||
map <silent> <C-N> :bnext<CR>
|
||||
map <silent> <C-P> :bprevious<CR>
|
||||
nmap <silent> <c-k> :wincmd k<CR>
|
||||
@ -57,41 +101,42 @@
|
||||
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 '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 'ms-jpq/coq_nvim', { 'branch': 'coq' }
|
||||
Plug 'ms-jpq/coq.artifacts', { 'branch': 'artifacts' }
|
||||
Plug 'ms-jpq/coq.thirdparty', { 'branch': '3p' }
|
||||
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>
|
||||
nnoremap <leader>fi <cmd>Fern %:h<cr>
|
||||
|
||||
let g:user42 = 'tomoron'
|
||||
let g:mail42 = 'tomoron@student.42angouleme.fr'
|
||||
let g:fern#renderer = "nerdfont"
|
||||
'';
|
||||
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 {
|
||||
".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 = "${builtins.fetchGit {
|
||||
".config/nvim/plugin/stdheader.vim".source = "${fetchGit {
|
||||
url = "https://github.com/42Paris/42header";
|
||||
rev = "e6e6b191871545e0d43f1aad817070bc806b8fa7";
|
||||
ref = "master";
|
||||
|
||||
@ -168,7 +168,11 @@
|
||||
layout = "dwindle";
|
||||
};
|
||||
|
||||
layerrule = "noanim, selection";
|
||||
layerrule = {
|
||||
name = "no_anim_for_selection";
|
||||
no_anim = "on";
|
||||
"match:namespace" = "selection";
|
||||
};
|
||||
|
||||
cursor.no_warps = true;
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/02/09 22:01:56 by tomoron #+# #+# #
|
||||
# Updated: 2025/11/04 16:48:12 by tomoron ### ########.fr #
|
||||
# Updated: 2026/02/06 23:43:40 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -34,7 +34,6 @@
|
||||
unison
|
||||
brightnessctl
|
||||
playerctl
|
||||
python3
|
||||
vlc
|
||||
nix-index
|
||||
yubikey-manager
|
||||
@ -46,5 +45,7 @@
|
||||
yubikey-personalization
|
||||
sops
|
||||
libreoffice
|
||||
doxygen
|
||||
qimgv
|
||||
];
|
||||
}
|
||||
|
||||
143
osConfigs/global/ld.nix
Normal file
143
osConfigs/global/ld.nix
Normal file
@ -0,0 +1,143 @@
|
||||
# **************************************************************************** #
|
||||
# #
|
||||
# ::: :::::::: #
|
||||
# ld.nix :+: :+: :+: #
|
||||
# +:+ +:+ +:+ #
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/12/30 20:37:07 by tomoron #+# #+# #
|
||||
# Updated: 2026/02/21 13:54:43 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
|
||||
|
||||
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
|
||||
];
|
||||
}
|
||||
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> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/09/06 00:57:21 by tomoron #+# #+# #
|
||||
# Updated: 2025/09/06 00:57:26 by tomoron ### ########.fr #
|
||||
# Updated: 2025/12/30 18:12:05 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -21,5 +21,7 @@
|
||||
ntfs3g
|
||||
cryptsetup
|
||||
acpi
|
||||
|
||||
nss
|
||||
];
|
||||
}
|
||||
|
||||
8
osConfigs/global/sops.nix
Normal file
8
osConfigs/global/sops.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{lib, ...}:
|
||||
|
||||
{
|
||||
sops = {
|
||||
defaultSopsFile = ../../secrets/secrets.yaml;
|
||||
age.keyFile = "/home/tom/.config/sops/age/keys.txt";
|
||||
};
|
||||
}
|
||||
@ -6,7 +6,7 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/09/05 23:42:18 by tomoron #+# #+# #
|
||||
# Updated: 2025/09/06 00:57:32 by tomoron ### ########.fr #
|
||||
# Updated: 2026/01/13 16:32:42 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/09/06 00:57:04 by tomoron #+# #+# #
|
||||
# Updated: 2025/11/17 11:46:11 by tomoron ### ########.fr #
|
||||
# Updated: 2025/12/23 18:41:48 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -43,4 +43,5 @@
|
||||
# };
|
||||
|
||||
services.openssh.enable = true;
|
||||
programs.droidcam.enable = true;
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/09/06 00:56:57 by tomoron #+# #+# #
|
||||
# Updated: 2025/10/29 21:15:44 by tomoron ### ########.fr #
|
||||
# Updated: 2026/02/03 14:40:35 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -40,11 +40,13 @@
|
||||
networking.firewall.enable = false;
|
||||
|
||||
networking.hostName = "patate-douce";
|
||||
networking.wireless.enable = true;
|
||||
# networking.wireless.enable = true;
|
||||
networking.networkmanager.wifi.backend = "iwd";
|
||||
networking.wireless.iwd.enable = true;
|
||||
networking.wireless.allowAuxiliaryImperativeNetworks = true;
|
||||
networking.networkmanager.enable = false;
|
||||
|
||||
specialisation.vfio_ready.configuration = {
|
||||
boot.kernel.sysctl."vm.nr_hugepages" = 5120;
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [ kvmfr ];
|
||||
boot.kernelModules = [ "kvmfr" ];
|
||||
boot.extraModprobeConfig = ''
|
||||
@ -57,21 +59,25 @@
|
||||
"/dev/random", "/dev/urandom",
|
||||
"/dev/ptmx", "/dev/kvm",
|
||||
"/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 = ''
|
||||
SUBSYSTEM=="kvmfr", OWNER="tom", GROUP="kvm", MODE="0660"
|
||||
'';
|
||||
environment.systemPackages = with pkgs; [ looking-glass-client ];
|
||||
services.supergfxd.settings.mode = "Vfio";
|
||||
};
|
||||
services.udev.extraRules = ''
|
||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="2e3c", ATTRS{idProduct}=="df11", TAG+="uaccess"
|
||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", TAG+="uaccess"
|
||||
'';
|
||||
|
||||
|
||||
networking.dhcpcd.enable = false;
|
||||
systemd.network.enable = true;
|
||||
networking.useNetworkd = true;
|
||||
|
||||
programs.noisetorch.enable = true;
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
@ -81,8 +87,6 @@
|
||||
|
||||
mods.touchpad.enable = true;
|
||||
|
||||
# programs.gamescope.capSysNice = true;
|
||||
|
||||
mods.powerSave = {
|
||||
enable = true;
|
||||
powahCommandAdditions = [
|
||||
@ -124,7 +128,7 @@
|
||||
mods.nvidia.prime = true;
|
||||
|
||||
|
||||
services.usbmuxd.enable = true; #hangs when shutting down
|
||||
services.usbmuxd.enable = true; #sometimes hangs when shutting down
|
||||
|
||||
# boot.plymouth = {
|
||||
# enable = true;
|
||||
@ -135,4 +139,7 @@
|
||||
# };
|
||||
|
||||
services.flatpak.enable = true;
|
||||
|
||||
|
||||
services.k3s.enable = true;
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/09/06 00:57:09 by tomoron #+# #+# #
|
||||
# Updated: 2025/09/06 01:26:26 by tomoron ### ########.fr #
|
||||
# Updated: 2026/01/27 18:56:23 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -20,6 +20,7 @@ let
|
||||
8083 137 138 139 445 548 3702 5357 #prob some samba shit
|
||||
24454 #minecraft voice chat
|
||||
25565 # minecraft server
|
||||
9091 # transmission web interface
|
||||
];
|
||||
portRanges = [
|
||||
{from = 47950; to = 49000;} #moonlight (wolf)
|
||||
@ -31,13 +32,32 @@ in
|
||||
config.boot.kernelPackages.gasket #driver for google coral edge tpu
|
||||
];
|
||||
|
||||
|
||||
services.openssh.enable = true;
|
||||
services.openssh.settings.PasswordAuthentication = false;
|
||||
services.openssh.ports = [ 1880 ];
|
||||
|
||||
sops.secrets."cloudflared/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 = ''
|
||||
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" ];
|
||||
|
||||
@ -68,6 +88,10 @@ in
|
||||
services.fail2ban.enable = true;
|
||||
services.fail2ban.bantime = "5h";
|
||||
|
||||
mods.nvidia.enable = true;
|
||||
mods.nvidia.beta = true;
|
||||
mods.nvidia.containerToolkit = true;
|
||||
|
||||
mods.docker = {
|
||||
enable = true;
|
||||
boot = true;
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
# 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 #
|
||||
# Updated: 2025/11/17 14:32:13 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
services.displayManager.ly.enable = true;
|
||||
services.displayManager.ly.settings =
|
||||
{
|
||||
animation = "doom";
|
||||
animation = "gameoflife";
|
||||
min_refresh_delta = 50;
|
||||
bigclock = "en";
|
||||
sleep_cmd = "systemctl sleep";
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# 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 {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "enable nvidia prime offload (saves battery)";
|
||||
description = "enable nvidia prime offload (saves battery). prime ?";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
#ENC[AES256_GCM,data:1NcFm2XqZzmSSlr8wH4aXHDBhf+lOaZ/gUeK2T/U/hIBbqtfKtw=,iv:yS5iogRp6e3We/7wZnGy0XJzqLVfRVKlDhUs+tamcJ0=,tag:+z/qqF9n6/hQfv9aWXkCDQ==,type:comment]
|
||||
nextcloud_fuse:
|
||||
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]
|
||||
sops:
|
||||
age:
|
||||
- recipient: age1sjzkhwr8ycdsmuj8xg8y4v2hcpuq9vethnhytxtwzeury692dsxqf80fwv
|
||||
@ -12,7 +14,7 @@ sops:
|
||||
clZaazZQdW5wYUhUNmM0QW91K0NLOTAKB6z7cKg54QmJo0U03u6RQkSCfJOAdeJa
|
||||
DiyPYjm02BNe8YPFbBFRpyT7G++j3h0yG+/Nr2zcQFyMMEpMv5QJvg==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
lastmodified: "2025-09-05T17:58:05Z"
|
||||
mac: ENC[AES256_GCM,data:96G7VqaG8A46tQ1L7I2asiYtNZF7K3Wf+SzbwPrNV8zQio2jInawtD4WSzHmLs4Nv7M1TBHug/ho8mfYq6auXgpathiSzvj0Tzs/IEKXiTYa86tM3szwAepavMYWOl6OYJ7S39ku6BOMo3qC2BK/gpT5iy4c84ashn2wFd1n41A=,iv:6TShIsqnhCf/3uoAaz/R+Cwr2HrorROOXodXluTKM8M=,tag:BA9rQ73scKgetW3orV0HdQ==,type:str]
|
||||
lastmodified: "2025-12-16T16:16:27Z"
|
||||
mac: ENC[AES256_GCM,data:2Ju1exddd4qcru1UjXKXUBjugUWT9D2HJjKV03JwMCL4Wssb/H6DNNRJcmD0oXqA9DnEp5NpElhwa93LcogcNVsXL+sKGzQpP5m+/vDVfl2NcwdLyBVIvTQ0dASee/JMwBLcgcYBZuvL00Twv07/ImdvYROIs/fQUSualc6Sgcw=,iv:XsJ1MYLwLuFPLYGJoa/RsfAqs88AQwuH+3ItWc681LU=,tag:8pNSPKnv0yLoNrmxb9l2Xg==,type:str]
|
||||
unencrypted_suffix: _unencrypted
|
||||
version: 3.10.2
|
||||
version: 3.11.0
|
||||
|
||||
Reference in New Issue
Block a user