refactor: pkgs

This commit is contained in:
2025-01-22 16:58:58 -08:00
parent c426ceceb8
commit 85a46854fe
6 changed files with 28 additions and 38 deletions

View File

@@ -1,6 +1,5 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
home.username = "luca"; home.username = "luca";
home.homeDirectory = "/home/luca"; home.homeDirectory = "/home/luca";

View File

@@ -91,7 +91,6 @@
users.users.luca = { users.users.luca = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user. extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [ vesktop nodejs_22 pnpm ];
shell = pkgs.zsh; shell = pkgs.zsh;
hashedPassword = hashedPassword =
"$y$j9T$wp9I05TfxjrAzCMCcxlei1$Fm7sJJSwFHpSIQT0RESOdJ7vkTYyN0IXs5n/xkg65y3"; "$y$j9T$wp9I05TfxjrAzCMCcxlei1$Fm7sJJSwFHpSIQT0RESOdJ7vkTYyN0IXs5n/xkg65y3";
@@ -102,18 +101,7 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; environment.systemPackages = with pkgs;
config.commonPackages ++ [ config.commonPackages ++ [ dolphin wireguard-tools ];
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
wget
curl
ripgrep
git
neovim
busybox
dolphin
wireguard-tools
gh
];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.

View File

@@ -4,22 +4,21 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.availableKernelModules =
[ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/6b97d24a-2aff-482d-a7e4-952914ca3d50"; device = "/dev/disk/by-uuid/6b97d24a-2aff-482d-a7e4-952914ca3d50";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/0193-75C3"; device = "/dev/disk/by-uuid/0193-75C3";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ]; options = [ "fmask=0077" "dmask=0077" ];
}; };
@@ -34,5 +33,6 @@
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true; # networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View File

@@ -6,6 +6,16 @@
description = "Common packages"; description = "Common packages";
}; };
}; };
config.commonPackages = with pkgs; [ wget busybox curl stow ]; config.commonPackages = with pkgs; [
wget
busybox
curl
stow
gh
oh-my-posh
neovim
ripgrep
git
];
config.programs.nix-ld.enable = true; config.programs.nix-ld.enable = true;
} }

View File

@@ -3,9 +3,7 @@
userName = "rocketcamel"; userName = "rocketcamel";
userEmail = "luca_lise@icloud.com"; userEmail = "luca_lise@icloud.com";
extraConfig = { extraConfig = {
init = { init = { defaultBranch = "main"; };
defaultBranch = "main";
};
commit.gpgsign = true; commit.gpgsign = true;
gpg.format = "ssh"; gpg.format = "ssh";
user.signingkey = "~/.ssh/commits.id_rsa.pub"; user.signingkey = "~/.ssh/commits.id_rsa.pub";

View File

@@ -10,12 +10,7 @@
tmux = import ./tmux.nix { inherit pkgs; }; tmux = import ./tmux.nix { inherit pkgs; };
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [ nodejs_22 pnpm ];
nodejs_22
pnpm
gh
oh-my-posh
];
home.stateVersion = "24.11"; home.stateVersion = "24.11";