reorganized config

This commit is contained in:
Jakub Kropáček 2024-10-16 00:01:20 +02:00
parent 72fad45917
commit 5af2793bfc
5 changed files with 39 additions and 92 deletions

View file

@ -90,24 +90,7 @@
"disko": "disko",
"home-manager": "home-manager",
"nix-flatpak": "nix-flatpak",
"nixpkgs": "nixpkgs_2",
"stable": "stable"
}
},
"stable": {
"locked": {
"lastModified": 1728740863,
"narHash": "sha256-u+rxA79a0lyhG+u+oPBRtTDtzz8kvkc9a6SWSt9ekVc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a3f9ad65a0bf298ed5847629a57808b97e6e8077",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
"nixpkgs": "nixpkgs_2"
}
}
},

View file

@ -4,7 +4,6 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
stable.url = "github:NixOS/nixpkgs/nixos-24.05";
nix-flatpak.url = "github:gmodena/nix-flatpak";
home-manager = {

View file

@ -22,7 +22,6 @@
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. Not needed if using GNOME
# Enable networking
networking.networkmanager.enable = true;
@ -54,13 +53,8 @@
# Configure console keymap
console.keyMap = "cz-lat2";
# Enable CUPS to print documents.
services.printing = {
enable = true;
drivers = [ pkgs.samsung-unified-linux-driver ];
};
# Define a user account. Don't forget to set a password with passwd.
# Replace name <krop> with a variable
users.users.krop = {
isNormalUser = true;
description = "Jakub Kropáček";
@ -119,57 +113,47 @@
};
};
services.tailscale.enable = true;
services.flatpak = {
enable = true;
remotes = [
{
name = "flathub";
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
}
{
name = "flathub-beta";
location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo";
}
];
packages = [
"org.gnome.World.PikaBackup"
"ca.desrt.dconf-editor"
"org.onlyoffice.desktopeditors"
"tv.kodi.Kodi"
"com.valvesoftware.Steam"
"com.github.tchx84.Flatseal"
"io.dbeaver.DBeaverCommunity"
];
services = {
tailscale = {
enable = true;
};
flatpak = {
enable = true;
remotes = [
{
name = "flathub";
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
}
{
name = "flathub-beta";
location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo";
}
];
packages = [
"org.gnome.World.PikaBackup"
"ca.desrt.dconf-editor"
"org.onlyoffice.desktopeditors"
"tv.kodi.Kodi"
"com.valvesoftware.Steam"
"com.github.tchx84.Flatseal"
"io.dbeaver.DBeaverCommunity"
];
};
avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
printing = {
enable = true;
drivers = [ pkgs.samsung-unified-linux-driver ];
};
};
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
networking = {
nftables.enable = true;
firewall.checkReversePath = "loose";
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions

View file

@ -59,6 +59,8 @@
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit inputs;
};

View file

@ -51,28 +51,7 @@
# '';
};
# Home Manager can also manage your environment variables through
# 'home.sessionVariables'. These will be explicitly sourced when using a
# shell provided by Home Manager. If you don't want to manage your shell
# through Home Manager then you have to manually source 'hm-session-vars.sh'
# located at either
#
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# /etc/profiles/per-user/krop/etc/profile.d/hm-session-vars.sh
#
home.sessionVariables = {
# EDITOR = "emacs";
};
dconf = {
enable = true;
settings = {
"org/gnome/shell" = {
disable-user-extensions = false;