Move some stuff around

This commit is contained in:
larstvei 2025-09-11 23:48:52 +02:00
parent 351608385f
commit 726eace95c
5 changed files with 40 additions and 58 deletions

View File

@ -16,26 +16,14 @@
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
extraSpecialArgs = { extraSpecialArgs = { inherit nanostatus emacs-larstvei zen-browser; };
inherit nanostatus;
inherit emacs-larstvei;
inherit zen-browser;
};
users.larstvei.imports = [ users.larstvei.imports = [
../../modules/home ../../modules/home
../../modules/desktop ../../modules/desktop
]; ];
}; };
services.greetd = { networking.hostName = "larstvei-think";
enable = true;
settings = {
default_session = {
command = "hyprland";
user = "larstvei";
};
};
};
users.users.larstvei = { users.users.larstvei = {
isNormalUser = true; isNormalUser = true;
@ -48,39 +36,20 @@
]; ];
}; };
networking.hostName = "larstvei-think";
console.keyMap = "us"; console.keyMap = "us";
services.greetd = {
enable = true;
settings.default_session = {
command = "hyprland";
user = "larstvei";
};
};
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Oslo";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable bluetooth.
hardware.bluetooth.enable = true;
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave

View File

@ -1,5 +1,11 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
programs.fish.enable = true;
environment.shells = [ pkgs.fish ];
time.timeZone = "Europe/Oslo";
i18n.defaultLocale = "en_US.UTF-8";
nix = { nix = {
package = pkgs.nix; package = pkgs.nix;

View File

@ -1,6 +1,4 @@
{ pkgs, ... }:
{ {
imports = [ imports = [
../fonts ../fonts
../homebrew ../homebrew
@ -8,9 +6,6 @@
nix.linux-builder.enable = true; nix.linux-builder.enable = true;
programs.fish.enable = true;
environment.shells = [ pkgs.fish ];
system = { system = {
stateVersion = 4; stateVersion = 4;

View File

@ -18,15 +18,6 @@ let
}; };
in in
{ {
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
];
config.hyprland."org.freedesktop.impl.portal.Settings" = "darkman";
};
services.darkman = { services.darkman = {
enable = true; enable = true;
settings.portal = true; settings.portal = true;

View File

@ -16,9 +16,6 @@
}; };
}; };
programs.fish.enable = true;
environment.shells = [ pkgs.fish ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
programs._1password.enable = true; programs._1password.enable = true;
@ -30,4 +27,28 @@
package = pkgs.hyprland; package = pkgs.hyprland;
portalPackage = pkgs.xdg-desktop-portal-hyprland; portalPackage = pkgs.xdg-desktop-portal-hyprland;
}; };
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
];
config.hyprland."org.freedesktop.impl.portal.Settings" = "darkman";
};
networking.networkmanager.enable = true;
hardware.bluetooth.enable = true;
services.printing.enable = true;
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
} }