ADD: various things ...
This commit is contained in:
parent
6cf61cb4f5
commit
fe5cd05d60
11 changed files with 166 additions and 53 deletions
83
flake.lock
generated
83
flake.lock
generated
|
|
@ -1,5 +1,26 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"nur",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1733312601,
|
||||||
|
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -7,11 +28,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1757443987,
|
"lastModified": 1757997814,
|
||||||
"narHash": "sha256-T7E4CIsZBUzrUcPRyTG9FA2xd48MtbQ/HpIaaCfwZwc=",
|
"narHash": "sha256-F+1aoG+3NH4jDDEmhnDUReISyq6kQBBuktTUqCUWSiw=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "d587e11cef9caa9484ed090eddc55f4c56908342",
|
"rev": "5820376beb804de9acf07debaaff1ac84728b708",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -27,11 +48,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1756679287,
|
"lastModified": 1757808926,
|
||||||
"narHash": "sha256-Xd1vOeY9ccDf5VtVK12yM0FS6qqvfUop8UQlxEB+gTQ=",
|
"narHash": "sha256-K6PEI5PYY94TVMH0mX3MbZNYFme7oNRKml/85BpRRAo=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "07fc025fe10487dd80f2ec694f1cd790e752d0e8",
|
"rev": "f21d9167782c086a33ad53e2311854a8f13c281e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -41,13 +62,29 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1757745802,
|
||||||
|
"narHash": "sha256-hLEO2TPj55KcUFUU1vgtHE9UEIOjRcH/4QbmfHNF820=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "c23193b943c6c689d70ee98ce3128239ed9e32d1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1757408970,
|
"lastModified": 1757810152,
|
||||||
"narHash": "sha256-aSgK4BLNFFGvDTNKPeB28lVXYqVn8RdyXDNAvgGq+k0=",
|
"narHash": "sha256-Vp9K5ol6h0J90jG7Rm4RWZsCB3x7v5VPx588TQ1dkfs=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d179d77c139e0a3f5c416477f7747e9d6b7ec315",
|
"rev": "9a094440e02a699be5c57453a092a8baf569bdad",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -59,11 +96,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1757438868,
|
"lastModified": 1757924820,
|
||||||
"narHash": "sha256-b0aI1nv8Bob5o0wAYClpbp5Ury5ncDzFKsBPecA/F5A=",
|
"narHash": "sha256-to/hwbY9/jsRaejPa5oJmPUFZsJfFCB3WReKhD0+/+E=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "3dcb63379993929081024230943d5265e172ce02",
|
"rev": "aa54acd34af0e86f49d55ea52823031e2da399df",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -73,12 +110,32 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nur": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1758008446,
|
||||||
|
"narHash": "sha256-n1carH6n9xIARoDzmzZPyxlU2MVEuGAFt2UAvVOACJg=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"rev": "1b8ae8bec68487a61944cfdbfcb67f4aa69ff002",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"home-manager-stable": "home-manager-stable",
|
"home-manager-stable": "home-manager-stable",
|
||||||
"nixpkgs-stable": "nixpkgs-stable",
|
"nixpkgs-stable": "nixpkgs-stable",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable"
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
|
"nur": "nur"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
23
flake.nix
23
flake.nix
|
|
@ -3,15 +3,16 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.05";
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
|
||||||
home-manager-stable = {
|
home-manager-stable = {
|
||||||
url = "github:nix-community/home-manager/release-25.05";
|
url = "github:nix-community/home-manager/release-25.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-stable";
|
inputs.nixpkgs.follows = "nixpkgs-stable";
|
||||||
};
|
};
|
||||||
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
};
|
};
|
||||||
|
nur.url = "github:nix-community/NUR";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
|
@ -19,16 +20,32 @@
|
||||||
nixpkgs-unstable,
|
nixpkgs-unstable,
|
||||||
home-manager-stable,
|
home-manager-stable,
|
||||||
home-manager,
|
home-manager,
|
||||||
|
nur,
|
||||||
...
|
...
|
||||||
}: {
|
} @ inputs: let
|
||||||
|
mkUnstablePkgsWithNur = { system, config ? {} }:
|
||||||
|
import nixpkgs-unstable {
|
||||||
|
inherit system;
|
||||||
|
overlays = [ nur.overlays.default ];
|
||||||
|
config = config ;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
# --- Host NixOS (x86_64) ---
|
# --- Host NixOS (x86_64) ---
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
pennsardin = nixpkgs-unstable.lib.nixosSystem {
|
pennsardin = nixpkgs-unstable.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
pkgs = mkUnstablePkgsWithNur {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
config = {
|
||||||
|
allowUnfree = true ;
|
||||||
|
allowUnsupportedSystem = true ;
|
||||||
|
};
|
||||||
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/pennsardin/configuration.nix
|
./hosts/pennsardin/configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
# L'utilisateur HM est déclaré dans hosts/pennsardin/configuration.nix
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,22 @@
|
||||||
_: {
|
{pkgs, nur, ... }: {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
languagePacks = ["fr"];
|
languagePacks = ["fr"];
|
||||||
|
profiles.default = {
|
||||||
|
settings = {
|
||||||
|
"intl.locale.requested" = "fr" ;
|
||||||
|
"intl.accept_languages" = "fr, en-US, en";
|
||||||
|
"privacy.trackingprotection.enabled" = true ;
|
||||||
|
"privacy.resistFingerprinting" = true ;
|
||||||
|
"network.cookie.cookieBehavior" = 1;
|
||||||
|
};
|
||||||
|
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
i-dont-care-about-cookies
|
||||||
|
privacy-badger
|
||||||
|
proton-pass
|
||||||
|
ublock-origin
|
||||||
|
];
|
||||||
};
|
};
|
||||||
programs.floorp = {
|
|
||||||
enable = true;
|
|
||||||
languagePacks = ["fr"];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
# vim: set ts=2 sw=2 sts=2 et :
|
# vim: set ts=2 sw=2 sts=2 et :
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# hm/desktop/bspwm.nix
|
# hm/desktop/bspwm.nix
|
||||||
{ pkgs, ... }:
|
{ pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../common/browser.nix
|
../common/browser.nix
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
"sxhkd -m 1"
|
"sxhkd -m 1"
|
||||||
"setxkbmap bepovim"
|
"setxkbmap bepovim"
|
||||||
"xrandr --output DisplayPort-1 --rate 60 --pos 0x0"
|
"xrandr --output DisplayPort-1 --rate 60 --pos 0x0"
|
||||||
"while pgrep -x polybar >/dev/null; do sleep 0.2; done; polybar main"
|
"while pgrep -x polybar >/dev/null; do sleep 1; done; polybar main"
|
||||||
"bash ~/.fehbg"
|
"bash ~/.fehbg"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -139,10 +139,10 @@
|
||||||
settings = {
|
settings = {
|
||||||
general.import = [ "~/.cache/wal/colors-alacritty.toml" ];
|
general.import = [ "~/.cache/wal/colors-alacritty.toml" ];
|
||||||
font = {
|
font = {
|
||||||
normal = { family = "Iosevka Nerd Font"; style = "Regular"; };
|
normal = { family = lib.mkForce "Iosevka Nerd Font"; style = "Regular"; };
|
||||||
bold = { family = "Iosevka Nerd Font"; style = "Bold"; };
|
bold = { family = lib.mkForce "Iosevka Nerd Font"; style = "Bold"; };
|
||||||
italic = { family = "Iosevka Nerd Font"; style = "Italic"; };
|
italic = { family = lib.mkForce "Iosevka Nerd Font"; style = "Italic"; };
|
||||||
size = 9;
|
size = lib.mkForce 9;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@
|
||||||
fastfetch
|
fastfetch
|
||||||
nerd-fonts.iosevka
|
nerd-fonts.iosevka
|
||||||
obsidian
|
obsidian
|
||||||
|
proton-pass
|
||||||
smug
|
smug
|
||||||
telegram-desktop
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,18 +2,40 @@
|
||||||
imports = [
|
imports = [
|
||||||
../../profiles/workstation-bspwm.nix
|
../../profiles/workstation-bspwm.nix
|
||||||
../../modules/hardware/bepovim.nix
|
../../modules/hardware/bepovim.nix
|
||||||
../../modules/dev/qemu.nix
|
# ../../modules/dev/qemu.nix
|
||||||
../../modules/common/nix.nix
|
../../modules/common/nix.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "pennsardin";
|
networking.hostName = "pennsardin";
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
boot.swraid.enable = true ;
|
||||||
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "/dev/disk/by-uuid/b4e3577b-17ab-4a89-9aeb-4e223be4c75b"; # à adapter si tu as un autre label/disque
|
fileSystems."/" =
|
||||||
fsType = "ext4"; # ou btrfs, xfs, ce que t'as utilisé
|
{ device = "/dev/disk/by-uuid/b1a1ae71-4277-45d5-a3d2-f49354f263d4";
|
||||||
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/1DB2-7A0F";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/proc" =
|
||||||
|
{
|
||||||
|
device = "proc" ;
|
||||||
|
fsType = "proc" ;
|
||||||
|
options = [ "defaults" "hidepid=2" ];
|
||||||
|
neededForBoot = true ;
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/srv/raid" =
|
||||||
|
{ device = "/dev/disk/by-uuid/85f72160-4720-463a-9dc6-7c5216733f2b";
|
||||||
|
fsType = "btrfs";
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
users.users.lomig = {
|
users.users.lomig = {
|
||||||
|
|
@ -29,5 +51,6 @@
|
||||||
|
|
||||||
system.stateVersion = "25.05"; # pour éviter les hurlements inutiles
|
system.stateVersion = "25.05"; # pour éviter les hurlements inutiles
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim: set ts=2 sw=2 sts=2 et :
|
# vim: set ts=2 sw=2 sts=2 et :
|
||||||
|
|
||||||
|
|
|
||||||
5
modules/common/fonts.nix
Normal file
5
modules/common/fonts.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ pkgs, ...}: {
|
||||||
|
fonts.packages = with pkgs; [
|
||||||
|
dejavu_fonts
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
# allowUnfree = true;
|
||||||
allowUnsupportedSystem = true;
|
# allowUnsupportedSystem = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
../virtual/truenas.nix
|
# ../virtual/truenas.nix
|
||||||
];
|
];
|
||||||
boot.kernelModules = lib.mkAfter ["tun"];
|
boot.kernelModules = lib.mkAfter ["tun"];
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@
|
||||||
../virtual/vfio.nix
|
../virtual/vfio.nix
|
||||||
|
|
||||||
# Dev
|
# Dev
|
||||||
../dev/qemu.nix
|
# ../dev/qemu.nix
|
||||||
../virtual/truenas.nix # seulement si tu l’utilises sur ce host
|
# ../virtual/truenas.nix # seulement si tu l’utilises sur ce host
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
../modules/roles/workstation.nix
|
../modules/roles/workstation.nix
|
||||||
../modules/desktop/xorg-bspwm.nix
|
../modules/desktop/xorg-bspwm.nix
|
||||||
../modules/common/base.nix
|
../modules/common/base.nix
|
||||||
|
../modules/common/fonts.nix
|
||||||
../modules/common/networking.nix
|
../modules/common/networking.nix
|
||||||
../modules/common/plymouth.nix
|
../modules/common/plymouth.nix
|
||||||
../modules/hardware/firmware.nix
|
../modules/hardware/firmware.nix
|
||||||
|
|
@ -11,7 +12,6 @@
|
||||||
../modules/common/bluetooth.nix
|
../modules/common/bluetooth.nix
|
||||||
../modules/common/gaming.nix
|
../modules/common/gaming.nix
|
||||||
../modules/services/printing.nix
|
../modules/services/printing.nix
|
||||||
../modules/dev/qemu.nix
|
|
||||||
../modules/common/lockscreen.nix
|
../modules/common/lockscreen.nix
|
||||||
../modules/common/energy.nix
|
../modules/common/energy.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue