Working checkpoint towards unified modules

This commit is contained in:
marc
2022-11-16 23:51:57 +01:00
parent 882c04a6bf
commit cfcc374a69
8 changed files with 12 additions and 12 deletions

View File

@@ -44,9 +44,6 @@
}
{
# home-manager.extraSpecialArgs = { inherit inputs; };
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
home-manager.users.marc = {
imports = [
./home/modules

View File

@@ -2,7 +2,7 @@
{
imports = [
./alacritty.nix
# ./alacritty.nix
./discord.nix
./spotify.nix
];

View File

@@ -32,8 +32,6 @@ in
polybar.enable = true;
};
app.alacritty.enable = true;
};
services.picom.enable = true;

View File

@@ -16,6 +16,6 @@ in
(nerdfonts.override { fonts = [ "Iosevka" ]; })
];
xdg.configFile."alacritty".source = ../../../config/.config/alacritty;
home.configFile."alacritty".source = ../../config/.config/alacritty;
};
}

View File

@@ -7,7 +7,8 @@ with lib.my;
user = mkOpt attrs {};
home = {
file = mkOpt' attrs {} "Files to place directly in $HOME";
packages = mkOpt' (listOf package) [] "Packages to be installed at user level";
file = mkOpt' attrs {} "Files to place directly in $HOME" ;
configFile = mkOpt' attrs {} "Files to place in $XDG_CONFIG_HOME";
dataFile = mkOpt' attrs {} "Files to place in $XDG_DATA_HOME";
};
@@ -26,12 +27,11 @@ with lib.my;
};
config = {
user = let name = "marc"; in {
inherit name;
user = {
description = "The primary user account";
extraGroups = [ "wheel" ];
isNormalUser = true;
home = "/home/${name}";
home = "/home/${config.user.name}";
group = "users";
uid = 1000;
};
@@ -44,6 +44,7 @@ with lib.my;
users.${config.user.name} = {
home = {
file = mkAliasDefinitions options.home.file;
packages = mkAliasDefinitions options.home.packages;
# Necessary for home-manager to work with flakes, otherwise it will
# look for a nixpkgs channel.
stateVersion = config.system.stateVersion;

View File

@@ -8,6 +8,7 @@
# - Basic --------------------------------------
user.name = "marc";
networking.hostName = "reykjavik";
boot.loader.systemd-boot.enable = true;

View File

@@ -37,6 +37,7 @@
pciutils
psmisc
vim
zsh
];
# - Other --------------------------------------

View File

@@ -25,6 +25,8 @@ in
i3lock-blur
];
samfelag.modules.app.alacritty.enable = true;
# - Audio ------------------------------------
sound.enable = true;