Prepare config for flake usage
This commit is contained in:
parent
f6ac5c862a
commit
f9d537522d
3 changed files with 3 additions and 28 deletions
|
@ -1,25 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
let
|
|
||||||
host = "generic";
|
|
||||||
stateVersion = "25.05";
|
|
||||||
|
|
||||||
repo = builtins.fetchGit {
|
|
||||||
url = "https://forgejo.sinerva.eu/VSinerva/nixos-conf.git";
|
|
||||||
name = "nixos-conf-forgejo";
|
|
||||||
ref = "main";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./hardware-configuration.nix
|
|
||||||
"${repo}/hosts/${host}.nix"
|
|
||||||
];
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
|
||||||
# settings for stateful data, like file locations and database versions
|
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
||||||
# this value at the release version of the first install of this system.
|
|
||||||
# Before changing this value read the documentation for this option
|
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
||||||
system.stateVersion = stateVersion; # Did you read the comment?
|
|
||||||
}
|
|
|
@ -46,9 +46,9 @@
|
||||||
ZSH_TMUX_CONFIG=/etc/tmux.conf
|
ZSH_TMUX_CONFIG=/etc/tmux.conf
|
||||||
'';
|
'';
|
||||||
promptInit = ''
|
promptInit = ''
|
||||||
if [ -n "$IN_NIX_SHELL" ]; then
|
if [ "$SHLVL" "!= 1" ]; then
|
||||||
setopt PROMPT_SUBST
|
setopt PROMPT_SUBST
|
||||||
RPROMPT+='[nix]'
|
RPROMPT+='[depth-$\{SHLVL\}]'
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -131,6 +131,7 @@
|
||||||
######################################## Housekeeping ###########################################
|
######################################## Housekeeping ###########################################
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
flake = "git+https://gitea.sinerva.eu/VSinerva/nixos-conf.git?ref=main&shallow=1";
|
||||||
dates = "04:00";
|
dates = "04:00";
|
||||||
randomizedDelaySec = "30min";
|
randomizedDelaySec = "30min";
|
||||||
allowReboot = true;
|
allowReboot = true;
|
||||||
|
@ -147,7 +148,6 @@
|
||||||
"flakes"
|
"flakes"
|
||||||
];
|
];
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
tarball-ttl = 0;
|
|
||||||
};
|
};
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue