#2 first somewhat working iteration, there seems to be a problem with home manager still
This commit is contained in:
parent
4a3a48af59
commit
236ff25b49
|
@ -10,11 +10,13 @@ let
|
|||
in
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [ neovim firefox ];
|
||||
packages = with pkgs; [ neovim ];
|
||||
|
||||
sessionVariables = { EDITOR = "nvim"; };
|
||||
|
||||
shellAliases = { vimdiff = "nvim -d"; };
|
||||
shellAliases = {
|
||||
vim = "nvim";
|
||||
vimdiff = "nvim -d"; };
|
||||
|
||||
stateVersion = "23.11";
|
||||
};
|
||||
|
|
|
@ -9,7 +9,7 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = [
|
||||
environment.systemPackages = with pkgs; [
|
||||
discord
|
||||
];
|
||||
};
|
||||
|
|
17
modules/nixos/apps/vivaldi/default.nix
Normal file
17
modules/nixos/apps/vivaldi/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
cfg = config.wyrdgard.apps.vivaldi;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.apps.vivaldi = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable vivaldi browser";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
vivaldi
|
||||
vivaldi-ffmpeg-codecs
|
||||
];
|
||||
};
|
||||
}
|
|
@ -40,7 +40,6 @@ in
|
|||
environment.systemPackages = with pkgs; [
|
||||
nixfmt
|
||||
nix-prefetch-git
|
||||
flake-checker
|
||||
];
|
||||
|
||||
nix =
|
||||
|
|
Binary file not shown.
|
@ -5,7 +5,8 @@
|
|||
, ...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.submodules.basics;
|
||||
in
|
||||
{
|
||||
|
@ -26,9 +27,7 @@ in
|
|||
nix-ld = enabled;
|
||||
};
|
||||
|
||||
hardware = {
|
||||
audio = enabled;
|
||||
bluetooth = enabled;
|
||||
system.hardware = {
|
||||
networking = enabled;
|
||||
};
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
|
@ -18,7 +17,7 @@ in
|
|||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32bit = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
};
|
||||
|
|
20
modules/nixos/system/hardware/bluetooth/default.nix
Normal file
20
modules/nixos/system/hardware/bluetooth/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.system.hardware.bluetooth;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.system.hardware.bluetooth = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable bluetooth";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
};
|
||||
};
|
||||
}
|
32
modules/nixos/tools/git/default.nix
Normal file
32
modules/nixos/tools/git/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
|
||||
let
|
||||
cfg = config.wyrdgard.tools.git;
|
||||
user = config.wyrdgard.user;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.tools.git = with types; {
|
||||
enable = mkBoolOpt true "Wether or not to enable git (Default enabled)";
|
||||
userName = mkOpt types.str user.fullName "The name to use git with";
|
||||
userEmail = mkOpt types.str user.email "The email to use git with";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
gitAndTools.gh
|
||||
];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
config = {
|
||||
init = { defaultBranch = "main"; };
|
||||
push = { autoSetupRemote = true; };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
16
modules/nixos/tools/nix-ld/default.nix
Normal file
16
modules/nixos/tools/nix-ld/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
|
||||
let
|
||||
cfg = config.wyrdgard.tools.nix-ld;
|
||||
in {
|
||||
options.wyrdgard.tools.nix-ld = with types; {
|
||||
enable = mkBoolOpt false "Wether or not to enable nix-ld";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.nix-ld.enable = true;
|
||||
};
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{ pkgs
|
||||
, config
|
||||
, ...
|
||||
}: {
|
||||
{ pkgs , config , lib, ... }:
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
{
|
||||
imports = [ ./hardware.nix ];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
@ -21,7 +21,6 @@
|
|||
gitAndTools.gh
|
||||
kitty
|
||||
fish
|
||||
vim
|
||||
vivaldi
|
||||
|
||||
fd
|
||||
|
@ -46,8 +45,27 @@
|
|||
xkbVariant = "";
|
||||
};
|
||||
|
||||
environment.variables.EDITOR = "nvim";
|
||||
environment.variables.SUDOEDITOR = "nvim";
|
||||
|
||||
# Configure Home-Manager options from NixOS.
|
||||
snowfallorg.user.cholli.home.config = { };
|
||||
snowfallorg.user.cholli.home.config = {
|
||||
programs.kitty= {
|
||||
theme = "Tokyo Night";
|
||||
shellIntegration.enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
|
||||
wyrdgard = {
|
||||
apps = {
|
||||
discord = enabled;
|
||||
vivaldi = enabled;
|
||||
};
|
||||
|
||||
submodules = {
|
||||
basics = enabled;
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue