📦 Created config files with common code

- Created common.nix for various configs
- Created theme.nix for theme related configs
- Moved some code to more logical files
- Moved some standalone files into nix multiline strings, in order to
  inject data
This commit is contained in:
2025-01-07 20:18:30 +01:00
parent e223999ae1
commit 1133e01eff
31 changed files with 650 additions and 675 deletions

View File

@ -1,26 +1,26 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{
pkgs,
outputs,
...
}:
let
common = import ./common.nix;
in
{
imports = [ ./modules ];
nixpkgs.overlays = [ outputs.overlays.unstable-packages ];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# Define a user account. Don't forget to set a password with passwd.
users.users.martin = {
users.users.${common.username} = {
isNormalUser = true;
description = "martin";
description = common.username;
extraGroups = [
"networkmanager"
"wheel"
@ -42,9 +42,6 @@
xdg-utils
xdg-desktop-portal
xdg-desktop-portal-gtk
kdePackages.qtwayland
kdePackages.qtsvg
kdePackages.qt6ct
protonmail-desktop
stremio
fastfetch
@ -63,31 +60,12 @@
"flakes"
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
programs = {
kdeconnect.enable = true;
};
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
programs.kdeconnect.enable = true;
services = {
flatpak.enable = true;
xserver.enable = true;
};
qt.enable = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.11"; # Did you read the comment?
system.stateVersion = common.system.version;
}