diff --git a/.gitignore b/.gitignore index 959d2eb..2b00143 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,3 @@ *.swp result result-* -hardware-configuration.nix diff --git a/README b/README new file mode 100644 index 0000000..2ee8238 --- /dev/null +++ b/README @@ -0,0 +1,3 @@ +`chitin' is asnev's simple, flake-enabled NixOS configuration. + +See `flake.nix' for general information & licensing. diff --git a/configuration.nix b/configuration.nix index c1782c3..a2950b9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,7 +1,9 @@ -### configuration.nix --- common NixOS configuration module ### +## configuration.nix --- common NixOS configuration module ## -# Help is available in the configuration.nix(5) man page, on -# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). +/* + Help is available in the configuration.nix(5) man page, on + https://search.nixos.org/options and in the NixOS manual (`nixos-help'). +*/ { inputs, pkgs, ... }: @@ -33,8 +35,8 @@ nixpkgs = { config.allowUnfree = true; - # `pkgs.unstable.` overlay overlays = [ + # `pkgs.unstable.' overlay (final: prev: { unstable = import inputs.unstable { inherit (final) config; @@ -231,12 +233,12 @@ }; direnv = { - enable = true; + enable = true; nix-direnv.enable = true; }; - + obs-studio = { - enable = true; + enable = true; enableVirtualCamera = true; }; }; diff --git a/flake.nix b/flake.nix index 8e2075d..1b9e7ad 100644 --- a/flake.nix +++ b/flake.nix @@ -1,12 +1,37 @@ -### flake.nix --- Nix flake entry file ### +## flake.nix --- Nix flake entry file ## /* - MIT Licence Notice --- Copyright 2026 asnev + chitin is asnev's simple configuration for a flake-enabled NixOS setup. + + this configuration source code is distributed under the MIT Licence, a copy + of which is included at the end of this flake file. +*/ + +{ + description = "chitin"; + + inputs = { + nixpkgs.url = "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst"; + unstable.url = "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1125912.93a9ed0a8660/nixexprs.tar.zst"; # last updated: 2026-11-23 07:54 UTC + }; + + outputs = { nixpkgs, ... } @ inputs: { + nixosConfigurations."phostron" = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs; }; + modules = [ ./phostron.nix ]; + }; + }; +} + +/* + Copyright (c) 2026 asnev + + MIT Licence Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + to use, copy, modify, merge, publish, distribute, sublicence, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: @@ -22,17 +47,4 @@ SOFTWARE. */ -{ - inputs = { - nixpkgs.url = "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst"; - unstable.url = "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1125912.93a9ed0a8660/nixexprs.tar.zst"; # last updated: 2026-11-23 07:54 UTC - }; - - outputs = { self, nixpkgs, unstable, ... } @ inputs: { - nixosConfigurations."phostron" = nixpkgs.lib.nixosSystem { - specialArgs = { inherit inputs; }; - modules = [ ./phostron.nix ]; - }; - }; -} # end of flake.nix file diff --git a/hardware-configuration.nix b/hardware-configuration.nix new file mode 120000 index 0000000..4dde6be --- /dev/null +++ b/hardware-configuration.nix @@ -0,0 +1 @@ +/etc/nixos/hardware-configuration.nix \ No newline at end of file diff --git a/phostron.nix b/phostron.nix index e4cf758..efc2064 100644 --- a/phostron.nix +++ b/phostron.nix @@ -1,4 +1,4 @@ -### phostron.nix --- Configuration module for `phostron` ### +## phostron.nix --- Configuration module for `phostron' ## { pkgs, ... }: @@ -20,10 +20,11 @@ fstrim.enable = true; }; - # Display manager ----- + # ----- Display manager ----- # services.displayManager.sddm.enable = true; - # Desktop manager ----- + # ----- Desktop manager ----- # + # KDE Plasma ----- services.desktopManager.plasma6.enable = true; environment.plasma6.excludePackages = [ pkgs.kdePackages.discover ]; environment.systemPackages = with pkgs.kdePackages; [ @@ -31,6 +32,14 @@ kclock ]; + # i3 ----- + services.xserver.windowManager.i3.enable = true; + services.xserver.windowManager.i3 = { + package = pkgs.unstable.i3; + extraPackages = with pkgs.unstable; [ dmenu i3status ]; + }; + programs.i3lock.enable = true; + # ----- DO NOT TOUCH ----- # system.stateVersion = "26.05";