Compare commits

..

No commits in common. "db2b9c3da900c17231bfac34188805f970b66887" and "691826fb1b7e05ee52b6a1f47d43fb9f80fbb54b" have entirely different histories.

11 changed files with 55 additions and 82 deletions

View File

@ -32,7 +32,6 @@ with lib;
package = mkDefault pkgs.nix; package = mkDefault pkgs.nix;
settings = { settings = {
allowed-users = [ "josh" ]; allowed-users = [ "josh" ];
trusted-users = [ "root" "@wheel" "josh" ];
experimental-features = [ experimental-features = [
"nix-command" "nix-command"
"flakes" "flakes"

View File

@ -3,13 +3,23 @@
}: }:
{ {
imports = [ imports = [
../../profiles/desktop
../../modules/core ../../modules/core
../../modules/drivers
../../modules/options ../../modules/options
./hardware.nix ./hardware.nix
./host-packages.nix ./host-packages.nix
]; ];
modules.hyprland = {
enable = true;
terminal = "kitty";
};
modules.plasma.enable = false;
modules.displayManager.displayManager = "gdm";
modules.zsh.enable = true;
modules.shell.defaultShell = "zsh";
modules.pipewire.enable = true;
} }

View File

@ -3,26 +3,27 @@
}: }:
{ {
imports = [ imports = [
../../profiles/desktop ../../profiles/vm
../../modules/core ../../modules/core
../../modules/drivers
../../modules/options ../../modules/options
./hardware.nix ./hardware.nix
./host-packages.nix ./host-packages.nix
]; ];
virtualisation.vmVariant = { modules.hyprland = {
virtualisation = { enable = true;
memorySize = 8192; terminal = "kitty";
cores = 8; launcher = "walker";
}; monitor = [
",preferred,auto,1"
];
}; };
modules.plasma.enable = false;
modules.displayManager.displayManager = "gdm";
# drivers.amdgpu.enable = false; modules.zsh.enable = true;
# drivers.nvidia.enable = false; modules.shell.defaultShell = "zsh";
# drivers.nvidia-prime.enable = false;
# drivers.intel.enable = false; modules.pipewire.enable = true;
vm.guest-services.enable = true;
} }

View File

@ -9,6 +9,10 @@ let
pipewireCfg = config.modules.pipewire; pipewireCfg = config.modules.pipewire;
in in
{ {
programs = {
firefox.enable = true;
};
# Add wayland screensharing support if PipeWire is enabled # Add wayland screensharing support if PipeWire is enabled
environment.systemPackages = environment.systemPackages =
with pkgs; with pkgs;

View File

@ -9,10 +9,8 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git git
home-manager
tldr tldr
tmux tmux
vim-full vim
wl-clipboard
]; ];
} }

View File

@ -4,7 +4,6 @@
{ {
imports = [ imports = [
./direnv.nix ./direnv.nix
./firefox.nix
./fzf.nix ./fzf.nix
./hyprland ./hyprland
./kitty.nix ./kitty.nix

View File

@ -1,38 +0,0 @@
{
pkgs,
username,
...
}:
{
programs.firefox = {
enable = true;
package = pkgs.firefox;
policies = {
# Updates & Background Services
AppAutoUpdate = false;
BackgroundAppUpdate = false;
# Extensions
ExtensionSettings = let
moz = short: "https://addons.mozilla.org/firefox/downloads/latest/${short}/latest.xpi";
in {
"*".installation_mode = "blocked";
"uBlock0@raymondhill.net" = {
install_url = moz "ublock-origin";
installation_mode = "force_installed";
updates_disabled = true;
};
};
profiles = {
${username} = {
id = 0;
isDefault = true;
name = "${username}";
};
};
};
};
}

View File

@ -1,6 +1,5 @@
{ {
pkgs, pkgs,
username,
... ...
}: }:
{ {
@ -40,11 +39,5 @@
name = "Bibata-Modern-Classic"; name = "Bibata-Modern-Classic";
size = 24; size = 24;
}; };
targets = {
firefox = {
profileNames = [ "${username}" ];
};
};
}; };
} }

View File

@ -30,7 +30,7 @@ with lib;
}; };
monitor = mkOption { monitor = mkOption {
type = types.listOf types.str; type = types.listOf types.str;
default = [ ",preferred,auto,auto" ]; default = [ ",preferred,auto,1" ];
description = '' description = ''
Monitors to use for Hyprland. Monitors to use for Hyprland.
''; '';

View File

@ -2,23 +2,9 @@
... ...
}: }:
{ {
imports = [ imports = [ ../../modules/options ];
../../modules/options
];
modules.hyprland = { modules.hyprland = {
enable = true; enable = true;
terminal = "kitty";
launcher = "walker";
monitor = [
",preferred,auto,auto"
];
}; };
modules.plasma.enable = false;
modules.displayManager.displayManager = "gdm";
modules.zsh.enable = true;
modules.shell.defaultShell = "zsh";
modules.pipewire.enable = true;
} }

21
profiles/vm/default.nix Normal file
View File

@ -0,0 +1,21 @@
{
...
}:
{
imports = [
../../modules/drivers
];
virtualisation.vmVariant = {
virtualisation = {
memorySize = 8192;
cores = 8;
};
};
# drivers.amdgpu.enable = false;
# drivers.nvidia.enable = false;
# drivers.nvidia-prime.enable = false;
# drivers.intel.enable = false;
vm.guest-services.enable = true;
}