2023-06-21 17:41:35 +01:00
|
|
|
{
|
2023-06-21 20:49:28 +01:00
|
|
|
description = "Evie's machine configurations";
|
|
|
|
|
2024-03-02 16:57:02 +00:00
|
|
|
nixConfig = {
|
|
|
|
extra-substituters = ["https://nix.xenia.me.uk"];
|
2024-04-17 18:04:43 +01:00
|
|
|
extra-trusted-public-keys = ["nix.xenia.me.uk:tlgwOaG5KMLjQUk2YaErS8mAG69ZCr3PaHXZYi+Y5eI="];
|
2024-03-02 16:57:02 +00:00
|
|
|
};
|
|
|
|
|
2023-06-21 20:49:28 +01:00
|
|
|
inputs = {
|
2024-06-01 07:14:42 +01:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
2024-07-03 07:15:39 +01:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager/release-24.05";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-07-10 08:27:17 +01:00
|
|
|
plasma-manager = {
|
|
|
|
url = "github:nix-community/plasma-manager";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
home-manager.follows = "home-manager";
|
|
|
|
};
|
|
|
|
};
|
2024-03-12 05:46:32 +00:00
|
|
|
iosevka-custom.url = "git+https://git.xenia.me.uk/pixelifytica/iosevka.git";
|
2024-07-03 07:15:39 +01:00
|
|
|
base16.url = "github:SenchoPens/base16.nix";
|
|
|
|
tt-schemes = {
|
|
|
|
url = "github:tinted-theming/schemes";
|
|
|
|
flake = false;
|
|
|
|
};
|
2023-06-21 20:49:28 +01:00
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
|
2024-01-30 14:21:50 +00:00
|
|
|
outputs = {
|
|
|
|
nixpkgs,
|
2024-07-03 07:15:39 +01:00
|
|
|
home-manager,
|
2024-07-10 08:27:17 +01:00
|
|
|
plasma-manager,
|
2024-03-03 21:16:22 +00:00
|
|
|
iosevka-custom,
|
2024-07-03 07:15:39 +01:00
|
|
|
base16,
|
|
|
|
tt-schemes,
|
2024-01-30 14:21:50 +00:00
|
|
|
...
|
|
|
|
}: let
|
2024-05-11 15:41:19 +01:00
|
|
|
defaultSpecialArgs = {system ? "x86_64-linux", ...}: {
|
|
|
|
iosevkaCustom = {
|
|
|
|
packages = iosevka-custom.outputs.packages.${system};
|
|
|
|
names = iosevka-custom.outputs.names;
|
|
|
|
};
|
|
|
|
};
|
2024-07-08 10:13:51 +01:00
|
|
|
defaultExtraSpecialArgs = {system}: let
|
2024-07-03 07:15:39 +01:00
|
|
|
iosevkaCustom = {
|
|
|
|
packages = iosevka-custom.outputs.packages.${system};
|
|
|
|
names = iosevka-custom.outputs.names;
|
|
|
|
};
|
|
|
|
in {
|
2024-07-08 10:13:51 +01:00
|
|
|
inherit iosevkaCustom;
|
2024-07-10 08:27:17 +01:00
|
|
|
inherit (plasma-manager.packages.${system}) rc2nix;
|
2024-07-07 08:47:50 +01:00
|
|
|
accentColourName = "base0E";
|
2024-07-03 07:15:39 +01:00
|
|
|
fonts = with iosevkaCustom; rec {
|
|
|
|
sizes = {
|
2024-07-10 10:22:24 +01:00
|
|
|
applications = 12;
|
|
|
|
desktop = 10;
|
|
|
|
popups = 14;
|
|
|
|
terminal = 12;
|
2024-07-03 07:15:39 +01:00
|
|
|
};
|
|
|
|
serif = sansSerif;
|
|
|
|
sansSerif = {
|
|
|
|
name = names.iosevka-custom-aile;
|
|
|
|
package = packages.iosevka-custom-aile;
|
|
|
|
};
|
|
|
|
monospace = {
|
|
|
|
name = names.iosevka-custom-nerdfont;
|
|
|
|
package = packages.iosevka-custom-nerdfont;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-05-11 15:41:19 +01:00
|
|
|
defaultModules = {
|
2024-07-03 07:15:39 +01:00
|
|
|
system ? "x86_64-linux",
|
|
|
|
username ? "pixelifytica",
|
2024-02-24 08:44:26 +00:00
|
|
|
hostName ? "Atlas",
|
2024-07-16 07:45:17 +01:00
|
|
|
loginShell ? "bash",
|
2024-05-11 15:41:19 +01:00
|
|
|
...
|
|
|
|
}: [
|
2024-07-03 07:15:39 +01:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
./system/default.nix
|
|
|
|
./system/${hostName}.nix
|
|
|
|
./system/hardware-configuration/${hostName}.nix
|
2024-05-11 15:41:19 +01:00
|
|
|
({
|
|
|
|
config,
|
|
|
|
lib,
|
2024-05-11 17:27:37 +01:00
|
|
|
pkgs,
|
2024-05-11 15:41:19 +01:00
|
|
|
...
|
|
|
|
}: {
|
|
|
|
networking = {inherit hostName;};
|
2024-07-03 07:15:39 +01:00
|
|
|
nix.settings.trusted-users = [username];
|
2024-07-07 08:47:50 +01:00
|
|
|
services.greetd.settings.initial_session.user = username;
|
2024-07-16 07:45:17 +01:00
|
|
|
programs.${loginShell} = lib.mkIf (loginShell != "bash") {enable = true;};
|
2024-07-03 07:15:39 +01:00
|
|
|
users.users.${username} = {
|
2024-05-11 17:27:37 +01:00
|
|
|
shell = pkgs.${loginShell};
|
2024-05-11 15:41:19 +01:00
|
|
|
group = "users";
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "Evie Litherland-Smith";
|
|
|
|
extraGroups = ["networkmanager" "wheel" "video" "input" "uinput"];
|
|
|
|
initialHashedPassword = "$y$j9T$tHIPQt09Kf3KH2eIRze3g/$2mwSlcq27DTGvHNPJ5EP9/1CfL3bXP0F6oS/Vuffmn3";
|
|
|
|
openssh = {inherit (config.users.users.root.openssh) authorizedKeys;};
|
|
|
|
};
|
2024-07-03 07:15:39 +01:00
|
|
|
home-manager = {
|
2024-07-08 10:13:51 +01:00
|
|
|
extraSpecialArgs = defaultExtraSpecialArgs {inherit system;};
|
2024-07-03 07:15:39 +01:00
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
2024-07-03 08:02:31 +01:00
|
|
|
backupFileExtension = "backup";
|
2024-07-03 07:15:39 +01:00
|
|
|
users.${username} = {
|
|
|
|
imports = [
|
2024-07-10 08:27:17 +01:00
|
|
|
plasma-manager.homeManagerModules.plasma-manager
|
2024-07-03 07:15:39 +01:00
|
|
|
base16.homeManagerModule
|
|
|
|
{scheme = "${tt-schemes}/base16/one-light.yaml";}
|
|
|
|
./home/default.nix
|
|
|
|
./home/${hostName}.nix
|
|
|
|
];
|
2024-07-03 07:37:09 +01:00
|
|
|
home = {
|
|
|
|
inherit username;
|
|
|
|
homeDirectory = "/home/${username}";
|
|
|
|
stateVersion = "23.05";
|
|
|
|
};
|
2024-07-03 07:15:39 +01:00
|
|
|
programs.home-manager.enable = true;
|
2024-07-03 07:37:09 +01:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2024-07-03 07:15:39 +01:00
|
|
|
};
|
|
|
|
};
|
2024-05-11 15:41:19 +01:00
|
|
|
})
|
|
|
|
];
|
2024-01-30 14:21:50 +00:00
|
|
|
in {
|
2024-05-24 12:17:20 +01:00
|
|
|
devShells.x86_64-linux.default = let
|
|
|
|
pkgs = import nixpkgs {system = "x86_64-linux";};
|
|
|
|
in
|
|
|
|
pkgs.mkShellNoCC {
|
2024-06-24 07:31:02 +01:00
|
|
|
packages = with pkgs; [nil pre-commit];
|
|
|
|
shellHook = "pre-commit install --install-hooks";
|
2024-05-24 12:17:20 +01:00
|
|
|
};
|
2024-04-12 21:17:54 +01:00
|
|
|
nixosConfigurations = {
|
2024-01-30 14:21:50 +00:00
|
|
|
## Server
|
2024-07-03 07:15:39 +01:00
|
|
|
Legion = let
|
2024-05-11 15:41:19 +01:00
|
|
|
system = "x86_64-linux";
|
2024-07-03 07:15:39 +01:00
|
|
|
username = "pixelifytica";
|
|
|
|
hostName = "Legion";
|
|
|
|
in
|
|
|
|
nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = defaultSpecialArgs {inherit system;};
|
2024-07-16 07:45:17 +01:00
|
|
|
modules = defaultModules {inherit system username hostName;};
|
2024-05-11 15:41:19 +01:00
|
|
|
};
|
2024-01-30 14:21:50 +00:00
|
|
|
## Personal
|
2024-07-03 07:15:39 +01:00
|
|
|
Northstar = let
|
2024-05-11 15:41:19 +01:00
|
|
|
system = "x86_64-linux";
|
2024-07-03 07:15:39 +01:00
|
|
|
username = "pixelifytica";
|
|
|
|
hostName = "Northstar";
|
|
|
|
in
|
|
|
|
nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = defaultSpecialArgs {inherit system;};
|
2024-07-16 07:45:17 +01:00
|
|
|
modules = defaultModules {inherit system username hostName;};
|
2024-05-11 15:41:19 +01:00
|
|
|
};
|
2024-07-03 07:15:39 +01:00
|
|
|
Vanguard = let
|
2024-05-11 15:41:19 +01:00
|
|
|
system = "x86_64-linux";
|
2024-07-03 07:15:39 +01:00
|
|
|
username = "pixelifytica";
|
|
|
|
hostName = "Vanguard";
|
|
|
|
in
|
|
|
|
nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = defaultSpecialArgs {inherit system;};
|
2024-07-16 07:45:17 +01:00
|
|
|
modules = defaultModules {inherit system username hostName;};
|
2024-05-11 15:41:19 +01:00
|
|
|
};
|
2024-01-30 14:21:50 +00:00
|
|
|
## Work
|
2024-07-03 07:15:39 +01:00
|
|
|
Tone = let
|
2024-05-11 15:41:19 +01:00
|
|
|
system = "x86_64-linux";
|
2024-07-03 07:15:39 +01:00
|
|
|
username = "elitherl";
|
|
|
|
hostName = "Tone";
|
|
|
|
in
|
|
|
|
nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = defaultSpecialArgs {inherit system;};
|
2024-07-16 07:45:17 +01:00
|
|
|
modules = defaultModules {inherit system username hostName;};
|
2024-05-11 15:41:19 +01:00
|
|
|
};
|
2024-07-03 07:15:39 +01:00
|
|
|
Scorch = let
|
2024-05-11 15:41:19 +01:00
|
|
|
system = "x86_64-linux";
|
2024-07-03 07:15:39 +01:00
|
|
|
username = "elitherl";
|
|
|
|
hostName = "Scorch";
|
|
|
|
in
|
|
|
|
nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = defaultSpecialArgs {inherit system;};
|
2024-07-16 07:45:17 +01:00
|
|
|
modules = defaultModules {inherit system username hostName;};
|
2024-05-11 15:41:19 +01:00
|
|
|
};
|
2023-06-21 20:49:28 +01:00
|
|
|
};
|
2024-01-30 14:21:50 +00:00
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
}
|