fix: small tweaks
This commit is contained in:
@@ -11,4 +11,4 @@
|
||||
- [X] Kitty theming
|
||||
- [ ] Fish theming
|
||||
- [ ] Fastfetch theming
|
||||
- [ ] DMS instead of Hyprlock for locker?
|
||||
- [X] DMS instead of Hyprlock for locker?
|
||||
|
||||
@@ -6,4 +6,5 @@ grub_os_prober = {"desktop": True, "laptop": False}
|
||||
kernel_args_all = {"desktop": "", "laptop": ""}
|
||||
kernel_args_debug_only = {"desktop": "", "laptop": ""}
|
||||
kernel_args_normal_only = {"desktop": "", "laptop": ""}
|
||||
|
||||
user = "janis"
|
||||
|
||||
@@ -9,10 +9,10 @@ if decman.aur:
|
||||
decman.aur.ignored_packages |= {"yay"}
|
||||
|
||||
if decman.pacman:
|
||||
decman.pacman.ignored_packages |= {"yay"}
|
||||
decman.pacman.ignored_packages |= {"yay", "aylurs-gtk-shell"}
|
||||
|
||||
decman.modules += [
|
||||
base.BasePackages(),
|
||||
base.BasePackages("desktop"),
|
||||
pipewire.Pipewire(),
|
||||
dev_tools.DevTools(),
|
||||
games.Games(),
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
from typing import Literal
|
||||
|
||||
import decman
|
||||
from decman.plugins import pacman, aur
|
||||
|
||||
|
||||
class BasePackages(decman.Module):
|
||||
def __init__(self):
|
||||
def __init__(self, platform: Literal["desktop", "laptop"]):
|
||||
"""Base packages that should never be uninstalled"""
|
||||
self._platform: Literal["desktop", "laptop"] = platform
|
||||
super().__init__("base")
|
||||
|
||||
@pacman.packages
|
||||
@@ -54,12 +57,17 @@ class BasePackages(decman.Module):
|
||||
|
||||
def files(self) -> dict[str, decman.File]:
|
||||
# TODO: File substitutions (for PC and laptop)
|
||||
if self._platform == "desktop":
|
||||
return {
|
||||
"/etc/mkinitcpio.conf": decman.File(source_file="./system/mkinitcpio.conf"),
|
||||
"/etc/mkinitcpio.conf": decman.File(
|
||||
source_file="./system/mkinitcpio.conf"
|
||||
),
|
||||
"/etc/pacman.conf": decman.File(source_file="./system/pacman.conf"),
|
||||
"/etc/default/grub": decman.File(source_file="./system/grub"),
|
||||
"/etc/environment": decman.File(source_file="./system/environment"),
|
||||
}
|
||||
else:
|
||||
return {}
|
||||
|
||||
def on_change(self, store):
|
||||
decman.prg(["mkinitcpio", "-P"])
|
||||
|
||||
@@ -13,6 +13,7 @@ class UtilPackages(decman.Module):
|
||||
def pkgs(self) -> set[str]:
|
||||
return {
|
||||
"bashtop",
|
||||
"brightnessctl",
|
||||
"bind",
|
||||
"bluez",
|
||||
"clamav",
|
||||
|
||||
Reference in New Issue
Block a user