chore(tree-wide): remove snowfall-lib as dependency
This commit is contained in:
parent
5cf347812c
commit
0965dd312a
8 changed files with 65 additions and 41 deletions
39
flake.nix
39
flake.nix
|
@ -1,5 +1,11 @@
|
|||
{
|
||||
|
||||
outputs =
|
||||
inputs:
|
||||
inputs.snowfall-lib.mkFlake {
|
||||
inherit inputs;
|
||||
src = ./.;
|
||||
snowfall.namespace = "pantheon";
|
||||
};
|
||||
inputs = {
|
||||
crane.url = "github:ipetkov/crane";
|
||||
rrv-sh.url = "github:rrvsh/rrv.sh";
|
||||
|
@ -62,35 +68,4 @@
|
|||
zjstatus.inputs.rust-overlay.follows = "rust-overlay";
|
||||
zjstatus.url = "github:dj95/zjstatus";
|
||||
};
|
||||
|
||||
outputs =
|
||||
inputs:
|
||||
inputs.snowfall-lib.mkFlake {
|
||||
inherit inputs;
|
||||
src = ./.;
|
||||
snowfall.namespace = "pantheon";
|
||||
overlays = with inputs; [
|
||||
stable-diffusion-webui-nix.overlays.default
|
||||
(_final: prev: {
|
||||
zjstatus = zjstatus.packages.${prev.system}.default;
|
||||
})
|
||||
];
|
||||
systems.modules.nixos = with inputs; [
|
||||
disko.nixosModules.disko
|
||||
impermanence.nixosModules.impermanence
|
||||
sops-nix.nixosModules.sops
|
||||
stylix.nixosModules.stylix
|
||||
stable-diffusion-webui-nix.nixosModules.default
|
||||
rrv-sh.nixosModules.default
|
||||
];
|
||||
homes.modules = with inputs; [
|
||||
impermanence.homeManagerModules.impermanence
|
||||
nix-index-database.hmModules.nix-index
|
||||
nvf.homeManagerModules.default
|
||||
];
|
||||
outputs-builder = channels: {
|
||||
formatter = channels.nixpkgs.nixfmt-rfc-style;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ pkgs, osConfig, ... }:
|
||||
{
|
||||
osConfig,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.sessionVariables.MULTIPLEXER = "zellij";
|
||||
persistDirs = [ "/.cache/zellij" ];
|
||||
|
@ -16,7 +21,9 @@
|
|||
layout {
|
||||
default_tab_template {
|
||||
pane size=1 borderless=true {
|
||||
plugin location="file:${pkgs.zjstatus}/bin/zjstatus.wasm" {
|
||||
plugin location="file:${
|
||||
inputs.zjstatus.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
}/bin/zjstatus.wasm" {
|
||||
format_left "{mode} ${osConfig.hostname}"
|
||||
format_center "{tabs}"
|
||||
format_right "{datetime}"
|
||||
|
|
|
@ -11,7 +11,11 @@ in
|
|||
{
|
||||
imports =
|
||||
(optional osConfig.desktop.enable (import-tree ./desktop))
|
||||
++ singleton (import-tree ./cli);
|
||||
++ singleton (import-tree ./cli)
|
||||
++ [
|
||||
inputs.nix-index-database.hmModules.nix-index
|
||||
inputs.nvf.homeManagerModules.default
|
||||
];
|
||||
|
||||
config = {
|
||||
stylix.image = ./desktop/wallpaper.png;
|
||||
|
|
|
@ -1,9 +1,18 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkOption;
|
||||
inherit (lib.types) listOf str;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.impermanence.homeManagerModules.impermanence
|
||||
];
|
||||
|
||||
options = {
|
||||
persistDirs = mkOption {
|
||||
type = listOf str;
|
||||
|
@ -13,7 +22,7 @@ in
|
|||
|
||||
config = {
|
||||
# Helper options
|
||||
home.persistence."/persist/home/${config.snowfallorg.user.name}" = {
|
||||
home.persistence."/persist/home/${config.home.username}" = {
|
||||
directories = config.persistDirs;
|
||||
allowOther = true;
|
||||
};
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
system,
|
||||
|
@ -33,6 +34,10 @@ let
|
|||
};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
inputs.stylix.nixosModules.stylix
|
||||
];
|
||||
options = {
|
||||
hostname = mkStrOption;
|
||||
mainUser = {
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
inherit (lib.pantheon) mkStrOption;
|
||||
|
@ -44,6 +49,10 @@ let
|
|||
};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.disko.nixosModules.disko
|
||||
inputs.impermanence.nixosModules.impermanence
|
||||
];
|
||||
options.machine.drives.btrfs = {
|
||||
enable = mkEnableOption "";
|
||||
drive = mkStrOption;
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib.pantheon.modules) mkWebApp;
|
||||
cfg = config.server.web-apps.rrv-sh;
|
||||
|
@ -14,3 +19,6 @@ mkWebApp {
|
|||
};
|
||||
};
|
||||
}
|
||||
// {
|
||||
imports = [ inputs.rrv-sh.nixosModules.default ];
|
||||
}
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) singleton;
|
||||
inherit (lib.pantheon.modules) mkWebApp;
|
||||
cfg = config.server.web-apps.sd-webui-forge;
|
||||
upstreamCfg = config.services.sd-webui-forge;
|
||||
in
|
||||
mkWebApp {
|
||||
|
@ -25,3 +29,6 @@ mkWebApp {
|
|||
};
|
||||
};
|
||||
}
|
||||
// {
|
||||
imports = [ inputs.stable-diffusion-webui-nix.nixosModules.default ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue