summaryrefslogtreecommitdiff
path: root/hosts/thinkpad/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/thinkpad/configuration.nix')
-rw-r--r--hosts/thinkpad/configuration.nix63
1 files changed, 63 insertions, 0 deletions
diff --git a/hosts/thinkpad/configuration.nix b/hosts/thinkpad/configuration.nix
new file mode 100644
index 0000000..69134eb
--- /dev/null
+++ b/hosts/thinkpad/configuration.nix
@@ -0,0 +1,63 @@
+{ inputs, username, ... }:
+{
+ system.stateVersion = "25.05";
+
+ imports = [
+ inputs.disko.nixosModules.disko
+ ./disko.nix
+
+ ./hardware-configuration.nix
+ ../../os/default.nix
+ ];
+
+ os = {
+ core = {
+ allowUnfree.enable = true;
+
+ audio.enable = true;
+ bootloader = "systemd-boot";
+ drivers.enable = true;
+ fonts.enable = true;
+ greet.enable = true;
+ home-manager = {
+ enable = true;
+ users.${username}.path = ./home.nix;
+ };
+ locale.enable = true;
+ memory = {
+ zram = {
+ enable = true;
+ percent = 25;
+ };
+ swapfile = {
+ enable = true;
+ size = 8;
+ };
+ };
+ network.enable = true;
+ power.enable = true;
+ security.enable = true;
+ ssh.enable = true;
+ storage.enable = true;
+ users.enable = true;
+ };
+ srv = {
+ bluetooth.enable = true;
+ files = {
+ thunar.enable = true;
+ utils.enable = true;
+ };
+ # gaming = {
+ # enable = true;
+ # steam.enable = true;
+ # vr.enable = true;
+ # };
+ # kvm.enable = true;
+ nix-helper.enable = true;
+ };
+ wm = {
+ enable = true;
+ niri.enable = true;
+ };
+ };
+}