dregil: Update config

This commit is contained in:
Alexander Kobjolke 2025-03-14 23:08:00 +01:00
parent dc3725a83d
commit a9da0426fb
9 changed files with 86 additions and 26 deletions

View file

@ -132,7 +132,7 @@
nixOnDroidConfigurations.default =
with inputs;
nix-on-droid.lib.nixOnDroidConfiguration {
pkgs = import nixpkgs-droid {};
pkgs = import nixpkgs-droid { };
modules = [
./hosts/redmi
{ nix.registry.nixpkgs.flake = nixpkgs-droid; }
@ -145,29 +145,12 @@
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
pkgs.haskellPackages.shellFor {
pkgs.mkShell {
inherit (self.checks.${system}.pre-commit-check) shellHook;
packages = p: [
p.xmonad
p.xmonad-contrib
];
withHoogle = true;
buildInputs = with pkgs; [
haskellPackages.haskell-language-server
haskellPackages.fourmolu
haskellPackages.hspec-discover
haskellPackages.doctest
haskellPackages.xmonad
haskellPackages.xmonad-contrib
cabal-install
ghcid
packages = with pkgs; [
nixfmt-rfc-style
nil
hpack
hlint
];
};
};

View file

@ -10,6 +10,7 @@
./cli.nix
./programs/rofi
./programs/xmonad
#./programs/i3
./programs/jitsi-meet
./programs/simplex-chat
./programs/zathura
@ -17,7 +18,7 @@
./services/polybar
./services/dunst
./services/udiskie
./services/picom
# ./services/picom
./services/screen-locker
./services/blueman-applet
./services/network-manager
@ -49,9 +50,10 @@
uhk-agent # my keyboard
mosh # ssh via udp
rclone
parallel-disk-usage
gdu
# gaming support
lutris
stable.bottles
wine64Packages.stagingFull
scummvm
@ -67,7 +69,6 @@
programs = {
alacritty.enable = true;
# autorandr.enable = true;
browserpass = {
enable = true;
@ -111,7 +112,5 @@
'';
};
# services.autorandr = { enable = true; };
xsession.enable = true;
}

View file

@ -74,6 +74,8 @@
(setq! undo-limit 80000000 ; Raise undo-limit to 80Mb
auto-save-default t ; Nobody likes to loose work, I certainly don't
switch-to-buffer-in-dedicated-window 'pop
switch-to-buffer-obey-display-actions t
)
;; tweak some VI defaults

View file

@ -0,0 +1,15 @@
{
config,
lib,
pkgs,
...
}:
{
config.xsession.windowManager.i3 = {
enable = true;
config = {
modifier = "Mod4";
};
};
}

View file

@ -7,7 +7,7 @@
{
config.services.screen-locker = {
enable = true;
enable = false;
inactiveInterval = 30;
lockCmd = "${pkgs.i3lock}/bin/i3lock -n -c 000000";
xautolock.extraOptions = [ "-detectsleep" ];

View file

@ -29,5 +29,6 @@
../../modules/hyprland
../../modules/podman
../../modules/tailscale
../../modules/flatpak.nix
];
}

18
modules/flatpak.nix Normal file
View file

@ -0,0 +1,18 @@
{
config,
lib,
pkgs,
...
}:
{
services.flatpak.enable = true;
systemd.services.flatpak-repo = {
wantedBy = [ "multi-user.target" ];
path = [ pkgs.flatpak ];
script = ''
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
'';
};
}

18
modules/wm/greetd.nix Normal file
View file

@ -0,0 +1,18 @@
{
config,
lib,
pkgs,
...
}:
{
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway";
user = "greeter";
};
};
};
}

24
modules/wm/sway.nix Normal file
View file

@ -0,0 +1,24 @@
{
config,
pkgs,
lib,
...
}:
{
environment.systemPackages = with pkgs; [
grim # screenshot functionality
slurp # screenshot functionality
wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout
mako # notification system developed by swaywm maintainer
];
# Enable the gnome-keyring secrets vault.
# Will be exposed through DBus to programs willing to store secrets.
services.gnome.gnome-keyring.enable = true;
# enable Sway window manager
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
}