started modifing configuration structure
This commit is contained in:
18
system/default.nix
Normal file
18
system/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ ... }: {
|
||||
imports = [
|
||||
./audio
|
||||
./bluetooth
|
||||
./inputMethods
|
||||
./kernel
|
||||
./locale
|
||||
./network
|
||||
./nix
|
||||
./opengl
|
||||
./time
|
||||
./users
|
||||
./services
|
||||
./wm
|
||||
./env.nix
|
||||
./utils.nix
|
||||
];
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ ... }:
|
||||
{
|
||||
environment.variables = {
|
||||
EDITOR = "vim";
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
{ ... }:
|
||||
{
|
||||
services.timesyncd.enable = true;
|
||||
}
|
||||
14
system/locale/default.nix
Normal file
14
system/locale/default.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ systemSettings, ... }: {
|
||||
i18n.defaultLocale = systemSettings.locale;
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = systemSettings.locale;
|
||||
LC_IDENTIFICATION = systemSettings.locale;
|
||||
LC_MEASUREMENT = systemSettings.locale;
|
||||
LC_MONETARY = systemSettings.locale;
|
||||
LC_NAME = systemSettings.locale;
|
||||
LC_NUMERIC = systemSettings.locale;
|
||||
LC_PAPER = systemSettings.locale;
|
||||
LC_TELEPHONE = systemSettings.locale;
|
||||
LC_TIME = systemSettings.locale;
|
||||
};
|
||||
}
|
||||
9
system/network/default.nix
Normal file
9
system/network/default.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ systemSettings, ... }:
|
||||
{
|
||||
networking = {
|
||||
hostName = systemSettings.hostname;
|
||||
networkmanager.enable = true;
|
||||
firewall.enable = true;
|
||||
};
|
||||
systemd.network.wait-online.enable = false;
|
||||
}
|
||||
33
system/nix/default.nix
Normal file
33
system/nix/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ ... }: {
|
||||
nix = {
|
||||
gc.automatic = false;
|
||||
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
builders-use-substitutes = true;
|
||||
allowed-users = ["@wheel"];
|
||||
trusted-users = ["@wheel"];
|
||||
commit-lockfile-summary = "Update flake.lock";
|
||||
accept-flake-config = true;
|
||||
keep-derivations = true;
|
||||
keep-outputs = true;
|
||||
warn-dirty = false;
|
||||
sandbox = true;
|
||||
max-jobs = "auto";
|
||||
log-lines = 30;
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
substituters = [
|
||||
"https://cache.nixos.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
12
system/services/default.nix
Normal file
12
system/services/default.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ ... }: {
|
||||
imports = [
|
||||
./cups
|
||||
./flatpak
|
||||
./libvirtd
|
||||
./podman
|
||||
./polkit
|
||||
./ssh
|
||||
./steam
|
||||
./tailscale
|
||||
];
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
{ ... }:
|
||||
{
|
||||
networking.networkmanager.enable = true;
|
||||
systemd.network.wait-online.enable = false;
|
||||
}
|
||||
6
system/time/default.nix
Normal file
6
system/time/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ systemSettings, ... }:
|
||||
{
|
||||
time.timeZone = systemSettings.timezone;
|
||||
|
||||
services.timesyncd.enable = true;
|
||||
}
|
||||
21
system/users/default.nix
Normal file
21
system/users/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ pkgs, config, userSettings, ... }: {
|
||||
users.users.${userSettings.username} = {
|
||||
isNormalUser = true;
|
||||
description = userSettings.name;
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
"docker"
|
||||
"podman"
|
||||
"input"
|
||||
"flatpak"
|
||||
"dialout"
|
||||
"video"
|
||||
"audio"
|
||||
"libvirtd"
|
||||
];
|
||||
uid = 1000;
|
||||
};
|
||||
|
||||
users.defaultUserShell = pkgs.bash;
|
||||
}
|
||||
11
system/wm/default.nix
Normal file
11
system/wm/default.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ ... }: {
|
||||
imports = [
|
||||
./dbus
|
||||
./fonts
|
||||
./gnome-keyring
|
||||
./plasma
|
||||
./sddm
|
||||
./sway
|
||||
./xmonad
|
||||
];
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./dbus.nix
|
||||
../dbus
|
||||
];
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./fonts.nix
|
||||
./dbus.nix
|
||||
./gnome-keyring.nix
|
||||
./xmonad.nix
|
||||
./sway.nix
|
||||
./plasma.nix
|
||||
../fonts
|
||||
../dbus
|
||||
../gnome-keyring
|
||||
../xmonad
|
||||
../sway
|
||||
../plasma
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
@@ -1,8 +1,8 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
./gnome-keyring.nix
|
||||
./dbus.nix
|
||||
../gnome-keyring
|
||||
../dbus
|
||||
];
|
||||
|
||||
programs.sway = {
|
||||
Reference in New Issue
Block a user