Add some structure files

Add initial files nixos.py and home-manager.py
This commit is contained in:
Evie Litherland-Smith 2024-05-26 11:00:14 +01:00
parent c477ec58a9
commit 2ff588b1e5
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,15 @@
"""
Control upgrading home-manager configuration
"""
import subprocess
def home_manager_switch() -> None:
"""
Switch home-manager to new version
:returns: None
"""
subprocess.Popen("which -a home-manager".split())
return

View file

@ -0,0 +1,15 @@
"""
Control upgrading NixOS configuration
"""
import subprocess
def nixos_switch() -> None:
"""
Switch NixOS system to new version
:returns: None
"""
subprocess.Popen("which -a nixos-rebuild".split())
return