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 = { home-manager.users.marc = {
imports = [ imports = [
./home/modules ./home/modules

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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