Compare commits

..

1 Commits

Author SHA1 Message Date
gitea actions f72e2c038f update zen browser to 1.19.2b 2026-03-12 06:20:26 +00:00
2 changed files with 80 additions and 83 deletions
+75 -79
View File
@@ -1,92 +1,88 @@
{ { inputs, self, config, ... }: {
inputs,
self,
config,
...
}: {
flake.nixosModules.nixos-host = {pkgs, ...}: {
imports = [
../../hardware-configuration.nix
];
# Bootloader flake.nixosModules.nixos-host = {pkgs, ...}: {
boot.loader.systemd-boot.enable = true; imports = [
boot.loader.efi.canTouchEfiVariables = true; ../../hardware-configuration.nix
];
# Use latest kernel # Bootloader
boot.kernelPackages = pkgs.linuxPackages_latest; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Hostname # Use latest kernel
networking.hostName = "nixos"; boot.kernelPackages = pkgs.linuxPackages_latest;
# Networking # Hostname
networking.networkmanager.enable = true; networking.hostName = "nixos";
# Time zone # Networking
time.timeZone = "Europe/Lisbon"; networking.networkmanager.enable = true;
# Locale # Time zone
i18n.defaultLocale = "en_GB.UTF-8"; time.timeZone = "Europe/Lisbon";
i18n.extraLocaleSettings = {
LC_ADDRESS = "pt_PT.UTF-8";
LC_IDENTIFICATION = "pt_PT.UTF-8";
LC_MEASUREMENT = "pt_PT.UTF-8";
LC_MONETARY = "pt_PT.UTF-8";
LC_NAME = "pt_PT.UTF-8";
LC_NUMERIC = "pt_PT.UTF-8";
LC_PAPER = "pt_PT.UTF-8";
LC_TELEPHONE = "pt_PT.UTF-8";
LC_TIME = "pt_PT.UTF-8";
};
# Printing # Locale
services.printing.enable = true; i18n.defaultLocale = "en_GB.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "pt_PT.UTF-8";
LC_IDENTIFICATION = "pt_PT.UTF-8";
LC_MEASUREMENT = "pt_PT.UTF-8";
LC_MONETARY = "pt_PT.UTF-8";
LC_NAME = "pt_PT.UTF-8";
LC_NUMERIC = "pt_PT.UTF-8";
LC_PAPER = "pt_PT.UTF-8";
LC_TELEPHONE = "pt_PT.UTF-8";
LC_TIME = "pt_PT.UTF-8";
};
# Audio # Printing
services.pulseaudio.enable = false; services.printing.enable = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# SSH # Audio
services.openssh = { services.pulseaudio.enable = false;
enable = true; security.rtkit.enable = true;
settings = { services.pipewire = {
PermitRootLogin = "no"; enable = true;
}; alsa.enable = true;
}; alsa.support32Bit = true;
pulse.enable = true;
};
# User account # SSH
users.users.${config.username} = { services.openssh = {
isNormalUser = true; enable = true;
description = "Thomas Gouveia Lopes"; settings = {
extraGroups = ["networkmanager" "wheel"]; PermitRootLogin = "no";
};
# Programs
# Allow unfree
nixpkgs.config.allowUnfree = true;
# Enable flakes
nix.settings.experimental-features = ["nix-command" "flakes"];
# Auto-unlock gnome-keyring on login
security.pam.services.login.enableGnomeKeyring = true;
security.pam.services.gdm.enableGnomeKeyring = true;
security.pam.services.gdm-password.enableGnomeKeyring = true;
# State version
system.stateVersion = "25.11";
fileSystems."/mnt/endeavour" = {
device = "/dev/disk/by-uuid/a32ca052-12a5-4355-bd3b-b4515d9ea4a5";
fsType = "ext4";
options = ["defaults" "noatime"];
}; };
}; };
# User account
users.users.${config.username} = {
isNormalUser = true;
description = "Thomas Gouveia Lopes";
extraGroups = [ "networkmanager" "wheel" ];
};
# Programs
# Allow unfree
nixpkgs.config.allowUnfree = true;
# Enable flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Auto-unlock gnome-keyring on login
security.pam.services.login.enableGnomeKeyring = true;
security.pam.services.gdm.enableGnomeKeyring = true;
security.pam.services.gdm-password.enableGnomeKeyring = true;
# State version
system.stateVersion = "25.11";
fileSystems."/mnt/endeavour" = {
device = "/dev/disk/by-uuid/a32ca052-12a5-4355-bd3b-b4515d9ea4a5";
fsType = "ext4";
options = [ "defaults" "noatime" ];
};
};
} }
+5 -4
View File
@@ -1,4 +1,8 @@
{self, ...}: { {
inputs,
self,
...
}: {
flake.nixosModules.packages = {pkgs, ...}: { flake.nixosModules.packages = {pkgs, ...}: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
fd fd
@@ -8,7 +12,6 @@
alacritty alacritty
fzf fzf
autojump autojump
wl-clipboard
pulseaudio pulseaudio
legcord legcord
quickshell quickshell
@@ -19,8 +22,6 @@
self.packages.${pkgs.stdenv.hostPlatform.system}.handy self.packages.${pkgs.stdenv.hostPlatform.system}.handy
mpv mpv
ffmpeg ffmpeg
tmux
obs-studio
]; ];
}; };
} }