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-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 = [
./login_manager.nix
./big_g.nix
./env.nix
./xkb_layout.nix
../hardware/streamdeck.nix
./base_packages.nix
];
}

View file

@ -1,5 +1,4 @@
{ lib
, pkgs
{ pkgs
, ...
}: {
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;
};
};
in
{
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
default_modules = [
./base/default.nix
hyprland.nixosModules.default
home-manager.nixosModules.home-manager
@ -73,13 +56,31 @@
hyprland.homeManagerModules.default
anyrun.homeManagerModules.default
ironbar.homeManagerModules.default
./programs/hyprland/default.nix #{inherit Hyprspace; }
./programs/hyprland/default.nix
nix-flatpak.homeManagerModules.nix-flatpak
./programs/flatpak.nix
];
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
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ pkgs, ... }:
{
imports =
[
# Include the results of the hardware scan.
#./hardware-configuration.nix
./base_packages.nix
./direnv.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_zen;
# amd doesn't let you set high performance otherwhise .....
boot.kernelParams = [
"amdgpu.ppfeaturemask=0xffffffff"
];
@ -62,7 +50,6 @@
DIRENV_LOG_FORMAT = "";
};
# Define a user account. Don't forget to set a password with passwd.
users.users.dashie = {
isNormalUser = true;
description = "dashie";
@ -86,8 +73,5 @@
];
};
# Allow unfree packages
# nixpkgs.config.allowUnfree = true;
system.stateVersion = "unstable"; # Did you read the comment?
system.stateVersion = "unstable";
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
{ ... }: {
{
xdg.configFile."hypr/hyprgreet.conf" = {
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 = {
enable = true;

View file

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

View file

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

View file

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