Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d7a82d8801 | |||
| 56f2da8d22 |
+75
-79
@@ -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" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
perSystem = { pkgs, ... }: {
|
perSystem = { pkgs, ... }: {
|
||||||
packages.helium = pkgs.appimageTools.wrapType2 rec {
|
packages.helium = pkgs.appimageTools.wrapType2 rec {
|
||||||
pname = "helium";
|
pname = "helium";
|
||||||
version = "0.10.2.1";
|
version = "0.9.4.1";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
url = "https://github.com/imputnet/helium-linux/releases/download/${version}/${pname}-${version}-x86_64.AppImage";
|
url = "https://github.com/imputnet/helium-linux/releases/download/${version}/${pname}-${version}-x86_64.AppImage";
|
||||||
hash = "sha256-Kh6UgdleK+L+G4LNiQL2DkQIwS43cyzX+Jo6K0/fX1M=";
|
hash = "sha256-N5gdWuxOrIudJx/4nYo4/SKSxakpTFvL4zzByv6Cnug=";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraInstallCommands = let
|
extraInstallCommands = let
|
||||||
|
|||||||
Reference in New Issue
Block a user