Nix #2
40 changed files with 77 additions and 76 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -1,10 +1,9 @@
|
|||
{ ...
|
||||
}: {
|
||||
{
|
||||
imports = [
|
||||
./login_manager.nix
|
||||
./big_g.nix
|
||||
./env.nix
|
||||
./xkb_layout.nix
|
||||
../hardware/streamdeck.nix
|
||||
./base_packages.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib
|
||||
, pkgs
|
||||
{ pkgs
|
||||
, ...
|
||||
}: {
|
||||
environment.variables = {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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,7 +56,7 @@
|
|||
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
|
||||
];
|
||||
|
|
@ -81,6 +64,24 @@
|
|||
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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
1
nix/hardware/marmo/configuration.nix
Normal file
1
nix/hardware/marmo/configuration.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
6
nix/hardware/marmo/default.nix
Normal file
6
nix/hardware/marmo/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./marmo.nix
|
||||
./configuration.nix
|
||||
];
|
||||
}
|
||||
1
nix/hardware/overheating/configuration.nix
Normal file
1
nix/hardware/overheating/configuration.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
6
nix/hardware/overheating/default.nix
Normal file
6
nix/hardware/overheating/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./overheating.nix
|
||||
./configuration.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -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";
|
||||
}
|
||||
6
nix/hardware/spaceship/default.nix
Normal file
6
nix/hardware/spaceship/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./spaceship.nix
|
||||
./configuration.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }: {
|
||||
{
|
||||
programs.streamdeck-ui = {
|
||||
enable = true;
|
||||
autoStart = true; # optional
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
}:
|
||||
{
|
||||
imports = [
|
||||
../nvim/default.nix
|
||||
./nvim/default.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ lib
|
||||
, pkgs
|
||||
{
|
||||
pkgs
|
||||
, ...
|
||||
}: {
|
||||
imports = [
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
{ pkgs, ... }: {
|
||||
{
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }: {
|
||||
{
|
||||
xdg.configFile."hypr/hyprgreet.conf" = {
|
||||
text =
|
||||
''
|
||||
|
|
|
|||
8
nix/programs/individual_configs/default.nix
Normal file
8
nix/programs/individual_configs/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
imports = [
|
||||
./kitty.nix
|
||||
./yazi.nix
|
||||
./fish.nix
|
||||
./ncspot.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{ default, ... }: {
|
||||
{
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
|
||||
|
|
@ -1,7 +1,4 @@
|
|||
{ pkgs
|
||||
, config
|
||||
, ...
|
||||
}:
|
||||
{ pkgs, ...}:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
# base audio
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib
|
||||
, pkgs
|
||||
{ pkgs
|
||||
, ...
|
||||
}:
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue