Skip to content

Sike config #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ lanath-laptop:
lanath-desktop:
sudo nixos-rebuild switch -I nixos-config=config/lanath-desktop/configuration.nix

imsike-desktop:
sudo nixos-rebuild switch -I nixos-config=config/imsike-desktop/configuration.nix

build-lanath-iso:
nixos-generate -f iso -c config/lanath-laptop/configuration.nix

Expand Down
2 changes: 1 addition & 1 deletion config/common/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ in
'';
};

system.autoUpgrade.enable = true;
system.stateVersion = "23.05";

nixpkgs.config.allowUnfree = true;
Expand Down Expand Up @@ -164,6 +163,7 @@ in
htop
lxqt.lxqt-openssh-askpass
ssh-askpass-fullscreen

# maintenance
zip
unzip
Expand Down
110 changes: 110 additions & 0 deletions config/imsike-desktop/configuration.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).

{ config, pkgs, lib, ... }:

let
unstable = import
(builtins.fetchTarball https://github.com/nixos/nixpkgs/tarball/nixos-unstable)
# reuse the current configuration
{ config = config.nixpkgs.config; };
nur-no-pkgs = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {};
in
{
imports =
[ # Include the results of the hardware scan.
../common/configuration.nix
./hardware-configuration.nix
../common/terms.nix
../../home/imsike-desktop/home.nix
nur-no-pkgs.repos.LuisChDev.modules.nordvpn
];

# Bootloader.

boot.plymouth = {
theme = "hexagon_hud";
};

environment.sessionVariables.NIX_CONFIG_USER = "imsike-desktop";
environment.sessionVariables.MOZ_ENABLE_WAYLAND = "1";
# environment.sessionVariables.NIXOS_OZONE_WL = "1";


networking.hostName = "desktop";

i18n.defaultLocale = "fr_FR.UTF-8";

i18n.extraLocaleSettings = {
LC_ALL="fr_FR.UTF-8";
LC_ADDRESS = "fr_FR.UTF-8";
LC_IDENTIFICATION = "fr_FR.UTF-8";
LC_MEASUREMENT = "fr_FR.UTF-8";
LC_MONETARY = "fr_FR.UTF-8";
LC_NAME = "fr_FR.UTF-8";
LC_NUMERIC = "fr_FR.UTF-8";
LC_PAPER = "fr_FR.UTF-8";
LC_TELEPHONE = "fr_FR.UTF-8";
LC_TIME = "fr_FR.UTF-8";
};

services.xserver.displayManager.sddm = {
theme = "Nordic/Nordic";
};

users.users.imsike = {
isNormalUser = true;
description = "imsike";
extraGroups = [ "networkmanager" "wheel" "docker" "audio" "storage" ];
initialHashedPassword = "$6$KZaSYVev$bulibbTCC0axwdOGHNkaoRFFAS6RaNHoTIlLw3S90J9kzNseWHI1XUGN.sJKw4Yv5wYK/p9qzQTCt0TKdF3on/";
openssh.authorizedKeys.keyFiles = [ ./id_rsa.pub ];
packages = with pkgs; [
];
};

hardware.bluetooth.enable = true;

environment.systemPackages = with pkgs; [
nordic

# browsers
firefox-wayland
google-chrome
chromium

# utils
bluez
brightnessctl

# devtools
docker-compose
android-udev-rules
android-studio
android-tools
unstable.nodePackages.pnpm

# tui
lazygit

# sddm modules
libsForQt5.plasma-framework
libsForQt5.plasma-workspace
libsForQt5.qt5.qtgraphicaleffects

# gui
thunderbird
pavucontrol
];

fonts.fonts = with pkgs; [
];

nixpkgs.config.permittedInsecurePackages = [
"electron-12.2.3"
];

services.xserver = {
layout = "fr";
};
}
37 changes: 37 additions & 0 deletions config/imsike-desktop/hardware-configuration.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:

{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];

boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];

fileSystems."/" =
{ device = "/dev/disk/by-uuid/82305aa5-04f4-45e6-848a-0d429e0718fe";
fsType = "ext4";
};

fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/862E-EC6D";
fsType = "vfat";
};

swapDevices = [ ];

# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp5s0.useDHCP = lib.mkDefault true;

nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
1 change: 1 addition & 0 deletions config/imsike-desktop/id_rsa.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3EYnJPBB7phPd2x+r8Nz4sOB0Yk6rlBr93zF+j355V3AJgPVjOhk4TscwwpEnWV5rhaEidT/8J3UyDYY7XzoEKLx2dTYxB6fFqXB0TbDY5nxdXsmvtRdIWzS4yVSIzAxugNXc5D/PydsNn8wx7MqsT5oOrXQuNXVlmVTP3M0VRUuE7e0odiNy0aK+qg2KvkqwhJ1cRYnMtxMR51msUzI0kjFzGsduqdZ5Fg552CBm9ktdmgXjvZlxXD24IOP+2cEj98+IJpYijW6cyqoaH+Q097ez2zWjplMfbLl1IHAntI0OGpgzWyGn0l/SNWVxjw2pA0bGrQDVFl+Azne0nyN7 [email protected]
65 changes: 65 additions & 0 deletions home/imsike-desktop/dunst.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{ ... }:
{

services.dunst = {
enable = true;
settings = {
global = {
font = "Iosevka Term 11";
markup = "yes";
format = "<span size='large' >%a</span>\n<b>%s</b>: <span size='small' >%b</span>";
sort = "no";
indicate_hidden = "yes";
alignment = "center";
show_age_threshold = 60;
word_wrap = "yes";
ignore_newline = "no";
stack_duplicates = "yes";
hide_duplicate_count = "yes";
width = 400;
height = 150;
origin = "bottom-right";
offset = "5x10";
shrink = "no";
transparency = 5;
idle_threshold = 120;
monitor = 0;
follow = "keyboard";
sticky_history = "yes";
history_length = 15;
show_indicators = "yes";
line_height = 3;
separator_height = 2;
padding = 6;
horizontal_padding = 6;
separator_color = "auto";
dmenu = "/usr/bin/dmenu -p dunst:";
browser = "/usr/bin/firefox -new-tab";
icon_position = "off";
max_icon_size = 80;
icon_path = "/usr/share/icons/Paper/16x16/mimetypes/:/usr/share/icons/Paper/48x48/status/:/usr/share/icons/Paper/16x16/devices/:/usr/share/icons/Paper/48x48/notifications/:/usr/share/icons/Paper/48x48/emblems/";
frame_width = 2;
};
base16_low = {
frame_color = "#5e81ac77";
msg_urgency = "low";
background = "#3b4252";
foreground = "#e5e9f0";
};

base16_normal = {
frame_color = "#a3be8c77";
msg_urgency = "normal";
background = "#3b4252";
foreground = "#e5e9f0";
};

base16_critical = {
frame_color = "#bf616a77";
msg_urgency = "critical";
background = "#3b4252";
foreground = "#e5e9f0";
};
};
};
}
Loading