added README and symlinked hardware-configuration.nix
This commit is contained in:
parent
d26b64ef18
commit
c35b0dd9c0
6 changed files with 53 additions and 27 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,4 +2,3 @@
|
||||||
*.swp
|
*.swp
|
||||||
result
|
result
|
||||||
result-*
|
result-*
|
||||||
hardware-configuration.nix
|
|
||||||
|
|
|
||||||
3
README
Normal file
3
README
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
`chitin' is asnev's simple, flake-enabled NixOS configuration.
|
||||||
|
|
||||||
|
See `flake.nix' for general information & licensing.
|
||||||
|
|
@ -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, ... }:
|
{ inputs, pkgs, ... }:
|
||||||
|
|
||||||
|
|
@ -33,8 +35,8 @@
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
|
||||||
# `pkgs.unstable.<name>` overlay
|
|
||||||
overlays = [
|
overlays = [
|
||||||
|
# `pkgs.unstable.<name>' overlay
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
unstable = import inputs.unstable {
|
unstable = import inputs.unstable {
|
||||||
inherit (final) config;
|
inherit (final) config;
|
||||||
|
|
@ -231,12 +233,12 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
direnv = {
|
direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nix-direnv.enable = true;
|
nix-direnv.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
obs-studio = {
|
obs-studio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableVirtualCamera = true;
|
enableVirtualCamera = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
44
flake.nix
44
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
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the “Software”), to deal
|
of this software and associated documentation files (the “Software”), to deal
|
||||||
in the Software without restriction, including without limitation the rights
|
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
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
furnished to do so, subject to the following conditions:
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
|
@ -22,17 +47,4 @@
|
||||||
SOFTWARE.
|
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
|
# end of flake.nix file
|
||||||
|
|
|
||||||
1
hardware-configuration.nix
Symbolic link
1
hardware-configuration.nix
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
/etc/nixos/hardware-configuration.nix
|
||||||
15
phostron.nix
15
phostron.nix
|
|
@ -1,4 +1,4 @@
|
||||||
### phostron.nix --- Configuration module for `phostron` ###
|
## phostron.nix --- Configuration module for `phostron' ##
|
||||||
|
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
|
@ -20,10 +20,11 @@
|
||||||
fstrim.enable = true;
|
fstrim.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Display manager -----
|
# ----- Display manager ----- #
|
||||||
services.displayManager.sddm.enable = true;
|
services.displayManager.sddm.enable = true;
|
||||||
|
|
||||||
# Desktop manager -----
|
# ----- Desktop manager ----- #
|
||||||
|
# KDE Plasma -----
|
||||||
services.desktopManager.plasma6.enable = true;
|
services.desktopManager.plasma6.enable = true;
|
||||||
environment.plasma6.excludePackages = [ pkgs.kdePackages.discover ];
|
environment.plasma6.excludePackages = [ pkgs.kdePackages.discover ];
|
||||||
environment.systemPackages = with pkgs.kdePackages; [
|
environment.systemPackages = with pkgs.kdePackages; [
|
||||||
|
|
@ -31,6 +32,14 @@
|
||||||
kclock
|
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 ----- #
|
# ----- DO NOT TOUCH ----- #
|
||||||
system.stateVersion = "26.05";
|
system.stateVersion = "26.05";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue