Skip to content

Commit

Permalink
fix(nixos): mirros fixes after upgrade system
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Dec 1, 2023
1 parent b9f9a98 commit fe8b28d
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 51 deletions.
17 changes: 1 addition & 16 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,6 @@

services.xserver.layout = "pl";

# Flatpak
services.flatpak.enable = true;
xdg.portal = {
enable = true;
extraPortals =
lib.mkIf (config.services.xserver.desktopManager.gnome.enable == false)
[ pkgs.xdg-desktop-portal-gtk ];
config.common.default = "*";
};


systemd.user.extraConfig = ''
DefaultEnvironment="PATH=/run/current-system/sw/bin"
'';

# Fonts
fonts.packages = with pkgs; [
source-code-pro
Expand Down Expand Up @@ -152,7 +137,7 @@
useUserPackages = true;
backupFileExtension = "backup";
users.wittano = {
home.stateVersion = "23.05";
home.stateVersion = "23.11";
services.home-manager.autoUpgrade = {
enable = true;
frequency = "daily";
Expand Down
30 changes: 15 additions & 15 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions home/pc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let
thunderbird
gnome.file-roller
gnome.eog
#spotify
spotify
evince
xfce.thunar
obsidian
Expand All @@ -29,7 +29,6 @@ let
discord

# Dev
vscodium
figma-linux
];
in
Expand Down
4 changes: 0 additions & 4 deletions hosts/pc/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@
sound.enable = true;
grub.enable = true;
wacom.enable = true;
wifi = {
enable = true;
enableTpLink = true;
};
virtualization = {
enable = true;
enableDocker = true;
Expand Down
3 changes: 3 additions & 0 deletions hosts/pc/networking.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{ ... }: {
systemd.network.wait-online.enable = false;
boot.initrd.systemd.network.wait-online.enable = false;

networking = {
useDHCP = false;

Expand Down
20 changes: 8 additions & 12 deletions modules/dev/python.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ config, pkgs, lib, home-manager, unstable, ... }:
with lib;
let cfg = config.modules.dev.pycharm;
in {
in
{
options = {
modules.dev.pycharm = {
enable = mkEnableOption ''
Expand All @@ -12,17 +13,12 @@ in {

config = mkIf cfg.enable {
home-manager.users.wittano = {
home = {
packages = with pkgs; [
virtualenv
pipenv
python311Full
jetbrains.pycharm-professional
];
file.".ideavimrc".text = ''
set rnu nu
'';
};
home.packages = with pkgs; [
python3
pipenv
poetry
jetbrains.pycharm-professional
];

programs.fish.shellAliases = mkIf (config.modules.shell.fish.enable) {
ppython = "cd $HOME/projects/own/python";
Expand Down
8 changes: 6 additions & 2 deletions modules/hardware/wifi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ in
};
};

config = {
networking.networkmanager.enable = true;
config = mkIf cfg.enable {
# TODO Fix problem with blocking playing spotify tracks
networking = {
networkmanager.enable = true;
wireless.enable = true;
};

boot = mkIf cfg.enableTpLink {
extraModulePackages = mkIf (!kernel.kernelAtLeast "5.18") [ pkgs.linuxKernel.packages."${kernelVersionPackage}".rtl8192eu ];
Expand Down

0 comments on commit fe8b28d

Please sign in to comment.