hmServices, refactor extension, home to automatic
This commit is contained in:
parent
e2e3598230
commit
49cb3c949c
10 changed files with 12 additions and 19 deletions
|
|
@ -1,14 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./dunst
|
||||
./home
|
||||
./manpages
|
||||
./ssh
|
||||
./timers
|
||||
./trash
|
||||
./wal
|
||||
./widgets
|
||||
];
|
||||
{ lib, ... }: let
|
||||
fs = lib.fileset;
|
||||
appFilter = {name, ...}: name == "service.nix";
|
||||
in {
|
||||
imports = fs.toList (fs.fileFilter appFilter ./.);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,43 +0,0 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
options = {
|
||||
extraPkgs = lib.mkOption { default = []; };
|
||||
nvidia.enable = lib.mkEnableOption "Enables nvidia requirements";
|
||||
defaultApps = {
|
||||
terminal = lib.mkOption { default = ""; };
|
||||
browser = lib.mkOption { default = ""; };
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
home.sessionVariables = {
|
||||
GRADLE_USER_HOME = "${config.xdg.dataHome}/gradle";
|
||||
CUDA_CACHE_PATH = "${config.xdg.cacheHome}/nv";
|
||||
};
|
||||
|
||||
xdg = {
|
||||
enable = true;
|
||||
mimeApps.enable = true;
|
||||
userDirs = let
|
||||
home = config.home.homeDirectory;
|
||||
in {
|
||||
enable = true;
|
||||
documents = "${home}/dox";
|
||||
publicShare = "${home}/dox/public";
|
||||
templates = "${home}/dox/templates";
|
||||
music = "${home}/med/mus";
|
||||
pictures = "${home}/med/pix";
|
||||
videos = "${home}/med/vid";
|
||||
desktop = "${home}/dwn";
|
||||
download = "${home}/dwn";
|
||||
};
|
||||
};
|
||||
|
||||
home.homeDirectory = "/home/" + config.home.username;
|
||||
home.packages = config.extraPkgs;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ config, lib, ... }:
|
||||
let rootPath = ./.; in
|
||||
{
|
||||
options.timer = {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
options.trash = {
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
let rootPath = ./.; in
|
||||
|
||||
{
|
||||
options.colors = {
|
||||
enable = lib.mkEnableOption "Enables setting colors using wallust";
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
Loading…
Add table
Add a link
Reference in a new issue