summaryrefslogtreecommitdiff
path: root/hosts/desktop/configuration.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2025-12-20 15:25:38 +0100
committeradikro <adikro@disroot.org>2025-12-20 15:25:38 +0100
commitc1d9af57156f3c95590d9a12c394ee064df9696e (patch)
tree7e515761590c510c30329ef8548c7d84a8e95aaa /hosts/desktop/configuration.nix
parent791bc419b6dac7c70951981ef6b34cdf85828470 (diff)
added disko config for laptop, added storage and memory modules
Diffstat (limited to 'hosts/desktop/configuration.nix')
-rw-r--r--hosts/desktop/configuration.nix40
1 files changed, 16 insertions, 24 deletions
diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix
index 4dbf3bb..21fe566 100644
--- a/hosts/desktop/configuration.nix
+++ b/hosts/desktop/configuration.nix
@@ -1,14 +1,18 @@
-{ pkgs, ... }:
+{ username, ... }:
{
- nixpkgs.config.allowUnfree = true;
+ system.stateVersion = "25.05";
imports = [
./hardware-configuration.nix
../../sys/default.nix
];
- szpont.sys = {
+ sys = {
core = {
+ allowUnfree.enable = true;
+ flatpak.enable = true;
+ hardwareTools.enable = true;
+
audio.enable = true;
bootloader = "systemd-boot";
drivers = {
@@ -20,11 +24,19 @@
greet.enable = true;
home-manager = {
enable = true;
- users.adam.path = ./home.nix;
+ users.${username}.path = ./home.nix;
};
locale.enable = true;
network.enable = true;
+ memory = {
+ zram.enable = true;
+ zram.percent = 25;
+ swapfile.enable = true;
+ swapfile.size = 32;
+ };
security.enable = true;
+ storage.enable = true;
+ users.enable = true;
};
srv = {
files = {
@@ -44,24 +56,4 @@
niri.enable = true;
};
};
-
- programs.kdeconnect.enable = true;
-
- services.flatpak.enable = true;
-
- programs.fish.enable = true;
-
- users.users.adam = {
- isNormalUser = true;
- extraGroups = [ "wheel" ];
- home = "/home/adam";
- shell = pkgs.fish;
- };
-
- environment.systemPackages = with pkgs; [
- nautilus
- rivalcfg
- ];
-
- system.stateVersion = "25.05";
}