Add some structure files
Add initial files nixos.py and home-manager.py
This commit is contained in:
parent
c477ec58a9
commit
2ff588b1e5
15
src/nix_background_upgrade/home-manager.py
Normal file
15
src/nix_background_upgrade/home-manager.py
Normal 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
|
15
src/nix_background_upgrade/nixos.py
Normal file
15
src/nix_background_upgrade/nixos.py
Normal 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
|
Loading…
Reference in a new issue