From 8f61d3d11fba8ff074c1954b35918aaf2ca892d9 Mon Sep 17 00:00:00 2001 From: shibazaki Date: Tue, 21 Jan 2025 16:07:05 +0100 Subject: [PATCH] welcome nine! --- flake.nix | 24 ++++++++++++++++++++---- users/nine/configuration.nix | 28 ++++++++++++++++++++++++++++ users/nine/home.nix | 25 +++++++++++++++++++++++++ 3 files changed, 73 insertions(+), 4 deletions(-) create mode 100644 users/nine/configuration.nix create mode 100644 users/nine/home.nix diff --git a/flake.nix b/flake.nix index df6ae28..41710d0 100644 --- a/flake.nix +++ b/flake.nix @@ -21,7 +21,12 @@ }; }; - outputs = { self, nixpkgs, home-manager, ... } @ inputs: let + outputs = { + self, + nixpkgs, + home-manager, + ... + } @ inputs: let system = "x86_64-linux"; pkgs = import nixpkgs { @@ -30,8 +35,7 @@ allowUnfree = true; }; }; - in - { + in { nixosConfigurations = { shibazaki = nixpkgs.lib.nixosSystem { system = system; @@ -59,7 +63,19 @@ inputs.stylix.nixosModules.stylix ]; }; + nine = nixpkgs.lib.nixosSystem { + system = system; + specialArgs = { + inherit inputs pkgs; + userSettings = { + username = "nine"; + }; + }; + modules = [ + ./users/nine/configuration.nix + inputs.stylix.nixosModules.stylix + ]; + }; }; }; } - diff --git a/users/nine/configuration.nix b/users/nine/configuration.nix new file mode 100644 index 0000000..c1e3bf1 --- /dev/null +++ b/users/nine/configuration.nix @@ -0,0 +1,28 @@ +{ + inputs, + pkgs, + lib, + ... +}: { + imports = [ + ./hardware-configuration.nix + ./../../nixos/system/home-manager.nix + ./../../nixos/system/user-configuration.nix + ./../../nixos/system/desktop-environment.nix + ./../../nixos/system/audio.nix + ./../../nixos/system/fonts.nix + ./../../nixos/system/input-devices.nix + ./../../nixos/system/networking.nix + ./../../nixos/system/bluetooth.nix + ./../../nixos/system/display-manager.nix + ./../../nixos/system/security-and-privacy.nix + ./../../nixos/system/stylix.nix + ./../../nixos/system/system-settings.nix + ./../../nixos/system/neovim.nix + ./../../nixos/system/libgcc.nix + ]; + + # Global configuration + nix.settings.experimental-features = ["nix-command" "flakes"]; + system.stateVersion = "24.11"; # Did you read the comment? +} diff --git a/users/nine/home.nix b/users/nine/home.nix new file mode 100644 index 0000000..d9054ff --- /dev/null +++ b/users/nine/home.nix @@ -0,0 +1,25 @@ +{ + pkgs, + lib, + ... +}: { + home.username = "nine"; + home.homeDirectory = "/home/nine"; + + imports = [ + ./../../nixos/home/imports/hyprland.nix + ./../../nixos/home/imports/starship.nix + ./../../nixos/home/modules/shell.nix + ./../../nixos/home/modules/git.nix + ./../../nixos/home/modules/editors.nix + ./../../nixos/home/modules/terminal.nix + ./../../nixos/home/modules/media.nix + ./../../nixos/home/modules/development.nix + ./../../nixos/home/modules/games.nix + ./../../nixos/home/modules/utilities.nix + ./../../nixos/home/modules/environment.nix + ./../../nixos/home/modules/session-variables.nix + ]; + + home.stateVersion = "24.11"; # Please read the comment before changing. +}