.
This commit is contained in:
parent
cb19bffc0a
commit
029a324787
3 changed files with 73 additions and 62 deletions
|
@ -2,11 +2,17 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running `nixos-help`).
|
# and in the NixOS manual (accessible by running `nixos-help`).
|
||||||
|
|
||||||
{ config, inputs, pkgs, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[ # Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
# NOTE: Required bevuta config is part of this file here, and not bevuta specific.
|
# NOTE: Required bevuta config is part of this file here, and not bevuta specific.
|
||||||
# ./bevuta-config/bevuta.nix
|
# ./bevuta-config/bevuta.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
@ -87,7 +93,6 @@
|
||||||
|
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
|
@ -150,7 +155,12 @@
|
||||||
|
|
||||||
users.users.zilti = {
|
users.users.zilti = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "libvirtd" "kvm" "qemu" ];
|
extraGroups = [
|
||||||
|
"wheel"
|
||||||
|
"libvirtd"
|
||||||
|
"kvm"
|
||||||
|
"qemu"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.fprintd = {
|
services.fprintd = {
|
||||||
|
@ -182,22 +192,23 @@
|
||||||
libvirtd = {
|
libvirtd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
qemu = {
|
qemu = {
|
||||||
package = pkgs.qemu_kvm;
|
package = pkgs.qemu_full;
|
||||||
runAsRoot = true;
|
runAsRoot = true;
|
||||||
swtpm.enable = true;
|
swtpm.enable = true;
|
||||||
vhostUserPackages = [ pkgs.virtiofsd ];
|
vhostUserPackages = [ pkgs.virtiofsd ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# podman = {
|
|
||||||
# enable = true;
|
# podman = {
|
||||||
# dockerCompat = true;
|
# enable = true;
|
||||||
# defaultNetwork.settings.dns_enabled = true;
|
# dockerCompat = true;
|
||||||
# };
|
# defaultNetwork.settings.dns_enabled = true;
|
||||||
# containers.storage.settings = {
|
# };
|
||||||
# storage = {
|
# containers.storage.settings = {
|
||||||
# driver = "btrfs";
|
# storage = {
|
||||||
# };
|
# driver = "btrfs";
|
||||||
# };
|
# };
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
|
@ -236,19 +247,25 @@
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPortRanges = [
|
allowedTCPPortRanges = [
|
||||||
{ from = 1714; to = 1764; }
|
{
|
||||||
|
from = 1714;
|
||||||
|
to = 1764;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
allowedUDPPortRanges = [
|
allowedUDPPortRanges = [
|
||||||
{ from = 1714; to = 1764; }
|
{
|
||||||
|
from = 1714;
|
||||||
|
to = 1764;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# networking.extraHosts = ''
|
# networking.extraHosts = ''
|
||||||
# 127.0.0.1 l.redsky.io
|
# 127.0.0.1 l.redsky.io
|
||||||
# ::1 l.redsky.io
|
# ::1 l.redsky.io
|
||||||
# '';
|
# '';
|
||||||
|
|
||||||
# security.pam.services.swaylock = {};
|
# security.pam.services.swaylock = {};
|
||||||
|
|
||||||
services.btrfs = {
|
services.btrfs = {
|
||||||
autoScrub = {
|
autoScrub = {
|
||||||
|
@ -287,4 +304,3 @@
|
||||||
# the idiocy of all the people who keep recommending it online.
|
# the idiocy of all the people who keep recommending it online.
|
||||||
nix.settings.experimental-features = "nix-command flakes";
|
nix.settings.experimental-features = "nix-command flakes";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,11 +25,6 @@
|
||||||
};
|
};
|
||||||
# flatpaks.url = "github:GermanBread/declarative-flatpak/stable-v3";
|
# flatpaks.url = "github:GermanBread/declarative-flatpak/stable-v3";
|
||||||
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.4.1";
|
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.4.1";
|
||||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1&ref=refs/tags/v0.43.0";
|
|
||||||
hyprsplit = {
|
|
||||||
url = "github:shezdy/hyprsplit";
|
|
||||||
inputs.hyprland.follows = "hyprland";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, home-manager, nix-flatpak, ... }: {
|
outputs = inputs@{ nixpkgs, home-manager, nix-flatpak, ... }: {
|
||||||
|
|
|
@ -17,8 +17,8 @@ args@{ config, lib, inputs, pkgs, wayland, ... }:
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
plugins = [
|
plugins = with pkgs.hyprlandPlugins; [
|
||||||
inputs.hyprsplit.packages.${pkgs.stdenv.hostPlatform.system}.hyprsplit
|
hyprsplit
|
||||||
];
|
];
|
||||||
settings = {
|
settings = {
|
||||||
source =
|
source =
|
||||||
|
@ -175,7 +175,7 @@ args@{ config, lib, inputs, pkgs, wayland, ... }:
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"[workspace special] ${pkgs.kitty}/bin/kitty"
|
"[workspace special] ${pkgs.kitty}/bin/kitty"
|
||||||
# "sleep 1; hyprctl dispatch layoutmsg orientationleft; hyprctl dispatch togglespecialworkspace"
|
# "sleep 1; hyprctl dispatch layoutmsg orientationleft; hyprctl dispatch togglespecialworkspace"
|
||||||
"blueman-applet &"
|
"sleep 5 && blueman-applet &"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue