chore: Prepare for multi configuration and cleanup

This commit is contained in:
dashie 2024-04-16 13:26:52 +02:00
parent 81134126a9
commit 4986770f16
40 changed files with 77 additions and 76 deletions

View file

@ -49,5 +49,15 @@
cursor-theme='Bibata-Modern-Classsic' cursor-theme='Bibata-Modern-Classsic'
cursor-size=24 cursor-size=24
''; '';
programs.direnv = {
package = pkgs.direnv;
silent = false;
loadInNixShell = true;
direnvrcExtra = "";
nix-direnv = {
enable = true;
package = pkgs.nix-direnv;
};
};
} }

View file

@ -1,10 +1,9 @@
{ ... {
}: {
imports = [ imports = [
./login_manager.nix ./login_manager.nix
./big_g.nix ./big_g.nix
./env.nix ./env.nix
./xkb_layout.nix ./xkb_layout.nix
../hardware/streamdeck.nix ./base_packages.nix
]; ];
} }

View file

@ -1,5 +1,4 @@
{ lib { pkgs
, pkgs
, ... , ...
}: { }: {
environment.variables = { environment.variables = {

View file

@ -1,13 +0,0 @@
{ pkgs, ... }: {
#set to default values
programs.direnv = {
package = pkgs.direnv;
silent = false;
loadInNixShell = true;
direnvrcExtra = "";
nix-direnv = {
enable = true;
package = pkgs.nix-direnv;
};
};
}

View file

@ -34,24 +34,7 @@
allowUnfree = true; allowUnfree = true;
}; };
}; };
in default_modules = [
{
homeConfigurations."dashie@spaceship" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./hardware/spaceship.nix ];
};
homeConfigurations."dashie@overheating" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./hardware/overheating.nix ];
};
nixosConfigurations."spaceship" = nixpkgs.lib.nixosSystem {
inherit pkgs;
modules = [
# TODO put this into not gaming
./hardware/spaceship.nix
./configuration.nix
./programs/gaming/default.nix
./base/default.nix ./base/default.nix
hyprland.nixosModules.default hyprland.nixosModules.default
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
@ -73,13 +56,31 @@
hyprland.homeManagerModules.default hyprland.homeManagerModules.default
anyrun.homeManagerModules.default anyrun.homeManagerModules.default
ironbar.homeManagerModules.default ironbar.homeManagerModules.default
./programs/hyprland/default.nix #{inherit Hyprspace; } ./programs/hyprland/default.nix
nix-flatpak.homeManagerModules.nix-flatpak nix-flatpak.homeManagerModules.nix-flatpak
./programs/flatpak.nix ./programs/flatpak.nix
]; ];
home-manager.users.dashie.home.stateVersion = "24.05"; home-manager.users.dashie.home.stateVersion = "24.05";
} }
];
in
{
# TODO put actual configuration of profiles somewhere else
homeConfigurations."marmo" = home-manager.lib.homeManagerConfiguration {
inherit pkgs default_modules;
modules = [ ./hardware/marmo/default.nix ];
};
homeConfigurations."overheating" = home-manager.lib.homeManagerConfiguration {
inherit pkgs default_modules;
modules = [ ./hardware/overheating/default.nix ];
};
nixosConfigurations."spaceship" = nixpkgs.lib.nixosSystem {
inherit pkgs default_modules;
modules = [
./hardware/spaceship/default.nix
./hardware/streamdeck.nix
./programs/gaming/default.nix
]; ];
}; };
}; };

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,6 @@
{
imports = [
./marmo.nix
./configuration.nix
];
}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,6 @@
{
imports = [
./overheating.nix
./configuration.nix
];
}

View file

@ -1,22 +1,10 @@
# Edit this configuration file to define what should be installed on { pkgs, ... }:
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ {
imports =
[
# Include the results of the hardware scan.
#./hardware-configuration.nix
./base_packages.nix
./direnv.nix
];
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_zen; boot.kernelPackages = pkgs.linuxPackages_zen;
# amd doesn't let you set high performance otherwhise .....
boot.kernelParams = [ boot.kernelParams = [
"amdgpu.ppfeaturemask=0xffffffff" "amdgpu.ppfeaturemask=0xffffffff"
]; ];
@ -62,7 +50,6 @@
DIRENV_LOG_FORMAT = ""; DIRENV_LOG_FORMAT = "";
}; };
# Define a user account. Don't forget to set a password with passwd.
users.users.dashie = { users.users.dashie = {
isNormalUser = true; isNormalUser = true;
description = "dashie"; description = "dashie";
@ -86,8 +73,5 @@
]; ];
}; };
# Allow unfree packages system.stateVersion = "unstable";
# nixpkgs.config.allowUnfree = true;
system.stateVersion = "unstable"; # Did you read the comment?
} }

View file

@ -0,0 +1,6 @@
{
imports = [
./spaceship.nix
./configuration.nix
];
}

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { {
programs.streamdeck-ui = { programs.streamdeck-ui = {
enable = true; enable = true;
autoStart = true; # optional autoStart = true; # optional

View file

@ -3,7 +3,7 @@
}: }:
{ {
imports = [ imports = [
../nvim/default.nix ./nvim/default.nix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [

View file

@ -1,16 +1,13 @@
{ {
imports = [ imports = [
./common.nix ./common.nix
./kitty.nix
./coding.nix ./coding.nix
./xdg.nix ./xdg.nix
./media.nix ./media.nix
./utils.nix ./utils.nix
./yazi.nix
./oxi/default.nix ./oxi/default.nix
./themes/default.nix ./themes/default.nix
./fish.nix ./individual_configs/default.nix
./ncspot.nix
]; ];
home.username = "dashie"; home.username = "dashie";

View file

@ -1,5 +1,5 @@
{ lib {
, pkgs pkgs
, ... , ...
}: { }: {
imports = [ imports = [

View file

@ -1,3 +1,3 @@
{ pkgs, ... }: { {
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }

View file

@ -262,7 +262,8 @@
"hyprpaper" "hyprpaper"
"ironbar" "ironbar"
"firefox" "firefox"
#"oxipaste_daemon" "oxipaste_daemon"
# TODO: is this necessary?
#"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" #"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
"nextcloud --background" "nextcloud --background"
"$HOME/.cargo/bin/oxinoti" "$HOME/.cargo/bin/oxinoti"
@ -277,7 +278,6 @@
}; };
}; };
wayland.windowManager.hyprland.plugins = [ wayland.windowManager.hyprland.plugins = [
# ... whatever
inputs.Hyprspace.packages.${pkgs.system}.Hyprspace inputs.Hyprspace.packages.${pkgs.system}.Hyprspace
]; ];
} }

View file

@ -1,4 +1,4 @@
{ ... }: { {
xdg.configFile."hypr/hyprgreet.conf" = { xdg.configFile."hypr/hyprgreet.conf" = {
text = text =
'' ''

View file

@ -0,0 +1,8 @@
{
imports = [
./kitty.nix
./yazi.nix
./fish.nix
./ncspot.nix
];
}

View file

@ -1,4 +1,4 @@
{ default, ... }: { {
programs.kitty = { programs.kitty = {
enable = true; enable = true;

View file

@ -1,7 +1,4 @@
{ pkgs { pkgs, ...}:
, config
, ...
}:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
# base audio # base audio

View file

@ -1,5 +1,4 @@
{ lib { pkgs
, pkgs
, ... , ...
}: }:
{ {

View file

@ -1,8 +1,8 @@
{ config, ... }:
let let
browser = [ "firefox.desktop" ]; browser = [ "firefox.desktop" ];
# XDG MIME types # XDG MIME types
# TODO: make this actually work
associations = { associations = {
"application/x-extension-htm" = browser; "application/x-extension-htm" = browser;
"application/x-extension-html" = browser; "application/x-extension-html" = browser;