configure sway

This commit is contained in:
Astreaprtcl 2025-12-19 01:54:22 +01:00
parent 61ecbd9721
commit f9138672e8
17 changed files with 322 additions and 25 deletions

View file

@ -2,11 +2,15 @@
{
imports = [
./boot.nix
./default.nix
./git.nix
./greetd.nix
./home-manager.nix
./lix.nix
./nix.nix
./polkit.nix
./qemuGuest.nix
./security.nix
];
}

15
programs/boot.nix Normal file
View file

@ -0,0 +1,15 @@
{ pkgs, ... }:
{
boot = {
kernelPackages = pkgs.linuxPackages_latest;
loader = {
timeout = 3;
efi.canTouchEfiVariables = true;
limine = {
enable = true;
style.wallpapers = [];
};
};
};
}

View file

@ -1,5 +1,8 @@
{ ... }:
{ pkgs, ... }:
{
programs.git.enable = true;
environment.systemPackages = with pkgs; [
openssh
git
];
}

View file

@ -1,5 +1,8 @@
{ home-manager, ... }:
{
home-manager.backupFileExtension = "backup";
home-manager = {
backupFileExtension = "backup";
useUserPackages = true;
};
}

8
programs/nix.nix Normal file
View file

@ -0,0 +1,8 @@
{ ... }:
{
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
}

17
programs/qemuGuest.nix Normal file
View file

@ -0,0 +1,17 @@
{ config, lib, ... }:
let
inherit (lib) mkEnableOption;
cfg = config.modules.vmGuest;
in
{
options.modules.vmGuest.enable = mkEnableOption "Enable VM Guest addons";
config = {
services = {
qemuGuest.enable = cfg.enable;
spice-vdagentd.enable = cfg.enable;
};
};
}

8
programs/security.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs, ... }:
{
security = {
sudo.enable = false;
sudo-rs.enable = true;
};
}