reorganized config
This commit is contained in:
parent
72fad45917
commit
5af2793bfc
5 changed files with 39 additions and 92 deletions
19
flake.lock
19
flake.lock
|
@ -90,24 +90,7 @@
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nix-flatpak": "nix-flatpak",
|
"nix-flatpak": "nix-flatpak",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"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"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
|
|
||||||
stable.url = "github:NixOS/nixpkgs/nixos-24.05";
|
|
||||||
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. Not needed if using GNOME
|
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
@ -54,13 +53,8 @@
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "cz-lat2";
|
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’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
# Replace name <krop> with a variable
|
||||||
users.users.krop = {
|
users.users.krop = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Jakub Kropáček";
|
description = "Jakub Kropáček";
|
||||||
|
@ -119,57 +113,47 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
services = {
|
||||||
|
tailscale = {
|
||||||
services.flatpak = {
|
enable = true;
|
||||||
enable = true;
|
};
|
||||||
remotes = [
|
flatpak = {
|
||||||
{
|
enable = true;
|
||||||
name = "flathub";
|
remotes = [
|
||||||
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
{
|
||||||
}
|
name = "flathub";
|
||||||
{
|
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
||||||
name = "flathub-beta";
|
}
|
||||||
location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo";
|
{
|
||||||
}
|
name = "flathub-beta";
|
||||||
];
|
location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo";
|
||||||
packages = [
|
}
|
||||||
"org.gnome.World.PikaBackup"
|
];
|
||||||
"ca.desrt.dconf-editor"
|
packages = [
|
||||||
"org.onlyoffice.desktopeditors"
|
"org.gnome.World.PikaBackup"
|
||||||
"tv.kodi.Kodi"
|
"ca.desrt.dconf-editor"
|
||||||
"com.valvesoftware.Steam"
|
"org.onlyoffice.desktopeditors"
|
||||||
"com.github.tchx84.Flatseal"
|
"tv.kodi.Kodi"
|
||||||
"io.dbeaver.DBeaverCommunity"
|
"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 = {
|
networking = {
|
||||||
nftables.enable = true;
|
nftables.enable = true;
|
||||||
firewall.checkReversePath = "loose";
|
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
|
# 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
|
||||||
|
|
|
@ -59,6 +59,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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 = {
|
dconf = {
|
||||||
enable = true;
|
|
||||||
settings = {
|
settings = {
|
||||||
"org/gnome/shell" = {
|
"org/gnome/shell" = {
|
||||||
disable-user-extensions = false;
|
disable-user-extensions = false;
|
||||||
|
|
Loading…
Reference in a new issue