flake-parts #1

Merged
lucy merged 41 commits from flake-parts into main 2026-10-19 22:40:55 +00:00
8 changed files with 70 additions and 12 deletions
Showing only changes of commit 63d9c50b5e - Show all commits

fixup home manager config and add fuzzel

lucy 2026-10-19 23:56:45 +02:00

View file

@ -25,5 +25,10 @@
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.home-manager.flakeModules.home-manager
(inputs.import-tree ./modules)
];
};
}

40
modules/#default.nix# Normal file
View file

@ -0,0 +1,40 @@
{
self,
inputs,
...
}:
let
mods = with self.nixosModules; [
user
packages
agenix
boot
core
easyroam
myStylix
stylixTargets
/etc/nixos/hardware-configuration.nix
];
in
{
flake.nixosConfigurations.nerv = inputs.nixpkgs.lib.nixosSystem {
modules =
with self.nixosModules;
[
{
config.dualBoot = true;
config.networking.hostName = "nerv";
}
]
++ mods;
};
flake.nixosConfigurations.seele = inputs.nixpkgs.lib.nixosSystem {
modules = [
{
config.networking.hostName = "seele";
}
]
++ mods;
};
}

3
modules/home/#home.nix# Normal file
View file

@ -0,0 +1,3 @@
{inputs, ...} : {
}

View file

@ -3,7 +3,7 @@
flake.homeModules.emacs = { pkgs, ... }: {
programs.emacs = {
enable = true;
packages = pkgs.emacs-pgtk;
package = pkgs.emacs-pgtk;
extraConfig = ''
;; -*- lexical-binding: t; -*-
(setq make-backup-files nil)

View file

@ -0,0 +1,12 @@
{...}: {
flake.homeModules.fuzzel = {
programs.fuzzel = {
enable = true;
settings = {
main = {
dpi_aware = "no";
};
};
};
};
}

View file

@ -1,11 +1,10 @@
{inputs, ...}: {
flake.homeModules.homeStylix = {
imports = [ inputs.stylix.homeModules.stylix ];
stylix.targets = {
ghostty.enable = true;
fuzzel.enable = true;
gtk.enable = true;
niri.enable = true;
emacs.enable = true;
};
};
}

View file

@ -6,22 +6,16 @@
stow
ufetch
rbw
emacs-pgtk
tinty
pinentry-gnome3
git
nixd
nixfmt
xournalpp
rnote
btop
chromium
fuzzel
quickshell
wl-clipboard
adw-gtk3
papirus-icon-theme
apple-cursor
polkit_gnome
xwayland-satellite
nemo
@ -38,8 +32,6 @@
jq
nmgui
kdePackages.qtdeclarative
ghostty
rnote
gsettings-desktop-schemas
glib
];

View file

@ -14,12 +14,19 @@
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs; };
home-manager.users.lucy = {
home.username = "lucy";
home.homeDirectory = "/home/lucy";
home.stateVersion = "25.11";
};
home-manager.sharedModules = with self.homeModules; [
nixcord
ghostty
niri
emacs
homeStylix
fuzzel
];
};
}