Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
4ff3ab574f | |||
633eea8877 | |||
3b7c49041c | |||
e8fac6e226 | |||
3239948de6 | |||
10c46e1e6a | |||
5f64559676 | |||
a82be1df2c | |||
f5ea128df4 | |||
3207899d6c | |||
e2e9a60907 | |||
26448d59d6 |
2
Makefile
2
Makefile
@ -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
24
flake.lock
generated
@ -8,11 +8,11 @@
|
|||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "pkgs/firefox-addons",
|
"dir": "pkgs/firefox-addons",
|
||||||
"lastModified": 1744173435,
|
"lastModified": 1745752599,
|
||||||
"narHash": "sha256-q5cViHmB4k1CdncBUVBY4UUukiKQxgBJ6R18qJ3pHOA=",
|
"narHash": "sha256-vX5uq4wv7FeNeeFtsTPXQ9n2hd92NFXI+u9sg1K8OhA=",
|
||||||
"owner": "rycee",
|
"owner": "rycee",
|
||||||
"repo": "nur-expressions",
|
"repo": "nur-expressions",
|
||||||
"rev": "e7ea586f82360a06ec21f14544bc26b10aa1aea6",
|
"rev": "0388c30f59e860307b2ef0ba93f38d2e525a153e",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -29,11 +29,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744208565,
|
"lastModified": 1745894335,
|
||||||
"narHash": "sha256-vG3JJOar/r8ognz7wuwMtOJ8Knu1MMlOzHB1N6R2MbY=",
|
"narHash": "sha256-m47zhftaod/oHOwoVT25jstdcVLhkrVGyvEHKjbnFHI=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "542efdf2dfac351498f534eb71671525b9bd45ed",
|
"rev": "1ad123239957d40e11ef66c203d0a7e272eb48aa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -44,11 +44,11 @@
|
|||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1743420942,
|
"lastModified": 1745907084,
|
||||||
"narHash": "sha256-b/exDDQSLmENZZgbAEI3qi9yHkuXAXCPbormD8CSJXo=",
|
"narHash": "sha256-Q8SpDbTI95vtKXgNcVl1VdSUhhDOORE8R77wWS2rmg8=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "de6fc5551121c59c01e2a3d45b277a6d05077bc4",
|
"rev": "f1e52a018166e1a324f832de913e12c0e55792d0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -60,11 +60,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744098102,
|
"lastModified": 1745794561,
|
||||||
"narHash": "sha256-tzCdyIJj9AjysC3OuKA+tMD/kDEDAF9mICPDU7ix0JA=",
|
"narHash": "sha256-T36rUZHUART00h3dW4sV5tv4MrXKT7aWjNfHiZz7OHg=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c8cd81426f45942bb2906d5ed2fe21d2f19d95b7",
|
"rev": "5461b7fa65f3ca74cef60be837fd559a8918eaa0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -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";
|
||||||
|
@ -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"];
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
@ -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";
|
||||||
|
@ -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,"
|
||||||
|
@ -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" = {
|
||||||
|
BIN
homeConfigs/utils/wallpaper_test.png
Normal file
BIN
homeConfigs/utils/wallpaper_test.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 797 KiB |
@ -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";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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 = {
|
||||||
|
@ -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";
|
||||||
|
15
osConfigs/modules/displayManager.nix
Normal file
15
osConfigs/modules/displayManager.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -21,9 +21,11 @@
|
|||||||
usbutils
|
usbutils
|
||||||
man-pages
|
man-pages
|
||||||
stress
|
stress
|
||||||
ffmpeg
|
|
||||||
cryptsetup
|
cryptsetup
|
||||||
acpi
|
acpi
|
||||||
dconf
|
dconf
|
||||||
|
|
||||||
|
ffmpeg-full
|
||||||
|
nv-codec-headers
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user