mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat!: switch to full flake-parts
This commit is contained in:
parent
7d82c3cee9
commit
7d614f784c
55 changed files with 4443 additions and 4188 deletions
|
|
@ -1,7 +1,10 @@
|
|||
{ lib, ... }:
|
||||
{ lib, inputs, ... }:
|
||||
let
|
||||
importNames = lib.swarselsystems.readNix "modules/nixos/client";
|
||||
in
|
||||
{
|
||||
imports = lib.swarselsystems.mkImports importNames "modules/nixos/client";
|
||||
imports = lib.swarselsystems.mkImports importNames "modules/nixos/client" ++ [
|
||||
inputs.stylix.nixosModules.stylix
|
||||
inputs.nswitch-rcm-nix.nixosModules.nswitch-rcm
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,9 @@ in
|
|||
name = mkOption {
|
||||
type = types.str;
|
||||
};
|
||||
work = mkOption {
|
||||
type = types.str;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,18 @@
|
|||
{ inputs, config, lib, outputs, globals, nodes, ... }:
|
||||
{ self, inputs, config, lib, outputs, globals, nodes, ... }:
|
||||
let
|
||||
mainUser = globals.user.name;
|
||||
in
|
||||
{
|
||||
|
||||
options.swarselsystems.modules.home-manager = lib.mkEnableOption "home-manager";
|
||||
config = lib.mkIf config.swarselsystems.modules.home-manager {
|
||||
home-manager = lib.mkIf config.swarselsystems.withHomeManager {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
verbose = true;
|
||||
users."${mainUser}".imports = [
|
||||
"${self}/profiles/home"
|
||||
"${self}/modules/home"
|
||||
];
|
||||
sharedModules = [
|
||||
inputs.nix-index-database.hmModules.nix-index
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{ lib, config, outputs, ... }:
|
||||
{ self, lib, config, outputs, globals, ... }:
|
||||
let
|
||||
macUser = globals.user.work;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
];
|
||||
|
||||
options.swarselsystems.modules.darwin.general = lib.mkEnableOption "darwin config";
|
||||
config = lib.mkIf config.swarselsystems.modules.darwin.general {
|
||||
|
|
@ -12,6 +17,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
home-manager.users."${macUser}".imports = [
|
||||
"${self}/modules/home/darwin"
|
||||
];
|
||||
|
||||
system.stateVersion = 4;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
{ lib, config, ... }:
|
||||
{ lib, config, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.fw-fanctrl.nixosModules.default
|
||||
];
|
||||
options.swarselsystems.modules.optional.framework = lib.mkEnableOption "optional framework machine settings";
|
||||
config = lib.mkIf config.swarselsystems.modules.optional.framework {
|
||||
services = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue