Set up some packages

This commit is contained in:
outfoxxed 2023-06-20 23:47:58 -07:00
parent d6495fe305
commit 741eb1d5ce
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
6 changed files with 58 additions and 3 deletions

View file

@ -18,7 +18,9 @@
modules = [
(import ./modules/impurity.nix self)
./modules/preserve-system.nix
./modules/overlay-pkgs
./modules/core.nix
./modules/system.nix
./modules/user
./systems/lenovo.nix
];

View file

@ -0,0 +1,5 @@
{
nixpkgs.overlays = [(final: prev: {
kwrite = final.callPackage ./kwrite.nix {};
})];
}

View file

@ -0,0 +1,3 @@
{ kate }: kate.overrideAttrs (_: _: {
cmakeFlags = [ "-DBUILD_kate=FALSE" ];
})

13
modules/system.nix Normal file
View file

@ -0,0 +1,13 @@
{ pkgs, ... }: {
programs.dconf.enable = true;
services.cpupower-gui.enable = true;
# power management
services.tlp.enable = true;
environment.systemPackages = with pkgs; [
git
vim
];
}

View file

@ -2,7 +2,11 @@
username = "admin";
homeDirectory = "/home/${username}";
in {
imports = [ inputs.home-manager.nixosModules.home-manager ];
imports = [
inputs.home-manager.nixosModules.home-manager
./general.nix
];
options.user = lib.mkOption {
type = with lib.types; attrsOf anything;
@ -53,8 +57,6 @@ in {
XCURSOR_SIZE = "24";
};
programs.hyprland.enable = true;
home-manager = {
extraSpecialArgs = {
inherit system inputs;
@ -76,6 +78,9 @@ in {
inherit username homeDirectory;
stateVersion = config.system.stateVersion;
};
# enable xdg dir management
xdg.enable = true;
};
};
}

27
modules/user/general.nix Normal file
View file

@ -0,0 +1,27 @@
{ pkgs, homeConfig, ... }: {
user = {
home.packages = with pkgs; [
ark
kwrite
krita
gimp
vlc
mpv
gpicview
filelight
cantata
logseq
unrar # used by ark
xdg-utils
];
programs = {
direnv = {
enable = true;
nix-direnv.enable = true;
};
};
};
}