mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-18 13:12:10 -08:00
48 lines
1.4 KiB
Nix
Executable file
48 lines
1.4 KiB
Nix
Executable file
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
./var/easyeffects
|
|
./programs
|
|
./spicetify
|
|
./desktop-environment
|
|
./theming
|
|
./platform-tweaks
|
|
];
|
|
|
|
programs.fish.functions = lib.mkIf config.liminalOS.programs.enable {
|
|
# rebuild = ''doas nixos-rebuild --flake ~/.config/liminalOS\#${osConfig.networking.hostName} switch &| nom'';
|
|
# os-test = ''doas nixos-rebuild --flake ~/.config/liminalOS\#${osConfig.networking.hostName} test &| nom'';
|
|
# nixos-update = ''
|
|
# cd ~/.config/liminalOS
|
|
# nix flake update --commit-lock-file
|
|
# doas nixos-rebuild --flake ~/.config/liminalOS\#${osConfig.networking.hostName} switch &| nom
|
|
# '';
|
|
nh = {
|
|
# wrapper for nh as it doesn't work with `doas`
|
|
body = ''
|
|
if count $argv > /dev/null
|
|
set subcommand (string join " " $argv)
|
|
if contains -- $subcommand "os switch" "os test" "os boot" "clean all"
|
|
doas ${pkgs.nh}/bin/nh $argv -R
|
|
else
|
|
${pkgs.nh}/bin/nh $argv
|
|
end
|
|
else
|
|
${pkgs.nh}/bin/nh
|
|
end
|
|
'';
|
|
};
|
|
spt = "${pkgs.spotify-player}/bin/spotify_player";
|
|
};
|
|
|
|
home.file = lib.mkIf config.liminalOS.programs.enable {
|
|
".config/vesktop/settings.json".source = config.lib.file.mkOutOfStoreSymlink ./var/settings.json;
|
|
};
|
|
|
|
services.gnome-keyring.enable = true;
|
|
}
|