feat: fix duplicate config on work config & some minor changes

This commit is contained in:
Xavier Morel
2025-07-16 20:59:28 +02:00
parent 8db9f2f154
commit 66f7edf9a3
6 changed files with 41 additions and 37 deletions

View File

@@ -21,8 +21,8 @@
environment.systemPackages = map lib.lowPrio [
pkgs.curl
pkgs.gitMinimal
pkgs.slack
pkgs.teams-for-linux
# pkgs.slack
# pkgs.teams-for-linux
pkgs.openvpn
];
networking = {

View File

@@ -1,23 +1,14 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
@@ -28,7 +19,7 @@
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp1s0f0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp5s0f3u1u3c2.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;

View File

@@ -12,14 +12,14 @@
};
home = {
username = "xmorel";
homeDirectory = "/home/xmorel/";
homeDirectory = "/home/xmorel";
sessionVariables = {
FLAKE = "/home/xmorel/nixos/";
};
packages = with pkgs; [
devenv
lazyjj
slack
# slack
tailscale-systray
tree
ungoogled-chromium
@@ -41,12 +41,16 @@
};
nix = {
package = pkgs.nix;
# package = pkgs.nix;
settings = {
auto-optimise-store = true;
experimental-features = ["nix-command" "flakes"];
experimental-features = [
"nix-command"
"flakes"
];
trusted-users = [
"root" "xmorel"
"root"
"xmorel"
];
};
gc = {
@@ -61,8 +65,8 @@
programs = {
awscli.enable = true;
bat = {
enable = true;
extraPackages = with pkgs.bat-extras; [ batman ];
enable = true;
extraPackages = with pkgs.bat-extras; [ batman ];
};
btop = {
enable = true;
@@ -71,7 +75,7 @@
direnv.enable = true;
eza = {
enable = true;
extraOptions = ["--group-directories-first"];
extraOptions = [ "--group-directories-first" ];
git = true;
icons = "auto";
};
@@ -85,11 +89,10 @@
la = "eza -lah";
man = "batman";
};
interactiveShellInit =
''
interactiveShellInit = ''
source /usr/share/cachyos-fish-config/cachyos-config.fish
fish_vi_key_bindings
'';
'';
};
fzf.enable = true;
gh.enable = true;