Improve repo structure
This commit is contained in:
parent
fdc4148540
commit
62f200ba03
294 changed files with 499 additions and 516 deletions
7
modules/belgian-eid.nix
Normal file
7
modules/belgian-eid.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
services.pcscd.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
eid-mw
|
||||
];
|
||||
}
|
||||
22
modules/games.nix
Normal file
22
modules/games.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
|
||||
home-manager.users.froidmpa = { pkgs, config, ... }: {
|
||||
# nixpkgs.config = {
|
||||
# allowUnfree = true;
|
||||
# packageOverrides = super:
|
||||
# let self = super.pkgs; in
|
||||
# {
|
||||
# lutris-unwrapped = super.lutris-unwrapped.overridePythonAttrs (oldAttrs: rec {
|
||||
# patches = [
|
||||
# ./lutris_sort_new_with_model_fix.patch
|
||||
# ];
|
||||
# });
|
||||
# };
|
||||
# };
|
||||
# home.packages = with pkgs; [
|
||||
# steam
|
||||
# dolphinEmu
|
||||
# ];
|
||||
};
|
||||
}
|
||||
26
modules/lutris_sort_new_with_model_fix.patch
Normal file
26
modules/lutris_sort_new_with_model_fix.patch
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
From 12a458db3c590c3f1972594e091a24cb4d65b610 Mon Sep 17 00:00:00 2001
|
||||
From: Mathieu Comandon <strycore@gmail.com>
|
||||
Date: Wed, 1 Jan 2020 12:47:55 -0800
|
||||
Subject: [PATCH] Support both sort_new_with_model and new_with_model
|
||||
|
||||
---
|
||||
lutris/gui/views/store.py | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lutris/gui/views/store.py b/lutris/gui/views/store.py
|
||||
index 9e843e9e4..8fe5decf5 100644
|
||||
--- a/lutris/gui/views/store.py
|
||||
+++ b/lutris/gui/views/store.py
|
||||
@@ -140,7 +140,11 @@ def __init__(
|
||||
self.prevent_sort_update = False # prevent recursion with signals
|
||||
self.modelfilter = self.store.filter_new()
|
||||
self.modelfilter.set_visible_func(self.filter_view)
|
||||
- self.modelsort = Gtk.TreeModelSort.sort_new_with_model(self.modelfilter)
|
||||
+ try:
|
||||
+ self.modelsort = Gtk.TreeModelSort.sort_new_with_model(self.modelfilter)
|
||||
+ except AttributeError:
|
||||
+ # Apparently some API breaking changes on GTK minor versions.
|
||||
+ self.modelsort = Gtk.TreeModelSort.new_with_model(self.modelfilter)
|
||||
self.modelsort.connect("sort-column-changed", self.on_sort_column_changed)
|
||||
self.modelsort.set_sort_func(sort_col, sort_func, sort_col)
|
||||
self.sort_view(sort_key, sort_ascending)
|
||||
6
modules/network.nix
Normal file
6
modules/network.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
networking.hosts = {
|
||||
"127.0.0.1" = [ "localhost" "local.ted.europa.eu" ];
|
||||
};
|
||||
}
|
||||
71
modules/system.nix
Normal file
71
modules/system.nix
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
|
||||
nix = {
|
||||
package = pkgs.nixUnstable;
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
(pkgs.writeShellScriptBin "nixFlakes" ''
|
||||
exec ${pkgs.nixUnstable}/bin/nix --experimental-features "nix-command flakes" "$@"
|
||||
'')
|
||||
|
||||
wget
|
||||
inetutils
|
||||
openvpn
|
||||
openfortivpn
|
||||
|
||||
man
|
||||
|
||||
dos2unix
|
||||
|
||||
vim
|
||||
git
|
||||
git-lfs
|
||||
zip
|
||||
unzip
|
||||
|
||||
htop
|
||||
ncdu
|
||||
nload
|
||||
pciutils
|
||||
];
|
||||
fonts = {
|
||||
fonts = with pkgs; [
|
||||
(nerdfonts.override { fonts = [ "Meslo" ]; })
|
||||
];
|
||||
fontconfig.defaultFonts = {
|
||||
monospace = [ "MesloLGMDZ Nerd Font Mono" ];
|
||||
};
|
||||
};
|
||||
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
hardware.pulseaudio.support32Bit = true;
|
||||
|
||||
programs.adb.enable = true;
|
||||
|
||||
users.users.froidmpa = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "adbusers" ];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
programs.ssh.startAgent = true;
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
layout = "fr";
|
||||
desktopManager.xterm.enable = false;
|
||||
windowManager.xmonad.enable = true;
|
||||
displayManager.lightdm = {
|
||||
enable = true;
|
||||
background = "/etc/nixos/configs/files/wallpaper.png";
|
||||
};
|
||||
};
|
||||
|
||||
# Required for custom GTK themes
|
||||
services.dbus.packages = with pkgs; [ gnome3.dconf ];
|
||||
}
|
||||
14
modules/virtualisation.nix
Normal file
14
modules/virtualisation.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
virtualisation = {
|
||||
virtualbox.host.enable = true;
|
||||
virtualbox.host.enableExtensionPack = true;
|
||||
docker.enable = true;
|
||||
};
|
||||
users.users.froidmpa.extraGroups = [ "docker" "vboxusers" ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
docker-compose
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue