Compare commits

...

1 Commits

Author SHA1 Message Date
225624a841
temp 2024-07-05 14:17:09 +02:00
15 changed files with 58 additions and 46 deletions

View File

@ -8,9 +8,6 @@ toplevel@{ inputs, withSystem, config, ... }:
mods = config.flake.homeManagerModules;
in
[
{
home.stateVersion = config.flake.stateVersion;
}
inputs.nid.hmModules.nix-index
inputs.catppuccin.homeManagerModules.catppuccin
mods.all

View File

@ -1,5 +1,5 @@
{ moduleWithSystem, ... }: {
flake.homeManagerModules = {
{ moduleWithSystem, config, inputs, ... }: {
flake.homeManagerModules = rec {
dev = moduleWithSystem (
top@{ ... }:
perSystem@{ pkgs, ... }: {
@ -34,23 +34,20 @@
];
}
);
all = moduleWithSystem
general = moduleWithSystem
(
top@{ ... }:
perSystem@{ pkgs, ... }:
rec {
imports = [ ../programs ];
programs.home-manager.enable = true;
catppuccin = {
enable = true;
flavor = "mocha";
};
gtk = {
enable = true;
};
home = rec {
stateVersion = config.flake.stateVersion;
username = "ivand";
homeDirectory = "/home/ivand";
sessionPath = [
@ -120,6 +117,7 @@
xdg = {
enable = true;
cacheHome = "${home.homeDirectory}/.cache";
userDirs = {
enable = true;
createDirectories = true;
@ -187,5 +185,28 @@
];
}
);
ivand-nixos-home = moduleWithSystem (
top@{ ... }:
perSystem@{ ... }:
let
home-manager = inputs.home-manager.nixosModules.home-manager;
in
{
imports = [ home-manager ];
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
};
home-manager.users.ivand = {
imports = [
general
dev
essential
random
reminders
];
};
}
);
};
}

View File

@ -1,6 +1,5 @@
{
programs.bat = {
enable = true;
catppuccin.enable = true;
};
}

View File

@ -1,7 +1,6 @@
{
programs.bottom = {
enable = true;
catppuccin.enable = true;
settings = {
flags = {
rate = "250ms";

View File

@ -1,6 +1,6 @@
{
programs = {
nix-index-database.comma.enable = true;
nix-index.enable = true;
# nix-index-database.comma.enable = true;
# nix-index.enable = true;
};
}

View File

@ -1,6 +1,5 @@
{
programs.imv = {
enable = true;
catppuccin.enable = true;
};
}

View File

@ -1,7 +1,6 @@
{ pkgs, ... }: {
programs.kitty = {
enable = true;
catppuccin.enable = true;
font = {
package = pkgs.fira-code;
name = "FiraCodeNFM-Reg";

View File

@ -1,6 +1,5 @@
{
services.mako = {
enable = true;
catppuccin.enable = true;
};
}

View File

@ -1,6 +1,5 @@
{
programs.mpv = {
enable = true;
catppuccin.enable = true;
};
}

View File

@ -1,7 +1,6 @@
{ pkgs, ... }: {
programs.rofi = {
enable = true;
catppuccin.enable = true;
package = pkgs.rofi-wayland.override {
plugins = with pkgs; [
(

View File

@ -1,7 +1,6 @@
{
programs.starship = {
enable = true;
catppuccin.enable = true;
enableNushellIntegration = true;
enableZshIntegration = true;
};

View File

@ -1,7 +1,6 @@
{ pkgs, ... }: {
perSystem@{ pkgs, ... }: {
wayland.windowManager.sway = {
enable = true;
catppuccin.enable = true;
systemd.enable = true;
config = rec {
menu = "rofi -show run";

View File

@ -1,7 +1,6 @@
{ config, ... }: {
programs.swaylock = {
enable = true;
catppuccin.enable = true;
settings = {
show-failed-attempts = true;
image = config.home.homeDirectory + "/pic/bg.png";

View File

@ -1,7 +1,6 @@
{
programs.waybar = {
enable = true;
catppuccin.enable = true;
settings = {
mainBar =
let

View File

@ -191,31 +191,36 @@ top@{ moduleWithSystem, ... }: {
};
};
};
ivand = moduleWithSystem (toplevel@{ ... }: perSystem@{ pkgs, ... }: {
users = {
defaultUserShell = pkgs.zsh;
ivand = moduleWithSystem (toplevel@{ ... }: perSystem@{ pkgs, ... }:
let
mods = top.config.flake.homeManagerModules;
in
{
imports = [ mods.ivand-nixos-home ];
users = {
ivand = {
isNormalUser = true;
createHome = true;
extraGroups = [
"adbusers"
"adm"
"audio"
"bluetooth"
"dialout"
"flatpak"
"kvm"
"mlocate"
"render"
"video"
"wheel"
];
defaultUserShell = pkgs.zsh;
users = {
ivand = {
isNormalUser = true;
createHome = true;
extraGroups = [
"adbusers"
"adm"
"audio"
"bluetooth"
"dialout"
"flatpak"
"kvm"
"mlocate"
"render"
"video"
"wheel"
];
};
};
extraGroups = { mlocate = { }; };
};
extraGroups = { mlocate = { }; };
};
});
});
testUser = moduleWithSystem (toplevel@{ ... }: perSystem@{ pkgs, ... }: {
users = {
defaultUserShell = pkgs.zsh;