import modules default.nix + propagated username + host specific conf
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
# The nixosConfig allows to access the toplevel system configuration from within home manager
|
# The nixosConfig allows to access the toplevel system configuration from within home manager
|
||||||
# https://github.com/nix-community/home-manager/blob/586ac1fd58d2de10b926ce3d544b3179891e58cb/nixos/default.nix#L19
|
# https://github.com/nix-community/home-manager/blob/586ac1fd58d2de10b926ce3d544b3179891e58cb/nixos/default.nix#L19
|
||||||
{ inputs, lib, mylib, config, nixosConfig, pkgs, ... }:
|
{ inputs, hostname, username, lib, mylib, config, nixosConfig, pkgs, ... }:
|
||||||
|
|
||||||
# This is a module
|
# This is a module
|
||||||
# Because no imports/options/config is defined explicitly, everything is treated as config
|
# Because no imports/options/config is defined explicitly, everything is treated as config
|
||||||
@ -15,12 +15,8 @@ rec {
|
|||||||
# Arguments with matching names are "plugged in" into the right slots,
|
# Arguments with matching names are "plugged in" into the right slots,
|
||||||
# the case of different arity is handled by always providing ellipses (...) in module definitions
|
# the case of different arity is handled by always providing ellipses (...) in module definitions
|
||||||
imports = [
|
imports = [
|
||||||
|
./${hostname}
|
||||||
# My modules
|
../../modules
|
||||||
../../modules/emacs.nix
|
|
||||||
../../modules/audio.nix
|
|
||||||
../../modules/flatpak.nix
|
|
||||||
../../modules/gaming.nix
|
|
||||||
|
|
||||||
# inputs.nixvim.homeManagerModules.nixvim
|
# inputs.nixvim.homeManagerModules.nixvim
|
||||||
];
|
];
|
||||||
@ -35,18 +31,6 @@ rec {
|
|||||||
doom.autoUpgrade = false; # Very volatile as the upgrade fails sometimes with bleeding edge emacs
|
doom.autoUpgrade = false; # Very volatile as the upgrade fails sometimes with bleeding edge emacs
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.audio = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
# TODO: Remove the config link when disabled
|
|
||||||
carla.enable = true;
|
|
||||||
bitwig.enable = false;
|
|
||||||
yabridge.enable = true;
|
|
||||||
yabridge.autoSync = true;
|
|
||||||
|
|
||||||
extraPackages = with pkgs; [ audacity vcv-rack ];
|
|
||||||
};
|
|
||||||
|
|
||||||
modules.flatpak = {
|
modules.flatpak = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
@ -61,8 +45,6 @@ rec {
|
|||||||
flatseal.enable = true;
|
flatseal.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.gaming = {};
|
|
||||||
|
|
||||||
# TODO: Email
|
# TODO: Email
|
||||||
# TODO: Run noisetorch as login script
|
# TODO: Run noisetorch as login script
|
||||||
# TODO: Gnome terminal config
|
# TODO: Gnome terminal config
|
||||||
@ -120,7 +102,7 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
username = "christoph";
|
username = username; # Inherited from flake.nix
|
||||||
homeDirectory = "/home/${home.username}";
|
homeDirectory = "/home/${home.username}";
|
||||||
enableNixpkgsReleaseCheck = true;
|
enableNixpkgsReleaseCheck = true;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user