start to remove modules in favour of options
This commit is contained in:
23 files changed
+302
-389
No files matched your search
@@ -1,39 +0,0 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.nixosModules.noctalia = { pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
inputs.noctalia.packages.${system}.default
|
||||
];
|
||||
|
||||
programs.noctalia.enable = true;
|
||||
};
|
||||
|
||||
flake.homeModules.noctalia = { lib, pkgs, osConfig, ... }: {
|
||||
home.activation = {
|
||||
symlinkNoctaliaState = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
#!/bin/bash
|
||||
if [ -f /home/grey/.local/state/noctalia/settings.toml ]; then
|
||||
rm /home/grey/.local/state/noctalia/settings.toml
|
||||
fi
|
||||
ln -s ${osConfig.info.rootPath}/dotfiles/${osConfig.networking.hostName}/noctalia/settings.toml /home/grey/.local/state/noctalia/settings.toml
|
||||
|
||||
if [ -d /home/grey/.local/state/noctalia/plugins ]; then
|
||||
rm -rf /home/grey/.local/state/noctalia/plugins
|
||||
fi
|
||||
ln -s ${osConfig.info.rootPath}/dotfiles/${osConfig.networking.hostName}/noctalia/plugins /home/grey/.local/state/noctalia/plugins
|
||||
'';
|
||||
|
||||
copyNoctaliaConfig = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
#!/bin/bash
|
||||
if [ -f /home/grey/.config/noctalia/settings.toml ]; then
|
||||
rm /home/grey/.config/noctalia/settings.toml
|
||||
fi
|
||||
cp ${osConfig.info.rootPath}/dotfiles/${osConfig.networking.hostName}/noctalia/settings.toml /home/grey/.config/noctalia/settings.toml
|
||||
|
||||
if [ -d /home/grey/.config/noctalia/plugins ]; then
|
||||
rm -rf /home/grey/.config/noctalia/plugins
|
||||
fi
|
||||
cp -r ${osConfig.info.rootPath}/dotfiles/${osConfig.networking.hostName}/noctalia/plugins /home/grey/.config/noctalia/plugins
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user