migrates even more things

This commit is contained in:
Dennis Schoepf 2026-03-03 22:58:48 +01:00
parent fc2234ae21
commit 8363764798
6 changed files with 69 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ config, ... }: { config, pkgs, ... }:
let let
username = config.flake.globalConfig.username; username = config.flake.globalConfig.username;
in in

View file

@ -0,0 +1,32 @@
{ ... }:
let
commonPackages =
pkgs: with pkgs; [
neofetch
zip
unzip
ripgrep
fzf
fd
sd
bat
tldr
fortune
just
mmv-go
usbutils
];
in
{
flake.modules.nixos.cli-tools =
{ pkgs, ... }:
{
environment.systemPackages = commonPackages pkgs;
};
flake.modules.darwin.cli-tools =
{ pkgs, ... }:
{
environment.systemPackages = commonPackages pkgs;
};
}

View file

@ -8,6 +8,7 @@
programs.steam = { programs.steam = {
enable = true; enable = true;
remotePlay.openFirewall = true; remotePlay.openFirewall = true;
gamescopeSession.enable = true;
protontricks.enable = true; protontricks.enable = true;
extraCompatPackages = with pkgs; [ extraCompatPackages = with pkgs; [

View file

@ -8,10 +8,12 @@ in
modules = with config.flake.modules.nixos; [ modules = with config.flake.modules.nixos; [
home-manager home-manager
base base
shell
cli-tools
nix
nvidia-graphics nvidia-graphics
drawing-tablet drawing-tablet
printing printing
shell
desktop desktop
gaming gaming

29
modules/nix/default.nix Normal file
View file

@ -0,0 +1,29 @@
{ ... }:
{
flake.modules.nixos.nix =
{ pkgs, ... }:
{
programs.direnv = {
enable = true;
silent = false;
loadInNixShell = true;
direnvrcExtra = "";
nix-direnv = {
enable = true;
};
};
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
programs.nix-ld.enable = true;
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
nil
statix
manix
];
};
}

View file

@ -1,8 +1,9 @@
{ config, ... }: { ... }:
{ {
flake.modules.nixos.nvidia-graphics = flake.modules.nixos.nvidia-graphics =
{ pkgs, ... }: { config, pkgs, ... }:
{ {
nixpkgs.config.allowUnfree = true;
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
hardware = { hardware = {
graphics.enable = true; graphics.enable = true;