โ„๏ธ My personnal NixOS configuration
nix-flake nixos-configuration linux dotfiles flake nix nix-config nixos nixos-flake linux-desktop
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ใ€Œ๐Ÿ—‘๏ธใ€ clean: cleaned up useless things

adjoly ba6f80f2 5e251e86

+79 -346
-17
flake.lock
··· 961 961 "timmy": "timmy", 962 962 "treefmt-nix": "treefmt-nix", 963 963 "unstablepkgs": "unstablepkgs", 964 - "windscribe-nixpkgs": "windscribe-nixpkgs", 965 964 "zen-browser": "zen-browser" 966 965 } 967 966 }, ··· 1068 1067 "original": { 1069 1068 "owner": "nixos", 1070 1069 "ref": "nixos-unstable", 1071 - "repo": "nixpkgs", 1072 - "type": "github" 1073 - } 1074 - }, 1075 - "windscribe-nixpkgs": { 1076 - "locked": { 1077 - "lastModified": 1775544085, 1078 - "narHash": "sha256-JeubKt4Gm/uP0HInqw2IA5XXd8qsRNrxtJwNX770LcQ=", 1079 - "owner": "syntheit", 1080 - "repo": "nixpkgs", 1081 - "rev": "d7abc52c8be0faae470458ff2a67b3e028dbacaf", 1082 - "type": "github" 1083 - }, 1084 - "original": { 1085 - "owner": "syntheit", 1086 - "ref": "windscribe-init", 1087 1070 "repo": "nixpkgs", 1088 1071 "type": "github" 1089 1072 }
+3 -23
flake.nix
··· 13 13 nixos-generators, 14 14 treefmt-nix, 15 15 determinate, 16 - windscribe-nixpkgs, 17 16 ... 18 17 }: 19 18 let ··· 49 48 self.nixosModules.default 50 49 ]; 51 50 }; 52 - # MINI-BOYY = nixpkgs.lib.nixosSystem { 53 - # system = "x86_64-linux"; 54 - # specialArgs = { inherit inputs outputs self; }; 55 - # modules = [ 56 - # ./hosts/MINI-BOYY/default.nix 57 - # 58 - # disko.nixosModules.disko 59 - # catppuccin.nixosModules.catppuccin 60 - # nixos-hardware.nixosModules.apple-macmini-6 61 - # self.nixosModules.default 62 - # ]; 63 - # }; 64 51 LAPTOP-5530 = nixpkgs.lib.nixosSystem { 65 52 system = "x86_64-linux"; 66 53 specialArgs = { inherit inputs outputs self; }; 67 54 modules = [ 68 55 ./hosts/LAPTOP-5530/default.nix 69 56 70 - "${windscribe-nixpkgs}/nixos/modules/services/networking/windscribe.nix" 71 - 72 57 determinate.nixosModules.default 73 58 disko.nixosModules.disko 74 59 catppuccin.nixosModules.catppuccin 75 60 nixos-hardware.nixosModules.dell-precision-5530 76 61 self.nixosModules.default 77 - ]; 62 + ]; 78 63 }; 79 64 nixos-server = nixpkgs.lib.nixosSystem { 80 65 system = "x86_64-linux"; ··· 176 161 mount = { 177 162 systemd.services.mount-work = { 178 163 description = "Mount the shared folder"; 179 - # fstab entry: 180 - # host0 /wherever 9p trans=virtio,version=9p2000.L 0 0 181 164 script = '' 182 165 mkdir -p /work 183 166 /run/wrappers/bin/mount -t 9p -o trans=virtio,version=9p2000.L host0 /work ··· 252 235 253 236 unstablepkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 254 237 255 - windscribe-nixpkgs.url = "github:syntheit/nixpkgs/windscribe-init"; 256 - 257 238 nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release"; 258 239 259 - nixpkgs-2311.url = "github:nixos/nixpkgs/nixos-23.11"; 240 + nixpkgs-2311.url = "github:nixos/nixpkgs/nixos-23.11"; 260 241 261 - nixos-hardware.url = "github:keyzox71/nixos-hardware/update-dell-precision-5530"; 262 - # nixos-hardware.url = "git+file:///home/adjoly/workspace/nixos-hardware"; 242 + nixos-hardware.url = "github:keyzox71/nixos-hardware/update-dell-precision-5530"; 263 243 264 244 catppuccin = { 265 245 url = "github:catppuccin/nix/release-25.11";
+15 -16
home/42/default.nix
··· 51 51 }; 52 52 53 53 home.file.".ideavimrc".text = '' 54 - Plug 'tpope/vim-commentary' 55 - Plug 'machakann/vim-highlightedyank' 54 + Plug 'tpope/vim-commentary' 55 + Plug 'machakann/vim-highlightedyank' 56 56 57 - set clipboard^=unnamed,unnamedplus 58 - set rnu 59 - set hlsearch 60 - set incsearch 57 + set clipboard^=unnamed,unnamedplus 58 + set rnu 59 + set hlsearch 60 + set incsearch 61 61 62 - noremap <Esc> :nohlsearch<cr> 62 + noremap <Esc> :nohlsearch<cr> 63 63 64 - map <C-h> <C-w>h 65 - map <C-l> <C-w>l 66 - map <C-j> <C-w>j 67 - map <C-k> <C-w>k 64 + map <C-h> <C-w>h 65 + map <C-l> <C-w>l 66 + map <C-j> <C-w>j 67 + map <C-k> <C-w>k 68 68 69 - xnoremap J :m '>+1<CR>gv=gv 70 - xnoremap K :m '<-2<CR>gv=gv 71 - imap <C-y> <Action>(EditorChooseLookupItem) 72 - ''; 73 - 69 + xnoremap J :m '>+1<CR>gv=gv 70 + xnoremap K :m '<-2<CR>gv=gv 71 + imap <C-y> <Action>(EditorChooseLookupItem) 72 + ''; 74 73 75 74 home.stateVersion = "24.05"; 76 75 }
+13 -11
home/DEV-BOYY/packages.nix
··· 20 20 ''; 21 21 22 22 # VLC avec libbluray modifiรฉ pour intรฉgrer les libs AACS en dur 23 - vlc-with-makemkv = let 24 - libbluray-with-aacs = pkgs.libbluray.overrideAttrs (old: { 25 - postFixup = '' 26 - ${old.postFixup or ""} 27 - # Forcer libbluray ร  trouver libaacs/libbdplus via rpath 28 - patchelf --add-rpath "${libaacs-compat}/lib:${pkgs-2311.makemkv}/lib" $out/lib/libbluray.so 29 - ''; 30 - }); 31 - in pkgs.vlc.override { 32 - libbluray = libbluray-with-aacs; 33 - }; 23 + vlc-with-makemkv = 24 + let 25 + libbluray-with-aacs = pkgs.libbluray.overrideAttrs (old: { 26 + postFixup = '' 27 + ${old.postFixup or ""} 28 + # Forcer libbluray ร  trouver libaacs/libbdplus via rpath 29 + patchelf --add-rpath "${libaacs-compat}/lib:${pkgs-2311.makemkv}/lib" $out/lib/libbluray.so 30 + ''; 31 + }); 32 + in 33 + pkgs.vlc.override { 34 + libbluray = libbluray-with-aacs; 35 + }; 34 36 35 37 in 36 38 {
+1 -1
home/DEV-BOYY/wm.nix
··· 17 17 bind = [ 18 18 "CTRL ALT, HOME, exec, dms ipc brightness increment 10 ddc:i2c-5" 19 19 "CTRL ALT, END, exec, dms ipc brightness decrement 10 ddc:i2c-5" 20 - "CTRL ALT, Prior, exec, dms ipc brightness increment 10 ddc:i2c-6" 20 + "CTRL ALT, Prior, exec, dms ipc brightness increment 10 ddc:i2c-6" 21 21 "CTRL ALT, Next, exec, dms ipc brightness decrement 10 ddc:i2c-6" 22 22 ]; 23 23 env = [
-27
home/MINI-BOYY/default.nix
··· 1 - { 2 - self, 3 - ... 4 - }: 5 - { 6 - imports = [ 7 - self.homeModules.default 8 - ../nixpkgs-conf.nix 9 - 10 - ./packages.nix 11 - ./wm.nix 12 - ]; 13 - 14 - keyzox = { 15 - gui.enable = true; 16 - shell.nixos.enable = true; 17 - hyprland.autostart.enable = true; 18 - bitwarden-ssh-agent.enable = true; 19 - theme.enable = true; 20 - hypridle.sleep_timeout = -1; 21 - hyprlock.monitor = "HDMI-A-3"; 22 - }; 23 - 24 - programs.kitty.font.size = 13.5; 25 - 26 - home.stateVersion = "25.11"; 27 - }
-19
home/MINI-BOYY/packages.nix
··· 1 - { 2 - pkgs, 3 - self, 4 - ... 5 - }: 6 - 7 - { 8 - home.packages = with pkgs; [ 9 - k3d 10 - kubectl 11 - 12 - parsec-bin 13 - self.packages.${pkgs.stdenv.hostPlatform.system}.adjust-brightness 14 - (self.packages.${pkgs.stdenv.hostPlatform.system}.keyznvim.override { 15 - quickMode = false; 16 - home = "/home/adjoly/"; 17 - }) 18 - ]; 19 - }
-38
home/MINI-BOYY/wm.nix
··· 1 - { 2 - ... 3 - }: 4 - 5 - { 6 - programs.waybar.settings.bar = { 7 - "hyprland/workspaces" = { 8 - }; 9 - output = [ 10 - "HDMI-A-3" 11 - ]; 12 - }; 13 - 14 - wayland.windowManager.hyprland = { 15 - settings = { 16 - bind = [ 17 - ]; 18 - env = [ 19 - ]; 20 - monitor = [ 21 - "HDMI-A-3, 1920x1080@60, 0x0, 1" 22 - ]; 23 - workspace = [ 24 - "1, monitor:HDMI-A-3" 25 - "2, monitor:HDMI-A-3" 26 - "3, monitor:HDMI-A-3" 27 - "4, monitor:HDMI-A-3" 28 - "5, monitor:HDMI-A-3" 29 - "6, monitor:HDMI-A-3" 30 - "7, monitor:HDMI-A-3" 31 - "8, monitor:HDMI-A-3" 32 - "9, monitor:HDMI-A-3" 33 - "10, monitor:HDMI-A-3" 34 - ]; 35 - 36 - }; 37 - }; 38 - }
-40
hosts/MINI-BOYY/default.nix
··· 1 - { 2 - ... 3 - }: 4 - 5 - { 6 - imports = [ 7 - ../home.nix 8 - 9 - ./hardware.nix 10 - 11 - ./disko.nix 12 - ./hardware-configuration.nix 13 - ]; 14 - 15 - networking.hostName = "MINI-BOYY"; 16 - 17 - users.users.adjoly.extraGroups = [ 18 - "i2c" 19 - "vboxusers" 20 - ]; 21 - 22 - keyzox = { 23 - defaults = true; 24 - wm = true; 25 - 26 - grub-boot.enable = true; 27 - theme.enable = true; 28 - 29 - hardware = { 30 - bluetooth.enable = true; 31 - logitech.enable = true; 32 - }; 33 - programs = { 34 - docker.enable = true; 35 - }; 36 - }; 37 - powerManagement.enable = true; 38 - 39 - system.stateVersion = "24.11"; 40 - }
-46
hosts/MINI-BOYY/disko.nix
··· 1 - { ... }: 2 - 3 - { 4 - disko.devices = { 5 - disk = { 6 - boot-disk = { 7 - device = "/dev/sda"; 8 - type = "disk"; 9 - content = { 10 - type = "gpt"; 11 - partitions = { 12 - ESP = { 13 - size = "500M"; 14 - type = "EF00"; 15 - content = { 16 - type = "filesystem"; 17 - format = "vfat"; 18 - mountpoint = "/boot"; 19 - mountOptions = [ "umask=0077" ]; 20 - }; 21 - }; 22 - root = { 23 - end = "-4G"; 24 - content = { 25 - type = "filesystem"; 26 - format = "xfs"; 27 - mountpoint = "/"; 28 - mountOptions = [ 29 - "defaults" 30 - "pquota" 31 - ]; 32 - }; 33 - }; 34 - SWAP = { 35 - size = "100%"; 36 - content = { 37 - type = "swap"; 38 - resumeDevice = true; 39 - }; 40 - }; 41 - }; 42 - }; 43 - }; 44 - }; 45 - }; 46 - }
-32
hosts/MINI-BOYY/hardware-configuration.nix
··· 1 - # Do not modify this file! It was generated by โ€˜nixos-generate-configโ€™ 2 - # and may be overwritten by future invocations. Please make changes 3 - # to /etc/nixos/configuration.nix instead. 4 - { 5 - config, 6 - lib, 7 - modulesPath, 8 - ... 9 - }: 10 - 11 - { 12 - imports = [ 13 - (modulesPath + "/installer/scan/not-detected.nix") 14 - ]; 15 - 16 - boot.initrd.availableKernelModules = [ 17 - "xhci_pci" 18 - "ehci_pci" 19 - "ahci" 20 - "firewire_ohci" 21 - "usbhid" 22 - "usb_storage" 23 - "sd_mod" 24 - "sdhci_pci" 25 - ]; 26 - boot.initrd.kernelModules = [ ]; 27 - boot.kernelModules = [ "kvm-intel" ]; 28 - boot.extraModulePackages = [ ]; 29 - 30 - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 31 - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 32 - }
-26
hosts/MINI-BOYY/hardware.nix
··· 1 - { 2 - config, 3 - lib, 4 - ... 5 - }: 6 - { 7 - nixpkgs.config.allowInsecurePredicate = 8 - pkg: 9 - builtins.elem (lib.getName pkg) [ 10 - "broadcom-sta" 11 - ]; 12 - boot = { 13 - kernelModules = [ 14 - "wl" 15 - ]; 16 - blacklistedKernelModules = [ 17 - "b43" 18 - "bcma" 19 - ]; 20 - extraModulePackages = [ 21 - # install broadcom driver for macos wifi 22 - # note : the user will need to add it to `permittedInsecurePackages` 23 - config.boot.kernelPackages.broadcom_sta 24 - ]; 25 - }; 26 - }
+1 -1
hosts/home.nix
··· 21 21 "networkmanager" 22 22 "wheel" 23 23 "i2c" 24 - "render" 24 + "render" 25 25 "wireshark" 26 26 ]; 27 27 };
+6 -6
modules/home-manager/cli/cli-app.nix
··· 32 32 settings = { 33 33 color_theme = "ayu"; 34 34 vim_keys = true; 35 - update_ms = 1000; 35 + update_ms = 1000; 36 36 37 - proc_left = true; 38 - proc_tree = true; 39 - proc_sorting = "cpu direct"; 40 - proc_aggregate = true; 41 - proc_filter_kernel = true; 37 + proc_left = true; 38 + proc_tree = true; 39 + proc_sorting = "cpu direct"; 40 + proc_aggregate = true; 41 + proc_filter_kernel = true; 42 42 }; 43 43 }; 44 44 };
+1 -1
modules/home-manager/cli/default.nix
··· 7 7 ./shell.nix 8 8 ./github.nix 9 9 ./cli-app.nix 10 - ./hyfetch.nix 10 + ./hyfetch.nix 11 11 ]; 12 12 }
+3 -3
modules/home-manager/default.nix
··· 13 13 keyzox.cli-app.enable = lib.mkDefault true; 14 14 keyzox.gh.enable = lib.mkDefault true; 15 15 keyzox.ssh-config.enable = lib.mkDefault true; 16 - keyzox.hyfetch.enable = lib.mkDefault true; 16 + keyzox.hyfetch.enable = lib.mkDefault true; 17 17 }; 18 18 gui-conf = lib.mkIf config.keyzox.gui.enable { 19 19 keyzox.cli.enable = lib.mkDefault true; ··· 38 38 inputs.catppuccin.homeModules.catppuccin 39 39 inputs.pogit.homeManagerModules.default 40 40 41 - inputs.dms.homeModules.dank-material-shell 42 - inputs.dms-plugin-registry.modules.default 41 + inputs.dms.homeModules.dank-material-shell 42 + inputs.dms-plugin-registry.modules.default 43 43 ]; 44 44 45 45 options = {
+1 -1
modules/home-manager/gui/default.nix
··· 1 1 { 2 2 imports = [ 3 3 ./kitty.nix 4 - ./ghostty.nix 4 + ./ghostty.nix 5 5 ./nextcloud.nix 6 6 ./darkman.nix 7 7 ./dunst.nix
+26 -26
modules/home-manager/gui/ghostty.nix
··· 1 1 { 2 - lib, 3 - config, 4 - ... 2 + lib, 3 + config, 4 + ... 5 5 }: 6 6 7 7 { 8 - options = { 9 - keyzox.ghostty.enable = lib.mkEnableOption "to enable ghostty"; 10 - }; 8 + options = { 9 + keyzox.ghostty.enable = lib.mkEnableOption "to enable ghostty"; 10 + }; 11 11 12 - config = lib.mkIf config.keyzox.ghostty.enable { 13 - catppuccin.ghostty.enable = false; 12 + config = lib.mkIf config.keyzox.ghostty.enable { 13 + catppuccin.ghostty.enable = false; 14 14 15 - programs.ghostty = { 16 - enable = true; 17 - enableZshIntegration = true; 18 - systemd.enable = true; 19 - settings = { 20 - theme = lib.mkDefault "light:Catppuccin Latte,dark:Catppuccin Mocha"; 21 - font-family = lib.mkDefault "JetBrainsMonoNL NFM Light"; 22 - font-family-bold = lib.mkDefault "JetBrainsMono NFM Bold"; 23 - font-family-italic = lib.mkDefault "JetBrainsMono NFM Italic"; 24 - font-family-bold-italic = lib.mkDefault "JetBrainsMono NFM Bold Italic"; 25 - mouse-scroll-multiplier = lib.mkDefault 0.5; 26 - resize-overlay = lib.mkDefault "never"; 27 - term = lib.mkDefault "xterm-256color"; 28 - unfocused-split-opacity = 1; 29 - window-decoration = false; 30 - }; 31 - }; 32 - }; 15 + programs.ghostty = { 16 + enable = true; 17 + enableZshIntegration = true; 18 + systemd.enable = true; 19 + settings = { 20 + theme = lib.mkDefault "light:Catppuccin Latte,dark:Catppuccin Mocha"; 21 + font-family = lib.mkDefault "JetBrainsMonoNL NFM Light"; 22 + font-family-bold = lib.mkDefault "JetBrainsMono NFM Bold"; 23 + font-family-italic = lib.mkDefault "JetBrainsMono NFM Italic"; 24 + font-family-bold-italic = lib.mkDefault "JetBrainsMono NFM Bold Italic"; 25 + mouse-scroll-multiplier = lib.mkDefault 0.5; 26 + resize-overlay = lib.mkDefault "never"; 27 + term = lib.mkDefault "xterm-256color"; 28 + unfocused-split-opacity = 1; 29 + window-decoration = false; 30 + }; 31 + }; 32 + }; 33 33 }
+2 -2
modules/home-manager/gui/wm/default.nix
··· 11 11 ./waybar.nix 12 12 ./tofi.nix 13 13 ./wl-sunset.nix 14 - ./vicinae.nix 15 - ./dms.nix 14 + ./vicinae.nix 15 + ./dms.nix 16 16 ]; 17 17 }
+3 -3
modules/home-manager/gui/wm/hyprland.nix
··· 38 38 }; 39 39 windowrulev2 = [ 40 40 "fullscreen, class:zen-beta" 41 - "float,center,class:Windscribe" 42 - # "size 60% 80%,floating:1,class:^jetbrains-goland$" 41 + "float,center,class:Windscribe" 42 + # "size 60% 80%,floating:1,class:^jetbrains-goland$" 43 43 ]; 44 44 layerrule = [ 45 45 "blur, vicinae" ··· 60 60 "$mod, Q, killactive" 61 61 "$mod, F, fullscreen" 62 62 "$win, L, exec, dms ipc lock lock" 63 - "$win, B, exec, dms ipc control-center toggle" 63 + "$win, B, exec, dms ipc control-center toggle" 64 64 "$win + SHIFT, S, exec, grimblast --notify copysave area \"$HOME/Nextcloud/Images/Captures dโ€™รฉcran/Capture dโ€™รฉcran $(date +%F-%H%M%S).png\"" 65 65 "CTRL ALT, L, exec, dms ipc powermenu open" 66 66 ",Print, exec, grimblast --notify copysave area \"$HOME/Nextcloud/Images/Captures dโ€™รฉcran/Capture dโ€™รฉcran $(date +%F-%H%M%S).png\""
-1
modules/home-manager/ssh.nix
··· 9 9 ft_pubKeyLocation = "/home/adjoly/.ssh/id_42.pub"; 10 10 git_pubKeyLocation = "/home/adjoly/.ssh/id_git.pub"; 11 11 tangled_pubKeyLocation = "/home/adjoly/.ssh/id_tangled.pub"; 12 - frag_pubKeyLocation = "/home/adjoly/.ssh/id_frag.pub"; 13 12 in 14 13 { 15 14 options = {
+1 -1
modules/nixos/hardware/nvidia.nix
··· 38 38 enable = lib.mkDefault true; 39 39 finegrained = lib.mkDefault true; 40 40 }; 41 - powerManagement.enable = true; 41 + powerManagement.enable = true; 42 42 }; 43 43 in 44 44 {
+1 -1
modules/nixos/programs/btop.nix
··· 33 33 in 34 34 { 35 35 environment.systemPackages = [ 36 - package 36 + package 37 37 ]; 38 38 systemd.tmpfiles.rules = [ 39 39 "Z /sys/class/powercap/intel-rapl:0/energy_uj 0444 root root - -"
+1 -1
modules/nixos/programs/default.nix
··· 6 6 imports = [ 7 7 ./nh.nix 8 8 ./hyprland.nix 9 - ./btop.nix 9 + ./btop.nix 10 10 ./gnome-keyring.nix 11 11 ./app-image.nix 12 12 ./steam.nix
-2
modules/nixos/services/tailscale.nix
··· 1 1 { 2 2 config, 3 3 lib, 4 - pkgs, 5 - inputs, 6 4 ... 7 5 }: 8 6
+1 -1
modules/nixos/services/xserver.nix
··· 21 21 enable = lib.mkDefault true; 22 22 mouse.accelProfile = "flat"; 23 23 }; 24 - }; 24 + }; 25 25 }