restructured flake

This commit is contained in:
willifan 2025-05-30 14:22:14 +02:00
parent 5c7ae091c1
commit bf3bb961f3
100 changed files with 76 additions and 78 deletions

View file

@ -16,7 +16,11 @@
./radicale.nix ./radicale.nix
./synapse.nix ./synapse.nix
../../modules/default ../../modules/common
../../modules/nixos
../../modules/home-manager
../../modules/sops
../../modules/stylix
]; ];

View file

@ -4,8 +4,11 @@
./hardware-configuration.nix ./hardware-configuration.nix
./disko.nix ./disko.nix
../../modules/default ../../modules/common
../../modules/nixos
../../modules/home-manager
../../modules/sops
../../modules/stylix
]; ];
desktop = { desktop = {
@ -24,7 +27,7 @@
}; };
}; };
services.auto-epp.enable = true; services.auto-epp.enable = true;
services.fwupd.enable = true; services.fwupd.enable = true;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
services.hardware.bolt.enable = true; services.hardware.bolt.enable = true;

View file

@ -5,7 +5,11 @@
./disko.nix ./disko.nix
./jovian.nix ./jovian.nix
../../modules/default ../../modules/common
../../modules/nixos
../../modules/home-manager
../../modules/sops
../../modules/stylix
]; ];

View file

@ -4,7 +4,11 @@
./hardware-configuration.nix ./hardware-configuration.nix
./disko.nix ./disko.nix
../../modules/default ../../modules/common
../../modules/nixos
../../modules/home-manager
../../modules/sops
../../modules/stylix
]; ];

View file

@ -0,0 +1,14 @@
{ lib, config, ... }:
{
options = {
nixos.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
home.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
};
}

View file

@ -1,7 +0,0 @@
{ ... }:
{
imports = [
./nixos
./home-manager
];
}

View file

@ -1,11 +0,0 @@
{ ... }:
{
programs = {
direnv = {
enable = true;
nix-direnv.enable = true;
};
};
}

View file

@ -1,2 +0,0 @@
{ lib, ... }:
{ }

View file

@ -1,33 +0,0 @@
{ pkgs, ... }:
let
wallpaper = pkgs.fetchurl {
url = "https://files.huwe.mooo.com/Oneshot.png";
hash = "sha256-LaIzLCW86sbldE9lk7psbYKaTCjwaPLcoD3il6FalTw=";
};
plymouth_logo = pkgs.fetchurl {
url = "https://files.huwe.mooo.com/outlinenobackground.png";
hash = "sha256-HdErySgSwNSPEHyBywLyZCAss4vUhsY8BvCPe5hST6Q=";
};
in
{
stylix = {
enable = true;
autoEnable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/pasque.yaml";
override = {
base0D = "F3196E";
base0F = "CFAACF";
};
image = wallpaper;
polarity = "dark";
targets.plymouth.logo = plymouth_logo;
};
}

View file

@ -1,20 +1,19 @@
{ ... }: { lib, config, ... }:
{ {
home.enable = true;
imports = [ imports = [
./desktop ./desktop
./shell ./shell
./tmux ./tmux
./utils ./utils
./direnv.nix
./git.nix ./git.nix
./stylix.nix ./syncthing.nix
]; ];
home-manager.users.willifan = { home-manager.users.willifan = {
imports = [
];
home.stateVersion = "23.11"; home.stateVersion = "23.11";
}; };

View file

@ -6,7 +6,7 @@ let
sha256 = "1andyln5vmm934nl1lsid2gpc88h9il83b84yd9dmqr7pninwk37"; sha256 = "1andyln5vmm934nl1lsid2gpc88h9il83b84yd9dmqr7pninwk37";
}; };
in in
lib.mkIf config.desktop.wm.niri.enable { lib.mkIf (config.desktop.wm.niri.enable && config.nixos.enable) {
nixpkgs.overlays = [ inputs.niri.overlays.niri ]; nixpkgs.overlays = [ inputs.niri.overlays.niri ];

View file

@ -11,9 +11,4 @@
./zed.nix ./zed.nix
]; ];
home-manager.users.willifan = {
imports = [
];
};
} }

View file

@ -1,7 +1,7 @@
{ lib, config, inputs, hostname, ... }: { lib, config, inputs, hostname, ... }:
{ {
nixos.enable = true;
imports = [ imports = [
./desktop ./desktop
@ -20,9 +20,6 @@
./optimise.nix ./optimise.nix
./options.nix ./options.nix
./packages.nix ./packages.nix
./sops.nix
./stylix.nix
./syncthing.nix
./users.nix ./users.nix
]; ];

View file

@ -8,4 +8,9 @@ lib.mkIf config.desktop.dev.enable {
clang-tools clang-tools
gcc gcc
]; ];
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
} }

View file

@ -2,7 +2,7 @@
{ {
sops.defaultSopsFile = ../../../secrets/secrets.yaml; sops.defaultSopsFile = ../../secrets/secrets.yaml;
sops.defaultSopsFormat = "yaml"; sops.defaultSopsFormat = "yaml";
sops.age.keyFile = "/etc/sops/keys.txt"; sops.age.keyFile = "/etc/sops/keys.txt";

View file

@ -1,11 +1,35 @@
{ pkgs, ... }: { pkgs, lib, config, ... }:
let let
wallpaper = pkgs.fetchurl { wallpaper = pkgs.fetchurl {
url = "https://files.huwe.mooo.com/Oneshot.png"; url = "https://files.huwe.mooo.com/Oneshot.png";
hash = "sha256-LaIzLCW86sbldE9lk7psbYKaTCjwaPLcoD3il6FalTw="; hash = "sha256-LaIzLCW86sbldE9lk7psbYKaTCjwaPLcoD3il6FalTw=";
}; };
plymouth_logo = pkgs.fetchurl {
url = "https://files.huwe.mooo.com/outlinenobackground.png";
hash = "sha256-HdErySgSwNSPEHyBywLyZCAss4vUhsY8BvCPe5hST6Q=";
};
in in
{
lib.mkIf config.home.enable {
stylix = {
enable = true;
autoEnable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/pasque.yaml";
override = {
base0D = "F3196E";
base0F = "CFAACF";
};
image = wallpaper;
polarity = "dark";
targets.plymouth.logo = plymouth_logo;
};
home-manager.users.willifan = { home-manager.users.willifan = {
stylix = { stylix = {
@ -72,3 +96,5 @@ in
}; };
} }