mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: files force,,,
This commit is contained in:
parent
8ea560f504
commit
1d5c0a1d15
5 changed files with 49 additions and 16 deletions
26
flake.lock
generated
26
flake.lock
generated
|
|
@ -5,17 +5,17 @@
|
|||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1752473264,
|
||||
"lastModified": 1752473542,
|
||||
"narHash": "sha256-PhowmGOEqpVHSijrb/5f2HHwaH2uaGxS6kWQKdGyIgM=",
|
||||
"owner": "kittywitch",
|
||||
"repo": "arcexprs",
|
||||
"rev": "fed3d7a889571f065741db910b0e0435a23af2e6",
|
||||
"owner": "arcnmx",
|
||||
"repo": "nixexprs",
|
||||
"rev": "194e3d4a292d441187f2f386120b1b07db3dc72e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "kittywitch",
|
||||
"owner": "arcnmx",
|
||||
"ref": "master",
|
||||
"repo": "arcexprs",
|
||||
"repo": "nixexprs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
|
|
@ -29,15 +29,15 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1752471575,
|
||||
"lastModified": 1752473330,
|
||||
"narHash": "sha256-HJZosSUcwX7HuGWyRkhBJQ1ToUkPzRzakM4ozoZmeTY=",
|
||||
"owner": "kittywitch",
|
||||
"owner": "arcnmx",
|
||||
"repo": "base16.nix",
|
||||
"rev": "f038c00bc1a4750340e3ade44063d67e4408db44",
|
||||
"rev": "dda216bd4d4bcd2460ae274cefb9584f9f7843d0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "kittywitch",
|
||||
"owner": "arcnmx",
|
||||
"ref": "flake",
|
||||
"repo": "base16.nix",
|
||||
"type": "github"
|
||||
|
|
@ -118,11 +118,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1752471889,
|
||||
"narHash": "sha256-4xKCC4pqhjmuY9LxRbNT9ej3LVvsqrSSlukK5ADMbiY=",
|
||||
"lastModified": 1752507097,
|
||||
"narHash": "sha256-/JlfJOzHs7tJpFp6bw1AF7hO9FMMgLjQgtCaIK/jA2M=",
|
||||
"owner": "kittywitch",
|
||||
"repo": "nyx",
|
||||
"rev": "96406d53afbeb672c842a01b21e135ca19a262c3",
|
||||
"rev": "721f290b311f88eef85e8415f445fe5f90bf9155",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
|
|
@ -314,11 +314,11 @@
|
|||
};
|
||||
# a bunch of modules (also arcnmx is good)
|
||||
arcexprs = {
|
||||
url = "github:kittywitch/arcexprs/master";
|
||||
#url = "github:arcnmx/nixexprs/master";
|
||||
#url = "github:kittywitch/arcexprs/master";
|
||||
url = "github:arcnmx/nixexprs/master";
|
||||
};
|
||||
base16 = {
|
||||
url = "github:kittywitch/base16.nix/flake";
|
||||
url = "github:arcnmx/base16.nix/flake";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
flakelib.follows = "flakelib";
|
||||
|
|
|
|||
3
home/profiles/common/files.nix
Normal file
3
home/profiles/common/files.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
_: {
|
||||
home.clobberAllFiles = true;
|
||||
}
|
||||
|
|
@ -5,6 +5,9 @@
|
|||
}: let
|
||||
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.system};
|
||||
in {
|
||||
programs.ncspot = {
|
||||
enable = true;
|
||||
};
|
||||
programs.spicetify = {
|
||||
enable = true;
|
||||
enabledExtensions = with spicePkgs.extensions; [
|
||||
|
|
|
|||
27
modules/home/files-force.nix
Normal file
27
modules/home/files-force.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
options,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.types) attrsOf submodule;
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.modules) mkDefault;
|
||||
inherit (lib.attrsets) genAttrs;
|
||||
fileOption = mkOption {
|
||||
type = attrsOf (submodule (
|
||||
_: {
|
||||
config.force = mkDefault config.home.clobberAllFiles;
|
||||
}
|
||||
));
|
||||
};
|
||||
|
||||
in {
|
||||
options = {
|
||||
home = {
|
||||
clobberAllFiles = mkEnableOption "clobbering all files";
|
||||
file = fileOption;
|
||||
};
|
||||
xdg = genAttrs [ "configFile" "cacheFile" "stateFile" "dataFile" ] (_: fileOption);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue