2023-06-21 17:41:35 +01:00
|
|
|
{
|
2023-06-21 20:49:28 +01:00
|
|
|
description = "Evie's machine configurations";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-06-26 13:23:27 +01:00
|
|
|
hyprland = {
|
|
|
|
url = "github:hyprwm/Hyprland";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-06-30 10:50:35 +01:00
|
|
|
wallpapers.url = "git+https://git.xenia.me.uk/xenia/wallpapers.git";
|
|
|
|
neovim-nightly-overlay = {
|
|
|
|
url = "github:nix-community/neovim-nightly-overlay";
|
2023-06-27 22:03:15 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-06-21 20:49:28 +01:00
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
|
2023-06-24 09:10:26 +01:00
|
|
|
outputs = {
|
2023-06-21 17:41:35 +01:00
|
|
|
nixpkgs,
|
2023-06-21 20:49:28 +01:00
|
|
|
home-manager,
|
2023-06-26 13:23:27 +01:00
|
|
|
hyprland,
|
2023-06-24 09:10:26 +01:00
|
|
|
wallpapers,
|
2023-06-30 10:50:35 +01:00
|
|
|
neovim-nightly-overlay,
|
2023-06-23 14:14:18 +01:00
|
|
|
...
|
2023-06-22 12:30:36 +01:00
|
|
|
}: let
|
2023-06-26 13:23:27 +01:00
|
|
|
home-config = {
|
2023-06-28 19:37:23 +01:00
|
|
|
imports = [home-manager.nixosModules.home-manager];
|
2023-06-22 12:48:11 +01:00
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = false;
|
2023-06-28 19:37:23 +01:00
|
|
|
users.root = {
|
|
|
|
imports = [./home/env/bash.nix ./home/env/starship.nix];
|
|
|
|
home = {
|
|
|
|
username = "root";
|
|
|
|
homeDirectory = "/root";
|
|
|
|
stateVersion = "22.11";
|
|
|
|
};
|
|
|
|
};
|
2023-06-22 12:48:11 +01:00
|
|
|
};
|
|
|
|
};
|
2023-07-02 16:50:25 +01:00
|
|
|
xfce-config = {pkgs, ...}: {
|
|
|
|
};
|
|
|
|
xfce-bspwm-config = {pkgs, ...}: {
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
nitrogen
|
|
|
|
power-profiles-daemon
|
|
|
|
xfce.thunar
|
|
|
|
flameshot
|
|
|
|
polybar
|
|
|
|
ranger
|
|
|
|
];
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
layout = "gb";
|
|
|
|
xkbVariant = "";
|
|
|
|
desktopManager = {
|
|
|
|
xterm.enable = false;
|
|
|
|
xfce = {
|
|
|
|
enable = true;
|
|
|
|
enableXfwm = false;
|
|
|
|
noDesktop = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
windowManager.bspwm.enable = true;
|
|
|
|
displayManager = {
|
|
|
|
sddm = {
|
|
|
|
enable = true;
|
|
|
|
# theme = "catppuccin-macchiato";
|
|
|
|
settings = {General = {InputMethod = "";};};
|
|
|
|
};
|
|
|
|
defaultSession = "xfce+bspwm";
|
|
|
|
sessionCommands = ''
|
|
|
|
${pkgs.nitrogen}/bin/nitrogen --set-auto ${wallpapers.outputs.default}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
programs.i3lock = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.i3lock-fancy;
|
|
|
|
};
|
|
|
|
};
|
2023-06-27 16:10:31 +01:00
|
|
|
hyprland-config = {pkgs, ...}: {
|
2023-06-26 15:08:44 +01:00
|
|
|
imports = [hyprland.nixosModules.default];
|
2023-06-27 16:10:31 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
pavucontrol
|
|
|
|
pamixer
|
|
|
|
pulseaudio
|
|
|
|
pipewire
|
|
|
|
wireplumber
|
|
|
|
wl-clipboard
|
|
|
|
swayimg
|
|
|
|
hyprpaper
|
|
|
|
grim
|
|
|
|
slurp
|
|
|
|
];
|
2023-06-26 15:08:44 +01:00
|
|
|
security.pam.services.swaylock = {};
|
2023-06-27 16:10:31 +01:00
|
|
|
programs = {
|
|
|
|
hyprland.enable = true;
|
|
|
|
thunar = {
|
|
|
|
enable = true;
|
|
|
|
plugins = with pkgs.xfce; [thunar-archive-plugin thunar-volman];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
services = {
|
|
|
|
gvfs.enable = true; # Mount, trash, and other functionalities
|
|
|
|
tumbler.enable = true; # Thumbnail support for images
|
|
|
|
greetd = {
|
|
|
|
enable = true;
|
|
|
|
settings = rec {
|
|
|
|
initial_session.command = "Hyprland";
|
|
|
|
default_session = initial_session;
|
|
|
|
};
|
2023-06-26 15:08:44 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
hyprland-home-config = {pkgs, ...}: {
|
|
|
|
imports = [
|
|
|
|
hyprland.homeManagerModules.default
|
|
|
|
./home/desktop/hyprland.nix
|
|
|
|
./home/gui
|
|
|
|
];
|
2023-06-26 13:23:27 +01:00
|
|
|
xdg.configFile."hypr/hyprpaper.conf".text = ''
|
|
|
|
preload = ${wallpapers.outputs.default}
|
|
|
|
wallpaper = ,${wallpapers.outputs.default}
|
|
|
|
'';
|
2023-06-22 12:30:36 +01:00
|
|
|
};
|
2023-06-29 09:41:52 +01:00
|
|
|
gamescope-config = {...}: {
|
2023-06-29 10:59:36 +01:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
layout = "gb";
|
|
|
|
xkbVariant = "";
|
|
|
|
};
|
2023-06-29 09:41:52 +01:00
|
|
|
hardware.steam-hardware.enable = true;
|
|
|
|
programs = {
|
2023-06-29 10:59:36 +01:00
|
|
|
xwayland.enable = true;
|
2023-06-29 09:41:52 +01:00
|
|
|
gamescope = {
|
|
|
|
enable = true;
|
|
|
|
capSysNice = true;
|
|
|
|
};
|
|
|
|
steam = {
|
|
|
|
enable = true;
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
gamescopeSession.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
services.greetd = {
|
|
|
|
enable = true;
|
|
|
|
settings = rec {
|
|
|
|
initial_session.command = "steam-gamescope";
|
|
|
|
default_session = initial_session;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-06-30 10:50:35 +01:00
|
|
|
waybar-experimental-overlay = final: prev: {
|
|
|
|
waybar = prev.waybar.overrideAttrs (old: {
|
|
|
|
mesonFlags = old.mesonFlags ++ ["-Dexperimental=true"];
|
|
|
|
});
|
|
|
|
};
|
2023-06-22 12:30:36 +01:00
|
|
|
in {
|
2023-06-21 21:23:51 +01:00
|
|
|
nixosConfigurations = {
|
2023-06-22 09:03:42 +01:00
|
|
|
Legion = nixpkgs.lib.nixosSystem {
|
2023-06-26 13:23:27 +01:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
2023-06-22 09:03:42 +01:00
|
|
|
modules = [
|
2023-06-26 13:23:27 +01:00
|
|
|
home-config
|
2023-06-26 15:08:44 +01:00
|
|
|
./hosts/Legion
|
2023-06-22 09:34:05 +01:00
|
|
|
./services/Legion.nix
|
2023-06-28 19:37:23 +01:00
|
|
|
{
|
|
|
|
home-manager.users.xenia = {
|
|
|
|
imports = [./home/personal.nix];
|
|
|
|
home = {
|
|
|
|
username = "xenia";
|
|
|
|
homeDirectory = "/home/xenia";
|
|
|
|
stateVersion = "22.11";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
2023-06-22 09:03:42 +01:00
|
|
|
];
|
|
|
|
};
|
2023-06-22 14:31:35 +01:00
|
|
|
Vanguard = nixpkgs.lib.nixosSystem {
|
2023-06-26 13:23:27 +01:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
config.allowUnfree = true;
|
2023-06-30 10:50:35 +01:00
|
|
|
overlays = [neovim-nightly-overlay.overlay];
|
2023-06-26 13:23:27 +01:00
|
|
|
};
|
2023-06-22 14:31:35 +01:00
|
|
|
modules = [
|
2023-06-26 13:23:27 +01:00
|
|
|
home-config
|
2023-06-29 09:41:52 +01:00
|
|
|
gamescope-config
|
2023-06-26 15:08:44 +01:00
|
|
|
./hosts/Vanguard
|
2023-06-22 14:31:35 +01:00
|
|
|
./services/sshd
|
2023-06-27 07:39:29 +01:00
|
|
|
./services/syncthing/Vanguard.nix
|
2023-06-30 10:50:35 +01:00
|
|
|
({pkgs, ...}: {
|
2023-06-28 19:37:23 +01:00
|
|
|
home-manager.users.xenia = {
|
2023-06-29 09:41:52 +01:00
|
|
|
imports = [./home/personal.nix];
|
2023-06-28 19:37:23 +01:00
|
|
|
home = {
|
|
|
|
username = "xenia";
|
|
|
|
homeDirectory = "/home/xenia";
|
|
|
|
stateVersion = "22.11";
|
|
|
|
};
|
2023-06-30 10:50:35 +01:00
|
|
|
programs.neovim.package = pkgs.neovim-nightly;
|
2023-06-28 19:37:23 +01:00
|
|
|
};
|
2023-06-30 10:50:35 +01:00
|
|
|
})
|
2023-06-22 14:31:35 +01:00
|
|
|
];
|
|
|
|
};
|
2023-06-27 13:46:28 +01:00
|
|
|
Ronin = nixpkgs.lib.nixosSystem {
|
2023-06-26 13:23:27 +01:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
config.allowUnfree = true;
|
2023-07-02 16:50:25 +01:00
|
|
|
overlays = [neovim-nightly-overlay.overlay];
|
2023-06-26 13:23:27 +01:00
|
|
|
};
|
2023-06-21 21:23:51 +01:00
|
|
|
modules = [
|
2023-06-26 13:23:27 +01:00
|
|
|
home-config
|
2023-07-02 16:50:25 +01:00
|
|
|
xfce-bspwm-config
|
2023-06-27 13:46:28 +01:00
|
|
|
./hosts/Ronin
|
|
|
|
./services/syncthing/Ronin.nix
|
2023-07-02 16:50:25 +01:00
|
|
|
({pkgs, ...}: {
|
2023-06-28 19:37:23 +01:00
|
|
|
home-manager.users.elitherl = {
|
2023-07-02 16:50:25 +01:00
|
|
|
imports = [
|
|
|
|
./home/work.nix
|
|
|
|
./home/desktop/bspwm.nix
|
|
|
|
./home/gui
|
|
|
|
];
|
2023-06-28 19:37:23 +01:00
|
|
|
home = {
|
|
|
|
username = "elitherl";
|
|
|
|
homeDirectory = "/home/elitherl";
|
|
|
|
stateVersion = "22.11";
|
|
|
|
};
|
2023-06-30 10:50:35 +01:00
|
|
|
programs.neovim.package = pkgs.neovim-nightly;
|
2023-06-28 19:37:23 +01:00
|
|
|
};
|
|
|
|
})
|
2023-06-21 21:23:51 +01:00
|
|
|
];
|
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
};
|
2023-06-21 21:23:51 +01:00
|
|
|
homeConfigurations = {
|
2023-06-26 13:23:27 +01:00
|
|
|
"tux@Monarch" = home-manager.lib.homeManagerConfiguration {
|
2023-06-28 18:26:37 +01:00
|
|
|
pkgs = nixpkgs.legacyPackages."aarch64-darwin";
|
2023-06-28 19:37:23 +01:00
|
|
|
modules = [
|
|
|
|
({pkgs, ...}: {
|
|
|
|
imports = [./home/personal.nix ./home/gui/wezterm.nix];
|
|
|
|
home = {
|
|
|
|
username = "tux";
|
|
|
|
homeDirectory = "/Users/tux";
|
|
|
|
stateVersion = "23.05";
|
|
|
|
packages = [pkgs.gcc];
|
|
|
|
};
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
zsh = {
|
|
|
|
sessionVariables.CC = "${pkgs.gcc}/bin/gcc";
|
|
|
|
envExtra = ''
|
|
|
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
services.syncthing.enable = true;
|
|
|
|
})
|
|
|
|
];
|
2023-06-21 21:23:51 +01:00
|
|
|
};
|
2023-06-26 13:23:27 +01:00
|
|
|
"xenia@Northstar" = home-manager.lib.homeManagerConfiguration {
|
2023-06-28 18:26:37 +01:00
|
|
|
pkgs = nixpkgs.legacyPackages."aarch64-linux";
|
2023-06-28 19:37:23 +01:00
|
|
|
modules = [
|
|
|
|
{
|
|
|
|
imports = [./home/personal.nix];
|
|
|
|
home = {
|
|
|
|
username = "xenia";
|
|
|
|
homeDirectory = "/home/xenia";
|
|
|
|
stateVersion = "22.11";
|
|
|
|
};
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
bash.bashrcExtra = ''
|
|
|
|
source $HOME/.nix-profile/etc/profile.d/nix.sh
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
services.syncthing.enable = true;
|
|
|
|
fonts.fontconfig.enable = true;
|
|
|
|
}
|
|
|
|
];
|
2023-06-21 21:23:51 +01:00
|
|
|
};
|
2023-06-21 20:49:28 +01:00
|
|
|
};
|
2023-06-21 17:41:35 +01:00
|
|
|
};
|
|
|
|
}
|