-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(modules): i honestly dk anymore
- Loading branch information
Showing
22 changed files
with
287 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
/result | ||
*.qcow2 | ||
*.qcow2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
mkTest, | ||
pkgs, | ||
lib, | ||
self, | ||
alejandra, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
pkgs, | ||
lib, | ||
... | ||
} @ args: let | ||
}: let | ||
inherit (lib) callPackageWith; | ||
|
||
mkTest = test: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
self, | ||
lib, | ||
inputs, | ||
withSystem, | ||
... | ||
}: let | ||
inherit (self) outputs; | ||
inherit (lib.strings) hasSuffix; | ||
in { | ||
flake.lib = rec { | ||
mkPkgs = system: | ||
import inputs.nixpkgs { | ||
inherit system; | ||
overlays = with outputs.overlays; [pkgs]; | ||
config.allowUnfree = true; | ||
}; | ||
|
||
mkSystem = host: system: type: modules: | ||
withSystem system ({pkgs, ...}: | ||
type { | ||
inherit system modules; | ||
pkgs = mkPkgs system; | ||
specialArgs = {inherit inputs outputs host;}; | ||
}); | ||
|
||
mkStrappedSystem = host: system: type: modules: let | ||
inherit (builtins) attrValues; | ||
|
||
isLinux = hasSuffix "linux" system; | ||
in | ||
mkSystem host system type ( | ||
modules | ||
++ ( | ||
if isLinux | ||
then attrValues outputs.nixosModules | ||
else attrValues outputs.darwinModules | ||
) | ||
++ attrValues outputs.sharedModules | ||
); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
lib, | ||
config, | ||
pkgs, | ||
... | ||
}: let | ||
inherit (lib) mkIf mkOption types; | ||
|
||
cfg = config.sysc.cura; | ||
in { | ||
options.sysc.cura = { | ||
enable = mkOption { | ||
type = types.bool; | ||
default = false; | ||
description = "Whether to enable Cura."; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
home = { | ||
packages = with pkgs; [cura]; | ||
|
||
persistence."/persist/home/bddvlpr".directories = [ | ||
".config/cura" | ||
".local/share/cura" | ||
]; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.