refactor sys-modules

This commit is contained in:
Jonas Röger 2024-10-19 14:52:29 +02:00
parent b95ebd8efc
commit dfa623f370
Signed by: jonas
GPG Key ID: 4000EB35E1AE0F07
9 changed files with 62 additions and 61 deletions

View File

@ -12,17 +12,14 @@
./hardware-configuration.nix
inputs.home-manager.nixosModules.home-manager
../../modules/bin/nix-scripts.nix
../../modules/desktop/de
../../modules/desktop/dm
../../modules/desktop/fonts
../../modules/hardware/bluetooth.nix
../../modules/hardware/printing.nix
../../modules/hardware/sound.nix
../../modules/hardware/yubikey.nix
../../modules/services/docker.nix
../../modules/services/openhantek.nix
../../modules/desktop/dm
../../modules/desktop/de
../../modules/desktop/fonts
../../modules/chat
../../modules/multimedia
../../modules/programs.nix
];
desktop.dm.name = "sddm";
desktop.de.plasma.enable = true;
@ -46,25 +43,6 @@
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
age
alejandra
borgbackup
borgmatic
docker
docker-compose
git
nix-index
nix-output-monitor
ranger
sops
unstable.nh
vim
wget
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;

View File

@ -1,10 +0,0 @@
{
config,
pkgs,
...
}: {
users.users."jonas".packages = with pkgs; [
discord
zoom
];
}

View File

@ -1,5 +1,4 @@
{
config,
pkgs,
...
}: {

View File

@ -2,6 +2,7 @@
...
}: {
imports = [
./tools.nix
./zsh.nix
];
}

View File

@ -0,0 +1,28 @@
{
pkgs
}: {
home.packages = with pkgs; [
bat
firefox
fzf
git
htop
killall
neofetch
nil
nix-search-cli
nixpkgs-fmt
pass
poetry
python311Packages.radian
ranger
thefuck
vim
w3m
wget
youtube-dl
];
nixpkgs.config.permittedInsecurePackages = [
"python3.11-youtube-dl-2021.12.17"
];
}

View File

@ -1,11 +0,0 @@
{
config,
pkgs,
...
}: {
programs.steam.enable = true;
users.users."jonas".packages = with pkgs; [
lutris
spotify
];
}

29
modules/programs.nix Normal file
View File

@ -0,0 +1,29 @@
{
pkgs,
...
}: {
environment.systemPackages = with pkgs; [
age
alejandra
borgbackup
borgmatic
discord
docker
docker-compose
git
lutris
nix-index
nix-output-monitor
openhantek6022
ranger
sops
spotify
unstable.nh
vim
wget
zoom
];
programs.steam.enable = true;
services.udev.packages = [pkgs.openhantek6022];
virtualisation.docker.enable = true;
}

View File

@ -1,3 +0,0 @@
{config, ...}: {
virtualisation.docker.enable = true;
}

View File

@ -1,10 +0,0 @@
{
config,
pkgs,
...
}: {
environment.systemPackages = [
pkgs.openhantek6022
];
services.udev.packages = [pkgs.openhantek6022];
}