leanix configuration
This commit is contained in:
parent
d844369b46
commit
4f6a1ccce2
41
flake.nix
41
flake.nix
@ -3,32 +3,31 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||||
|
|
||||||
nix-ld.url = "github:Mic92/nix-ld";
|
stylix.url = "github:danth/stylix";
|
||||||
nix-ld.inputs.nixpkgs.follows = "nixpkgs";
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
|
|
||||||
hyprland = {
|
spicetify-nix = {
|
||||||
url = "github:hyprwm/Hyprland";
|
url = "github:Gerg-L/spicetify-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
#hyprland-plugins = {
|
nix-ld = {
|
||||||
# url = "github:hyprwm/hyprland-plugins";
|
url = "github:Mic92/nix-ld";
|
||||||
# inputs.hyprland.follows = "hyprland";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
#};
|
};
|
||||||
|
|
||||||
#Hyprspace = {
|
|
||||||
# url = "github:KZDKM/Hyprspace";
|
|
||||||
# # Hyprspace uses latest Hyprland. We declare this to keep them in sync.
|
|
||||||
# inputs.hyprland.follows = "hyprland";
|
|
||||||
#};
|
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
stylix.url = "github:danth/stylix";
|
plasma-manager = {
|
||||||
|
url = "github:nix-community/plasma-manager";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.home-manager.follows = "home-manager";
|
||||||
|
};
|
||||||
|
|
||||||
firefox-addons = {
|
firefox-addons = {
|
||||||
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
||||||
@ -71,10 +70,20 @@
|
|||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
./nixos/configuration.nix
|
./nixos/configuration.nix
|
||||||
|
|
||||||
inputs.stylix.nixosModules.stylix
|
inputs.stylix.nixosModules.stylix
|
||||||
inputs.nix-ld.nixosModules.nix-ld
|
inputs.nix-ld.nixosModules.nix-ld
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
leanix = nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = {
|
||||||
|
inherit inputs system pkgs-stable;
|
||||||
|
};
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
./leanix/configuration.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
101
leanix/configuration.nix
Normal file
101
leanix/configuration.nix
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
pkgs-stable,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
./hardware-configuration.nix
|
||||||
|
../nixos/system/packages.nix
|
||||||
|
../nixos/system/system.nix
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
];
|
||||||
|
|
||||||
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||||
|
|
||||||
|
inputs.home-manager = {
|
||||||
|
extraSpecialArgs = {inherit inputs pkgs pkgs-stable;};
|
||||||
|
backupFileExtension = "backup";
|
||||||
|
users = {
|
||||||
|
konsta = import ./home.nix;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|
||||||
|
environment.sessionVariables = {
|
||||||
|
FLAKE = "/home/konsta/.dotfiles";
|
||||||
|
|
||||||
|
DEFAULT_BROWSER = "${pkgs.firefox}/bin/firefox";
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.konsta = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "konsta";
|
||||||
|
extraGroups = ["wheel"];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
sys = {
|
||||||
|
audio.enable = true;
|
||||||
|
desktop = {
|
||||||
|
plasma.enable = false;
|
||||||
|
gnome.enable = true;
|
||||||
|
hyprland.enable = false;
|
||||||
|
};
|
||||||
|
fonts.packages = true;
|
||||||
|
locales.enable = true;
|
||||||
|
network.enable = true;
|
||||||
|
bluetooth.enable = true;
|
||||||
|
nvidia.enable = false;
|
||||||
|
printing.enable = false;
|
||||||
|
sddm.enable = false;
|
||||||
|
style.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
package = {
|
||||||
|
docker.enable = false;
|
||||||
|
steam.enable = false;
|
||||||
|
proxychains.enable = false;
|
||||||
|
tor.enable = false;
|
||||||
|
virt-manager.enable = false;
|
||||||
|
};
|
||||||
|
desktop.steamdeck.enable = false;
|
||||||
|
programs.kdeconnect.enable = true;
|
||||||
|
programs.wireshark.enable = false;
|
||||||
|
|
||||||
|
# Allow unfree packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
# List packages installed in system profile. To search, run:
|
||||||
|
# $ nix search wget
|
||||||
|
|
||||||
|
# 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;
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
# this value at the release version of the first install of this system.
|
||||||
|
# Before changing this value read the documentation for this option
|
||||||
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
|
system.stateVersion = "24.11"; # Did you read the comment?
|
||||||
|
}
|
||||||
26
leanix/home.nix
Normal file
26
leanix/home.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{lib, ...}: {
|
||||||
|
home.username = "konsta";
|
||||||
|
home.homeDirectory = "/home/konsta";
|
||||||
|
home.stateVersion = "24.11"; # Please read the comment before changing.
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
../nixos/packages/packages.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
program.firefox.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
group.terminal_tools.enable = true;
|
||||||
|
|
||||||
|
program = {
|
||||||
|
kitty.enable = lib.mkDefault false;
|
||||||
|
tmux.enable = lib.mkDefault false;
|
||||||
|
zoxide.enable = lib.mkDefault false;
|
||||||
|
};
|
||||||
|
|
||||||
|
sh.bash = {
|
||||||
|
enable = lib.mkDefault true;
|
||||||
|
oh-my-posh.enable = lib.mkDefault false;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user