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