mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
users/foo-dogsquared: replace dotfile flake input with modules/mutable-files
This commit is contained in:
parent
2f4eb20a64
commit
6496fa363d
17
flake.lock
generated
17
flake.lock
generated
@ -77,22 +77,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dotfiles": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1668655246,
|
|
||||||
"narHash": "sha256-V7Js99Pyg0UvP6RNg3Isv3MgCKZO9cqVxiiVa9ZZiFU=",
|
|
||||||
"owner": "foo-dogsquared",
|
|
||||||
"repo": "dotfiles",
|
|
||||||
"rev": "5862afecaf045175891550c1020c09cd2dbb32ed",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "foo-dogsquared",
|
|
||||||
"repo": "dotfiles",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dream2nix": {
|
"dream2nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"alejandra": [
|
"alejandra": [
|
||||||
@ -665,7 +649,6 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"deploy": "deploy",
|
"deploy": "deploy",
|
||||||
"devshell": "devshell",
|
"devshell": "devshell",
|
||||||
"dotfiles": "dotfiles",
|
|
||||||
"emacs-overlay": "emacs-overlay",
|
"emacs-overlay": "emacs-overlay",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"guix-overlay": "guix-overlay",
|
"guix-overlay": "guix-overlay",
|
||||||
|
@ -18,10 +18,6 @@
|
|||||||
# We're using these libraries for other functions.
|
# We're using these libraries for other functions.
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
# My personal dotfiles.
|
|
||||||
dotfiles.url = "github:foo-dogsquared/dotfiles";
|
|
||||||
dotfiles.flake = false;
|
|
||||||
|
|
||||||
# Managing home configurations.
|
# Managing home configurations.
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
home-manager.url = "github:nix-community/home-manager";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@ -109,7 +105,7 @@
|
|||||||
// import ./lib/private.nix { lib = final; });
|
// import ./lib/private.nix { lib = final; });
|
||||||
|
|
||||||
extraArgs = {
|
extraArgs = {
|
||||||
inherit (inputs) nix-colors dotfiles;
|
inherit (inputs) nix-colors;
|
||||||
inherit inputs self;
|
inherit inputs self;
|
||||||
|
|
||||||
# This is a variable that is used to check whether the module is
|
# This is a variable that is used to check whether the module is
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ dotfiles, config, options, lib, pkgs, ... }:
|
{ config, options, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
yt-dlp-for-audio-config = pkgs.writeText "yt-dlp-for-audio-config" ''
|
yt-dlp-for-audio-config = pkgs.writeText "yt-dlp-for-audio-config" ''
|
||||||
@ -20,7 +20,7 @@ let
|
|||||||
yt-dlp-for-audio = pkgs.writeScriptBin "yt-dlp-audio" ''
|
yt-dlp-for-audio = pkgs.writeScriptBin "yt-dlp-audio" ''
|
||||||
${pkgs.yt-dlp}/bin/yt-dlp --config-location "${yt-dlp-for-audio-config}" $@
|
${pkgs.yt-dlp}/bin/yt-dlp --config-location "${yt-dlp-for-audio-config}" $@
|
||||||
'';
|
'';
|
||||||
getDotfiles = path: "${dotfiles}/${path}";
|
getDotfiles = path: config.lib.file.mkOutOfStoreSymlink "${config.home.mutableFile."library/dotfiles".path}/${path}";
|
||||||
|
|
||||||
musicDir = config.xdg.userDirs.music;
|
musicDir = config.xdg.userDirs.music;
|
||||||
playlistsDir = "${musicDir}/playlists";
|
playlistsDir = "${musicDir}/playlists";
|
||||||
@ -340,4 +340,11 @@ in
|
|||||||
"nvim".source = getDotfiles "nvim";
|
"nvim".source = getDotfiles "nvim";
|
||||||
"wezterm".source = getDotfiles "wezterm";
|
"wezterm".source = getDotfiles "wezterm";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.mutableFile = {
|
||||||
|
"library/dotfiles" = {
|
||||||
|
url = "https://github.com/foo-dogsquared/dotfiles.git";
|
||||||
|
type = "git";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user