mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 13:06:13 +01:00
refractor and thor update
This commit is contained in:
31
flake.nix
31
flake.nix
@@ -15,16 +15,35 @@
|
|||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
|
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
|
||||||
systemSettings = {
|
|
||||||
profile = "zion"; # select 'thor' or 'zion'
|
|
||||||
};
|
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
system = lib.nixosSystem {
|
zion = lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
(./. + ("/" + systemSettings.profile)
|
zion/configuration.nix
|
||||||
+ "/configuration.nix")
|
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager = {
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
|
||||||
|
users.mike = import ./home.nix;
|
||||||
|
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit pkgs-unstable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
specialArgs = {
|
||||||
|
inherit pkgs-unstable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
thor = lib.nixosSystem {
|
||||||
|
inherit system;
|
||||||
|
modules = [
|
||||||
|
thor/configuration.nix
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -42,23 +42,29 @@
|
|||||||
LC_TIME = "pl_PL.UTF-8";
|
LC_TIME = "pl_PL.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
services.xserver = {
|
||||||
services.xserver.enable = true;
|
enable = true;
|
||||||
|
layout = "pl";
|
||||||
|
xkbVariant = "";
|
||||||
|
|
||||||
# Enable the KDE Plasma Desktop Environment.
|
displayManager = {
|
||||||
services.xserver.displayManager.sddm.enable = true;
|
lightdm = {
|
||||||
services.xserver.desktopManager.plasma5.enable = true;
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
desktopManager = {
|
||||||
|
xfce = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# I use zsh btw
|
||||||
environment.shells = with pkgs; [ bash zsh ];
|
environment.shells = with pkgs; [ bash zsh ];
|
||||||
users.defaultUserShell = pkgs.zsh;
|
users.defaultUserShell = pkgs.zsh;
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
# Configure keymap in X11
|
|
||||||
services.xserver = {
|
|
||||||
layout = "pl";
|
|
||||||
xkbVariant = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "pl2";
|
console.keyMap = "pl2";
|
||||||
|
|
||||||
@@ -90,15 +96,11 @@
|
|||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Mike";
|
description = "Mike";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
packages = [
|
packages = [];
|
||||||
pkgs.discord
|
|
||||||
pkgs.spotify
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
(with pkgs; [
|
(with pkgs; [
|
||||||
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
@@ -107,22 +109,32 @@
|
|||||||
neofetch
|
neofetch
|
||||||
zsh
|
zsh
|
||||||
pavucontrol
|
pavucontrol
|
||||||
home-manager
|
|
||||||
firefox
|
|
||||||
htop
|
htop
|
||||||
nerdfonts
|
|
||||||
ntfs3g
|
ntfs3g
|
||||||
dosfstools
|
dosfstools
|
||||||
woeusb
|
woeusb
|
||||||
|
|
||||||
python3
|
python3
|
||||||
|
|
||||||
|
steam-run
|
||||||
|
|
||||||
|
# cmake
|
||||||
|
# clang
|
||||||
|
# gcc
|
||||||
|
# gtest
|
||||||
])
|
])
|
||||||
|
|
||||||
++
|
++
|
||||||
|
|
||||||
(with pkgs-unstable; [
|
(with pkgs-unstable; [
|
||||||
neovim
|
cmake
|
||||||
|
gcc
|
||||||
|
clang
|
||||||
|
gtest
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
fonts.packages = with pkgs; [ nerdfonts ];
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
programs.mtr.enable = true;
|
programs.mtr.enable = true;
|
||||||
@@ -150,6 +162,19 @@
|
|||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
system.stateVersion = "23.11"; # Did you read the comment?
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
settings = {
|
||||||
|
experimental-features = ["nix-command" "flakes"];
|
||||||
|
substituters = [
|
||||||
|
"https://nix-community.cachix.org"
|
||||||
|
"https://cache.nixos.org/"
|
||||||
|
];
|
||||||
|
trusted-public-keys = [
|
||||||
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user