feat: clean up configuration
This commit is contained in:
@@ -1,10 +1,6 @@
|
|||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
outputs,
|
|
||||||
myLib,
|
|
||||||
modulesPath,
|
modulesPath,
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
@@ -22,6 +18,8 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
archetype.general.enable = true;
|
archetype.general.enable = true;
|
||||||
|
feature.fonts.enable = true;
|
||||||
|
feature.virtualisation.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
@@ -57,7 +55,6 @@
|
|||||||
services.auto-cpufreq.enable = true;
|
services.auto-cpufreq.enable = true;
|
||||||
security.sudo.wheelNeedsPassword = false;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||||
virtualisation.docker.enable = true; # feature virtualisation
|
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,13 +8,19 @@
|
|||||||
options.myHome.bundle.desktop-apps.enable = lib.mkEnableOption "enable desktop-apps bundle";
|
options.myHome.bundle.desktop-apps.enable = lib.mkEnableOption "enable desktop-apps bundle";
|
||||||
config = lib.mkIf config.myHome.bundle.desktop-apps.enable {
|
config = lib.mkIf config.myHome.bundle.desktop-apps.enable {
|
||||||
myHome.programs.kitty.enable = true;
|
myHome.programs.kitty.enable = true;
|
||||||
|
myHome.programs.scanner.enable = true;
|
||||||
|
myHome.programs.photos.enable = true;
|
||||||
home.packages = map lib.lowPrio [
|
home.packages = map lib.lowPrio [
|
||||||
pkgs.bottles
|
pkgs.bottles
|
||||||
|
pkgs.brightnessctl
|
||||||
|
pkgs.flameshot
|
||||||
|
pkgs.lutris
|
||||||
pkgs.ungoogled-chromium
|
pkgs.ungoogled-chromium
|
||||||
pkgs.xfce.thunar
|
pkgs.xfce.thunar
|
||||||
pkgs.xfce.thunar-archive-plugin
|
pkgs.xfce.thunar-archive-plugin
|
||||||
pkgs.xfce.thunar-volman
|
pkgs.xfce.thunar-volman
|
||||||
pkgs.vial
|
pkgs.vial
|
||||||
|
pkgs.vlc
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
26
modules/home-manager/programs/creativity.nix
Normal file
26
modules/home-manager/programs/creativity.nix
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.myHome.programs.creativity.enable = lib.mkEnableOption "enable creativity software";
|
||||||
|
config = lib.mkIf config.myHome.programs.creativity.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
blender
|
||||||
|
tiled
|
||||||
|
aseprite
|
||||||
|
inkscape
|
||||||
|
|
||||||
|
prusa-slicer
|
||||||
|
openscad
|
||||||
|
|
||||||
|
godot_4
|
||||||
|
gdtoolkit_4
|
||||||
|
|
||||||
|
audacity
|
||||||
|
sfxr
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -3,8 +3,12 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./creativity.nix
|
||||||
|
./fish.nix
|
||||||
./helix.nix
|
./helix.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
./nvim.nix
|
./nvim.nix
|
||||||
|
./photos.nix
|
||||||
|
./scanner.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
{ ... }: { }
|
||||||
|
|||||||
15
modules/home-manager/programs/photos.nix
Normal file
15
modules/home-manager/programs/photos.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.myHome.programs.photos.enable = lib.mkEnableOption "enable photo software";
|
||||||
|
config = lib.mkIf config.myHome.programs.photos.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# gimp
|
||||||
|
rawtherapee
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
15
modules/home-manager/programs/scanner.nix
Normal file
15
modules/home-manager/programs/scanner.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.myHome.programs.scanner.enable = lib.mkEnableOption "enable scanner software";
|
||||||
|
config = lib.mkIf config.myHome.programs.scanner.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
xsane
|
||||||
|
sane-frontends
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
{
|
{
|
||||||
options.myNixOS.archetype.general.enable = lib.mkEnableOption "enable general archetype";
|
options.myNixOS.archetype.general.enable = lib.mkEnableOption "enable general archetype";
|
||||||
config = lib.mkIf config.myNixOS.archetype.general.enable {
|
config = lib.mkIf config.myNixOS.archetype.general.enable {
|
||||||
myNixOS.features.stylix.enable = true;
|
myNixOS.feature.stylix.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.openssl
|
pkgs.openssl
|
||||||
|
|||||||
@@ -11,10 +11,6 @@
|
|||||||
./archetypes
|
./archetypes
|
||||||
./features
|
./features
|
||||||
./home-manager.nix
|
./home-manager.nix
|
||||||
|
|
||||||
# ./desktop-apps.nix
|
|
||||||
# ./fonts.nix
|
|
||||||
# ./gaming.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|||||||
@@ -1,59 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib;
|
|
||||||
let
|
|
||||||
cfg = config.services.desktop-apps;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [ ];
|
|
||||||
|
|
||||||
options.services.desktop-apps = {
|
|
||||||
enable = mkEnableOption "enable desktop-apps";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
kitty
|
|
||||||
skypeforlinux
|
|
||||||
flameshot
|
|
||||||
xsane
|
|
||||||
sane-frontends
|
|
||||||
blender
|
|
||||||
tiled
|
|
||||||
aseprite
|
|
||||||
gimp
|
|
||||||
eog
|
|
||||||
mpv
|
|
||||||
brightnessctl
|
|
||||||
spotify
|
|
||||||
obs-studio
|
|
||||||
prusa-slicer
|
|
||||||
openscad
|
|
||||||
ungoogled-chromium
|
|
||||||
inkscape
|
|
||||||
|
|
||||||
rawtherapee
|
|
||||||
godot_4
|
|
||||||
gdtoolkit_4
|
|
||||||
sfxr
|
|
||||||
lmms
|
|
||||||
audacity
|
|
||||||
handbrake
|
|
||||||
vlc
|
|
||||||
];
|
|
||||||
programs = {
|
|
||||||
firefox.enable = true;
|
|
||||||
thunar = {
|
|
||||||
enable = true;
|
|
||||||
plugins = with pkgs.xfce; [
|
|
||||||
thunar-archive-plugin
|
|
||||||
thunar-volman
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -5,5 +5,8 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
|
./fonts.nix
|
||||||
|
./gaming.nix
|
||||||
|
./virtualisation.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,18 +4,10 @@
|
|||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
|
||||||
let
|
|
||||||
cfg = config.services.fonts;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [ ];
|
options.myNixOS.feature.fonts.enable = lib.mkEnableOption "enable fonts";
|
||||||
|
|
||||||
options.services.fonts = {
|
config = lib.mkIf config.myNixOS.feature.fonts.enable {
|
||||||
enable = mkEnableOption "enable fonts";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
noto-fonts
|
noto-fonts
|
||||||
noto-fonts-cjk-sans
|
noto-fonts-cjk-sans
|
||||||
|
|||||||
@@ -4,23 +4,14 @@
|
|||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
|
||||||
let
|
|
||||||
cfg = config.services.gaming;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [ ];
|
options.myNixOS.feature.gaming.enable = lib.mkEnableOption "enable gaming";
|
||||||
|
|
||||||
options.services.gaming = {
|
config = lib.mkIf config.myNixOS.feature.gaming.enable {
|
||||||
enable = mkEnableOption "enable gaming";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
bottles
|
bottles
|
||||||
steam
|
steam
|
||||||
discord
|
discord
|
||||||
openttd
|
|
||||||
];
|
];
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
programs.gamemode.enable = true;
|
programs.gamemode.enable = true;
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
options.myNixOS.features.stylix.enable = lib.mkEnableOption "enable Stylix";
|
options.myNixOS.feature.stylix.enable = lib.mkEnableOption "enable Stylix";
|
||||||
config = lib.mkIf config.myNixOS.features.stylix.enable {
|
config = lib.mkIf config.myNixOS.feature.stylix.enable {
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
image = ../../../wall.jpg;
|
image = ../../../wall.jpg;
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.myNixOS.feature.virtualisation.enable = lib.mkEnableOption "enable virtualisation";
|
||||||
|
|
||||||
|
config = lib.mkIf config.myNixOS.feature.virtualisation.enable {
|
||||||
|
virtualisation.podman = {
|
||||||
|
enable = true;
|
||||||
|
autoPrune.enable = true;
|
||||||
|
dockerCompat = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user